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:
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.
If yes,can you please tell me how?