As a programmer what are the measures I can take to take care that my app does not hog a lot of resources and drain the battery ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Depending on the application you are writing, some of these may apply to you:
setKeepScreenOn(boolean)orandroid:keepScreenOn) . video should probably be one of the only instances where you would utilise this functionalityThere is a nice flowchart showing the different methods that get called for pausing/resuming on the android developer site:
http://developer.android.com/reference/android/app/Activity.html