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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:49:23+00:00 2026-05-26T07:49:23+00:00

Ths activity it’s call from TabActivity. And I want: if I receive new notification

  • 0

Ths activity it’s call from TabActivity.

And I want: if I receive new notification , I want to refresh the list of the current Activity.

public class TestListActivity extends ListActivity {

@Override
public void onCreate(Bundle savedInstanceState) {
    ListView lv = null;
    super.onCreate(savedInstanceState);

    setListAdapter(new ArrayAdapter<String>(this, R.layout.test_list, ListUtil.asStringList(TestServiceUtil.getTests())));

    lv = getListView();
    lv.setSelector(R.drawable.listindicator);
    lv.setTextFilterEnabled(true);
    lv.setOnItemClickListener(new OnItemClickListener() {

        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            Intent intent = new Intent(TestListActivity.this, TestViewActivity.class);

            // Next create the bundle and initialize it
            Bundle bundle = new Bundle();

            // Add the parameters to bundle as
            bundle.putLong("testId", TestServiceUtil.getTests().get(position).getTestId());

            // Add this bundle to the intent
            intent.putExtras(bundle);

            // Start next activity
            TestListActivity.this.startActivity(intent);
        }
    });
}
}

I need just example, how i can make the refresh of the list.

  • 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-05-26T07:49:23+00:00Added an answer on May 26, 2026 at 7:49 am

    I recommend using notifyDataSetChanged() on the ArrayAdapter.

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

Sidebar

Related Questions

I want to get a list of all TRs that do not include THs.
package de.tablayoutexample; import java.util.List; import android.os.AsyncTask; import android.util.Log; public class CallWebServiceTask extends AsyncTask<String, String,
I have ths function to query a set of records from the DB: public
I have this code: public static Account[] LoadXml(string fileName) { Account ths = new
I have the following code in one activity: in= new Intent(ThisActivity.this,AnotherActivity.class); imgarr = new
How to Integrate Text to Speech Functionality? Following is my code:- public class TtsActivity
For whatever reason ths works when run from console: var wh=window.innerHeight; var h= wh-345;
Ths is a question from a past paper. I have been asked to create
In my GWT application, I have a class like so: public class AppActivityMapper implements
I want to set this Array with the result of ths Query but I

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.