11 messages in com.googlegroups.android-developers[android-developers] Re: how can i sa...
FromSent OnAttachments
solawe23 Jul 2008 06:27 
hackbod23 Jul 2008 09:57 
solawe24 Jul 2008 03:33 
hackbod24 Jul 2008 15:48 
Steve Oldmeadow24 Jul 2008 18:23 
6real25 Jul 2008 00:46 
solawe25 Jul 2008 03:10 
6real25 Jul 2008 03:30 
solawe25 Jul 2008 05:58 
Steve Oldmeadow25 Jul 2008 19:23 
6real28 Jul 2008 04:35 
Subject:[android-developers] Re: how can i save a class instance in the android application context
From:solawe (ikra@gmail.com)
Date:07/24/2008 03:33:04 AM
List:com.googlegroups.android-developers

Ok, thanks;

But i dont know when i declare this variable? you think that i must declare it on the first activity of my application?

thanks in advance;

On 23 juil, 16:58, hackbod <hack@gmail.com> wrote:

You don't need to do anything special, just make a static global variable that is set to the instance.

On Jul 23, 6:27 am, solawe <ikra@gmail.com> wrote:

Hi,

I need to save a instance of a class "A" in my application android context. My objective is that this instance be shared between all my ativities and services. All off those activities or services can retrieve my instance class "A",change it and resave in the context.

Is it possible?

If yes,can you please tell me how?

thanks in advance.