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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:51:44+00:00 2026-05-24T00:51:44+00:00

I have an android tabbed application and inside one of my tabs is an

  • 0

I have an android tabbed application and inside one of my tabs is an activity that has a ListView of favorite items.
The user can add or remove items in an activity that is further down the flow.
The problem is, I can’t reload the list when user comes back.
onResume does not get called so I dont know when I should reload the list.

EDIT

This is how I’m starting the subsequent activities.

Intent i = new Intent(this, CargasCadastro.class);
// Create the view using Group's LocalActivityManager
Window win = CargasGroup.group.getLocalActivityManager().startActivity("CargasCadastro",i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP));
View guialayout = win.getDecorView();
// Again, replace the view
CargasGroup.group.replaceView(guialayout);

onTabChanged wont work because the the activity that contains the list is not a TabActivity, and my problem is coming back from a subsequent activity, not a parallel one. Thanks for the suggestions.

  • 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-24T00:51:45+00:00Added an answer on May 24, 2026 at 12:51 am

    The way I got it working.
    Created a static public instance of the activity inside itself (almost like a singleton).

    public static MyActivity instance;
    ...
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        instance = this;
    ...
    

    and a public method that reloads the data and refreshes the listview. Then the down-the-flux activity, accesses this instance and calls the method.
    Its dirty, but works.

    Will accept my own answer as long as it gets upvoted (hoping for a cleaner solution).

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

Sidebar

Related Questions

I have android application with ListView, where each row has own refresh button. Refreshing
I have an Android application that uses tabs. I already have the tabs, and
Folks, I have android application that presently has 1 warning, in line 80 of
I have Android ListView that holding some items, the flow that I'am trying to
In my Android app, I have a tabbed Activity . In one of the
i have a problem with displaying listview. i have tabbed activity and one of
I have android.permission.READ_OWNER_DATA but I can't find any reliable code that would explain how
I have android application and service that runs in separate process. Application and service
I have learned that when using android:entries with a ListView , it uses android.R.layout.simple_list_item_1
I'm creating android app that has table layout for the main activity, and that

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.