Prevent demon form being killed, when device goes to SLEEP

by P@AR » Wed, 16 Feb 2011 02:09:39 GMT


Sponsored Links
 Hello, I need help over here!
Hi I am developing a Linux application(deamon) written in C, for my
Android device.
I have configured my init.rc script to start the deamon when the
device is booted.
Everything works just fine when the device is booted and my demon
starts, but when the device "sleeps"(after ~30seconds)
it kills my deamon application. Do you have any Idea how to prevent my
deamon from being "killed"?
I want to make my deamon to be active all the time, just like other
processes (adb, init, .... etc)
Any idea, suggestion would help ???

-- 



Re: Prevent demon form being killed, when device goes to SLEEP

by raja pavan » Wed, 16 Feb 2011 12:53:28 GMT


 "Killed" , lowmemorykiller has the power to kill processes, so lmk cuold be
behind this.

write /proc/1/oom_adj -16
This will prevent the lowmemorykiller driver from killing your process (if
lmk happens to be the reason)
Please let me know the result.







-- 


Sponsored Links


Re: Prevent demon form being killed, when device goes to SLEEP

by P@AR » Mon, 21 Feb 2011 02:49:21 GMT


 Thanks for your reply.
Tomorrow I'll check if the lmk is the problem
I'll update you as soon as I have the results

BR





-- 



Other Threads

1. NB/WB AMR data format

Hi all,

Does anybody know what exactly is the format of amr data at the OMX
input level? Also, is there any info on what file types and formats
are supported by openCore?

I have had limited success playing 3gp NB-AMR files and also some
success playing basic amr files at 4.75kbps, but no other formats are
working at this time.

If the file is File Storage Format, the MIME header has to be removed
from the file before decoding. Is this done by any openCore node, or
should the OMX component handle this?

Thanks for any insight or feedback-
--~--~---------~--~----~------------~-------~--~----~

2. How do you create this map pin?

I want to know how to create a map "pin" such as the one used in the
Google Maps app, shown when you search for a particular address. The
white "balloon" which contains short String to denote what the pin is
representing.

Instead of adding a drawable for my pin in an OverlayItem, I would
rather use the pin above and incluce my own short String.

Is there an easy way to create this kind of pin or is it unique to the
Google Maps application?

Thanks!
--~--~---------~--~----~------------~-------~--~----~

3. How to replace libGLES_CM.so library that Dalvik virtual machine will recognize it?

4. Getting GPS Location in Android 1.0 SDK

5. Condition to check phonebook is empty or not?

6. Attempting to understand LunarLander code - please assist!

7. Random file access for assets