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 8809581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:54:42+00:00 2026-06-14T02:54:42+00:00

I am trying to retrieve all member data from my database and then display

  • 0

I am trying to retrieve all member data from my database and then display it on a listview and it is able to work.

Now I am trying to search for a particular member and i managed to retrieve the records (logged into the logcat) but it doesn’t refresh my listview accordingly.

This is the list view codes I used to retrieve the searched records.

            SimpleAdapter simpleAdapter = new SimpleAdapter(Search.this, productsList, R.layout.list_item, new String[] {TAG_COMPANY},
                    new int[] { R.id.name});
            lv = (ListView) findViewById(R.id.lst_name);
            lv.setAdapter(simpleAdapter);
  • 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-14T02:54:43+00:00Added an answer on June 14, 2026 at 2:54 am

    This is because. you need to let the ListView know that a change in your data has occurred. To notify the ListView about the change, you need to call:

    simpleAdapter.notifyDataSetChanged();
    

    If for some reason it didn’t work, you can also reassign the adapter of your ListView:

    simpleAdapter = new SimpleAdapter(...);
    lv.setAdapter(yourAdapter);
    simpleAdapter.notifyDataSetChanged();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve all the data id from a database where their tags(array)
I'm trying to retrieve all the addresses from the address book and display them
I am trying to retrieve the data from mysql database using PDO but I
So I am trying to retrieve all interests from someone, and be able to
I'm trying to build a script to retrieve all feed entries from a given
I am trying to index data from database. I am doing that successfully. But
I m trying to retrieve all the data in the isolated storage file. But
I am trying to retrieve all the certificates from windows-MY, but some of them
i need help with php code trying to retrieve all information from a table
I am using 2.1 platform.Trying to retrieve all the SMS from the Emulator. No

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.