Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
prevent from reinitializing value
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sadhna Upadhyay  
View profile  
 More options Aug 13 2012, 1:28 am
From: Sadhna Upadhyay <sadhna.braah...@gmail.com>
Date: Mon, 13 Aug 2012 10:58:43 +0530
Local: Mon, Aug 13 2012 1:28 am
Subject: prevent from reinitializing value

Hi everybody,
   can someone tel me how to prevent from reinitializing value when
activity is re called i mean

    int i=0;
and it became
i=1;
and when i called this activity again from its next activity then i should
remain 1 not 0;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bob  
View profile  
 More options Aug 13 2012, 10:21 am
From: bob <b...@coolfone.comze.com>
Date: Mon, 13 Aug 2012 07:21:45 -0700 (PDT)
Local: Mon, Aug 13 2012 10:21 am
Subject: Re: prevent from reinitializing value

Maybe make it static?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
TreKing  
View profile  
 More options Aug 13 2012, 11:42 am
From: TreKing <treking...@gmail.com>
Date: Mon, 13 Aug 2012 10:42:48 -0500
Local: Mon, Aug 13 2012 11:42 am
Subject: Re: [android-developers] prevent from reinitializing value

On Mon, Aug 13, 2012 at 12:28 AM, Sadhna Upadhyay <sadhna.braah...@gmail.com

> wrote:
> can someone tel me how to prevent from reinitializing value when activity
> is re called i mean

You need to explain more clearly exactly what you're trying to do.

--------------------------------------------------------------------------- ----------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
tarun sablok  
View profile  
 More options Aug 13 2012, 11:46 am
From: tarun sablok <tarun.sab...@gmail.com>
Date: Mon, 13 Aug 2012 21:16:42 +0530
Local: Mon, Aug 13 2012 11:46 am
Subject: Re: [android-developers] prevent from reinitializing value

Save the values you want to persist in onPause()  or onStop()  using
 SharedPreferences  or you can also use onSaveInstanceState()  to save your
values and  extract it when the activity is started the next time.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »