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. Always running all the processes as ROOT in Android.

Hi All,
       I was just wondering if there is a way to run all the processes as
root. This will be very helpful for us during development and save us a lot
of time and money.

Any suggestions are highly appreciated.
Thanks,
-- Ajitabh.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Opening /dev/SOMETHING from Register buffer in gralloc.

Hi All,
        I am trying to hardware acclerate the graphics and hence
implementing the gralloc library. I get a register buffer call from which I
try to open /dev/SOMETHING but the open call fails. I believe this is a
permissions issue. I need to be able to open the device to implement the
register buffer call.

Is there anyway I can do this?

Please help.
Thanks,
-- ajitabhandroid.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. LVL advice in the Android Developer Blog

4. Samsung Tab Emulator

5. Sqlite busy timeout - [was error code 5: database is locked]

6. startElement not called in SAX Parser

7. Where to learn Android graphics concepts and techniques