October 23rd, 2011, 01:00 PM
|
#1 (permalink)
|
|
New Member
Join Date: May 2010
Posts: 8
Device(s):
Thanks: 0
Thanked 0 Times in 0 Posts
|
Network management
I received a request for an app, but I am having a bit of difficulty getting started. Right now, I don't have any code written. I'm in the middle of the research stage, but here is what the app needs to do.
1. Run in the background (preferably in a way that it does not get auto-killed, kind of like EasyTether)
2. Searches for network signal and if one is not found after a set interval of time (e.g. Five minutes), put device into Airplane mode
3. After another interval of time, app will search again for network signal (meaning that Airplane mode will need to be disabled)
The first one I cannot find any information on, nor have I found a way to detect network signals (e.g 3G/Wifi). However, it looks like I can possibly use the Timer class to set the time intervals and the Settings class to activate and possibly disable Airplane mode. How can I deal with the need to continously run in background and search for network signals? Also, I would appreciate if anyone can think of better classes to use than the ones I think I found (e.g. May be simpler to use or more fitting as the class may not provide the needed functionality).
|
|
|