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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:02:45+00:00 2026-05-23T15:02:45+00:00

Actually in my app i have a button on an listView..now on click of

  • 0

Actually in my app i have a button on an listView..now on click of that button i have done some changes..so when i move to previous activity after than this changes should appear on that activity..but in my case the changes occur but not appears after i exit from the activity where my listView Button is present..so how can i do that so that my changes occur immediately after i exit from my first activity..code i have wrritten:

code for ListView Button Onclick:

public boolean stopCycleStage(View v)
{
         Button butStop=(Button) findViewById(R.id.butStop);
         TextView setStopTxtViewTitle =(TextView)findViewById(R.id.setStopTxtViewTitle);
         Date currentDate=new Date();

         int iStopStartCount = CycleManager.getSingletonObject().getStopStartCount();
         Date dtStopDate = currentDate;

         CycleManager.getSingletonObject().setStopStartDate(dtStopDate, iStopStartCount);
         Date dtStart = CycleManager.getSingletonObject().getStartDate();

         if (dtStopDate.getTime() == dtStart.getTime())
             CycleManager.getSingletonObject().removeHistoryDate(dtStart);

         butStop.setBackgroundResource(R.drawable.settings_but_disabled);
         setStopTxtViewTitle.setTextColor(Color.parseColor("#808080"));

         return true;
}
  • 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-23T15:02:45+00:00Added an answer on May 23, 2026 at 3:02 pm

    In your first activity, you should refresh the view in the onResume function rather than just in the onStart or onCreate.

    Refer to the activity documentation to see the lifecycle of an activity

    PS: this is just a guess because you have not given enough code to show how you load the data in your 1st acitvity.

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

Sidebar

Related Questions

I actually have two questions regarding exception/error handling in the iPhone app that I
I have a WPF application that is a fullscreen kiosk app. It's actually a
That sounds complicated, doesn't it... actually it's quite easy: I have a multi-language app
I have an AppController class that looks after view/control in my app in the
I have a small iPhone app which I've created a button with some functionality
I have a button in my activity, when you click the button an if
I have an Android app with a listview that updates the listview when the
I have an app that uses Javascript to perform some calculations and then plot
I have the following app, that's like a chat, so I'm programmatically creating some
Actually, in my app, I have created a graph using achartEngine . In these

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.