Hi,
How can we capture home key event?
I am storing some data at application level, I want to clear it so
that it doesn't consume memory when my application is in background.
At the same time, i wish that this data shouldn't get earsed if my
application has gone in the background because of an
No,Manish
It is not possible to capture HomeKeyPress.
But there must be possibility to check whether ur app is in foreground.
On Tue, Feb 15, 2011 at 4:20 PM, cool.manish mannishga...@gmail.com wrote:
Hi,
How can we capture home key event?
I am storing some data at application level, I
I am storing some data at application level, I want to clear it so
that it doesn't consume memory when my application is in background.
At the same time, i wish that this data shouldn't get earsed if my
application has gone in the background because of an incoming call.
Do I need to capture
15.02.2011 13:50, cool.manish пишет:
I am storing some data at application level, I want to clear it so
that it doesn't consume memory when my application is in background.
From what I can find in the documentation, it's not clear if this can
reduce memory consumption.
An application
2011-02-15 12:21, Kostya Vasilyev skrev:
[...]
Perhaps this (garbage collection on background applications) actually
does happen but just isn't documented, then freeing memory before going
into the background is a useful thing.
Well, I have not double checked for a while now, but the
15.02.2011 14:41, Jonas Petersson пишет:
Well, I have not double checked for a while now, but the onLowMemory()
method of my service was certainly called now and then (even though my
service wasn't doing anything at all at the time) last I traced it.
Does this qualify?
Best / Jonas
It
2011-02-15 12:58, Kostya Vasilyev skrev:
15.02.2011 14:41, Jonas Petersson пишет:
Well, I have not double checked for a while now, but the onLowMemory()
method of my service was certainly called now and then (even though my
service wasn't doing anything at all at the time) last I traced it.
15.02.2011 15:18, Jonas Petersson пишет:
This was a while ago (1.1/1.5 IIRC) so there was no startForeground,
but I'm pretty sure I used setForeground(true) to be less likely to
get killed.
Ok, thanks for clarifying.
--
Kostya Vasilyev -- http://kmansoft.wordpress.com
--
You received
8 matches
Mail list logo