now it is fixed.Actually onstart() i have call the function so that when 
the application come in front then it is call the onstart() thats why i am 
getting this unregister and register process.

On Wednesday, 28 March 2012 15:50:59 UTC+5:30, jugni wrote:
>
> hello all,
>
> I press the home key for move the application to run in background and 
> when i want to open that application then i pressing home key long time it 
> will display all running activity.and i click on my application so i need 
> it will open at last state where it is run in background but it will 
> execute some code of application which will register the user in main 
> activity.can we said that it is run from oncreate() or on what state?.or 
> how can we perevent this code will not execute when the application come 
> from background to front.Thanks in advance.
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to