Static reference gets gc

by Alexey » Sat, 07 Mar 2009 03:59:43 GMT


Sponsored Links
 Hi All , i have  a config class where i store properties . It has a
static reference to itself and I initialize it when i start the
application. But if i'm if i switch back to my app after like an hour
of initial run - it looks like this object gets GC and not exist
anymore. As a workaround i start to check for it at onStart in my
activities but still don't understand why it's gone if it has a static
reference.


--~--~---------~--~----~------------~-------~--~----~



Static reference gets gc

by Marco Nelissen » Sat, 07 Mar 2009 04:22:17 GMT


 It's not so much that your object got GC'd, but that your process was
removed because nothing was running in it, and space was needed for
other processes.
If you want something to run in the background, use a service.
If you just need to store some properties between invocations of your
app, write them to a SharedPreference or something, don't keep an
entire process around to hold them.





--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Static reference gets gc

by Alexey » Sat, 07 Mar 2009 04:28:38 GMT


 umm.. i don't think so - process was still there in the tasks list




--~--~---------~--~----~------------~-------~--~----~



Static reference gets gc

by tine brin » Sat, 07 Mar 2009 10:54:23 GMT


 Coupon for bidegg $237.5 off First purchase

 http://BidEgg.com 
COUPON: EFA3A
Offer expires soon (You save $237.5 )

BidEgg Amazing Low price Auction Site

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. receiving broadcast intent, while appl is closed.

If appl is closed, in which there is broadcast receiver, after
receiving it appl perform some activity.   This intent is broadcast
by  other appl but the receiving appl is closed will it receive the
broadcast intent.
--~--~---------~--~----~------------~-------~--~----~

2. New Posting at funfashion4u (on 14 & 15 Apr 09)

Budget of 
India< http://www.***.com/ ;
Need
of Monica is 
here< http://www.***.com/ ;
power
of a man < http://www.***.com/ ; Lion
and Tiger < http://www.***.com/ ; Pipe
Kitty Hello < http://www.***.com/ ;
Japanese
Monkeys < http://www.***.com/ ;
Driving
Test Girl < http://www.***.com/ {*filter*}.html> Eat
Chinese Foods< http://www.***.com/ ;
Emergency
Phone Ahead< http://www.***.com/ ;
Elephant
Sitting < http://www.***.com/ ;
Elephant
Playing 
Game< http://www.***.com/ ;
We
Love with 
Computer-10< http://www.***.com/ ;
We
Love with 
Computer-9< http://www.***.com/ ;
We
Love with Computer
CDs< http://www.***.com/ ;
We
Love with 
Computer-8< http://www.***.com/ ;
We
Love with 
Computer-7< http://www.***.com/ ;
We
Love with 
Computer-6< http://www.***.com/ ;
We
Love with 
Computer-5< http://www.***.com/ ;
We
Love with 
Computer-4< http://www.***.com/ ;
We
Love with 
Computer-3< http://www.***.com/ ;
We
Love with 
Computer-2< http://www.***.com/ ;
We
Love with 
Computer-1< http://www.***.com/ ;
Windows
Hardware < http://www.***.com/ ;
System
of 
Communication< http://www.***.com/ ;
Funny
Shaving 
Mirror< http://www.***.com/ ;
Shifting
of Computer< http://www.***.com/ ;
Connected
Well < http://www.***.com/ ; Cat
Enjoy < http://www.***.com/ ; Hot New
Trends for girls-14< http://www.***.com/ ;
Hot
New Trends for 
girls-12< http://www.***.com/ ;
Hot
New Trends for 
girls-11< http://www.***.com/ ;
Airman
and Colonel< http://www.***.com/ ;
Old
Times Army 
Days< http://www.***.com/ ;
Soldier
and Girl 
Friend< http://www.***.com/ ;
Navy
Chief and 
Admiral< http://www.***.com/ ;
Platoon
Sergeant < http://www.***.com/ ;
Israeli
Soldier < http://www.***.com/ ;
Commanding < http://www.***.com/ ; Dessert
Talks < http://www.***.com/ ; Soldiers
and Drill 
Sergeant< http://www.***.com/ ;
Banjo
Players < http://www.***.com/ ; Great
Writer < http://www.***.com/ ; Boot
Camp Range < http://www.***.com/ ;
General
Motors and Bill
Gates< http://www.***.com/ ;
Microsoft
Future Nest 25 
Years< http://www.***.com/ ;
Food
Most Damaging< http://www.***.com/ ;
A
marriage 
desperate< http://www.***.com/ ;
Marriage
studies 
find< http://www.***.com/ ;
They
think what 
will?< http://www.***.com/ ;
Arrested
for 
speeding< http://www.***.com/ ;

--~--~---------~--~----~------------~-------~--~----~

3. Porting android-2.6.29 to gumstix Overo Earth linux-omap3-2.6.29 kernel version

4. Android doesn't support ICC Profile related API?

5. android_on_davinci

6. com.android.layoutlib.bridge.BridgeCanvas has a bug when drawing a round rect

7. Re-installation failed due to different application signatures