There are plenty of *Battery Saver* apps that do roughly this already.  
There may be some that even do exactly that.



On Tuesday, November 27, 2012 11:16:42 AM UTC-6, Javo wrote:
>
>
> I've never created an android app, however I am a computer science major 
> (sophomore), so I am relatively familiar with some java code. However, I'm 
> still new to programming so forgive me if I say anything ignorant.
>
> I have noticed that the less service I have, the more battery power that 
> is used to search for service.
> My ultimate goal is to create an app that will put my phone on Airplane 
> mode when it is locked and periodically turn off Airplane mode every X 
> minutes.
> The purpose of putting the phone on Airplane Mode when it is locked is to 
> prevent the phone from using battery searching for service when I am not 
> using it.
> The purpose of turning off Airplane Mode every X minutes is to allow my 
> phone to "update," by searching and hopefully connecting to a network so 
> that I can be alerted of any missed text messages and/or calls that I have 
> received since being on airplane mode.
> If the phone is unlocked, I would like Airplane mode to be turned off.
>
> Ideally, I would rather not have to write this code at all. I would really 
> appreciate it if someone else could write it for me, not because I am lazy, 
> but because this is an app that my phone desperately needs because I spend 
> a lot of time in areas where I have too little service for the phone to 
> effectively use the networks to send information, but just enough service 
> that my phone can still receive information from senders (texts/emails).
> -Thank you to whomever may be able to help me.
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to