Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9206745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:14:25+00:00 2026-06-18T00:14:25+00:00

I have a listview with custom rows being populated from an custom BaseAdaptor .

  • 0

I have a listview with custom rows being populated from an custom BaseAdaptor. On click of any row, I open a new Activity.
Everything was working fine until I added the filter functionality to this list. When I search the list and THEN click on an Item, it doesn’t open the activity associated with the filtered results. It opens up an Activity related to the Item at that position in Original list.

Eg. –
Original List : AA, BA, CC, DA, ED, FF

Search : ‘A’
Filtered results: AA, BA, DA

But when I click on item DA it opens up the Activity for CC. Extremely irritating. I have called notifyDataSetChanged() on the adapter.

I’ve been stuck with this problem for sometime. I really dont know how to solve it.
I didnt post the code because it’s a whole lot of code and I really dont want to put everything here.

If someone can give me an idea of how to select the Item from the FILTERED list.. It’d b great.

Thanks!
Tell me if something else is needed to understand my question!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:14:26+00:00Added an answer on June 18, 2026 at 12:14 am

    Thanks for replying all but I found the problem.

    I hope this helps another person. With something this basic, it sometimes gets hard to find the error and we resort to much complicated ways!

    To start my new activity, I was taking the item position from the custom Adaptor without overriding the getItem() function.

    Object obj = myListAdapter.getItem(position);
    

    I overrid the function

    @Override
    public Object getItem(int position) {
        return myList.get(position);
    }
    

    and voila! got the right Activity opening. (facepalm i know..)
    Thanks for your answers anyway!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a listview that consist of 23 rows. When I click any row,
I have a ListView which contains custom rows. This custom row has following UI
I have a listview with custom rows and that extends SimpleAdapter. Each row consist
I have a listview that's populated by rows that get their data from a
I have a listview with custom rows. In the row there are these items:
I have an activity with a listView, which uses a custom row layout defined
I have created a custom listview that is populated using a row.xml file. Each
I have a ListView with a custom layout for the rows (list items) and
I have a listview with custom row having a textview and a clickable image
I have a custom ListView with two button and I when I click either

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.