5,815,179 Members 38,267 Now Online
XDA Developers Android and Mobile Development Forum

[APP][RECENT] Optimizations to reduce Power Consumption

Tip us?
 
uuOuu
Old
(Last edited by uuOuu; 21st March 2014 at 02:16 PM.)
#1  
uuOuu's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 362
Join Date: Oct 2013
Default [APP][RECENT] Optimizations to reduce Power Consumption

RECENT, makes finding your latest photos, downloads, installed apps, and used apps in much easier way!

Two weeks ago, we released the productivity app RECENT on Google Play (https://play.google.com/store/apps/d...m.toma.lastest), and post its news to first release on XDA-Developer forum.

Here we must say “Thank You!” to Will Verduzco, who give us an exposure on XDA-Developer news: http://www.xda-developers.com/androi...s-with-recent/, and to review from Stefan : http://www.droidapp.nl/apps/recent-j...aties-op-orde/ .
Your kindly help supports us to reach more audiences, and help people to quickly get their recent documents, apps, downloads, pictures, and so on.

Stefan and some users pointed the issue of power consumption to our app RECENT. After works in a few days, we fixed this problem. Please check the image below, the latest version of Recent in Google Play has minimum power consumption.





Here we share our works to reduce power consumption.
First, we take Wakelock Detector (Many thanks to suggestion from Stefan) to identify why this problem occur. Over crank repeats and CPU time are the first matters we found out. After tests with mask to Timer, we confirm the large power consumption is caused by Timer.





After code review, we find out why our app RECENT call Timer in higher frequency: to obtain the parameter “number of use” and “last time of use” of each installed app on device, showed as picture below:





The first optimization plan we take is to optimize codes after the app enables the Timer, since we still hope to show all users the information of “number of use” and “last time of use”. So, after optimization, we reduce 80% CUP time.





BUT we believe our RECENT should take much smaller power consumption that comes from consideration of saving power to smart phones. After review to usage scenarios, we think providing information of “number of use” and “last time of use” cannot help users much more.
So we have our second optimization plan: completely remove Timer.
Frankly speaking, the result with second optimization plan is really satisfied. The power consumption of RECENT could be ignored on real machine.





NOTICE:
Utilities for tests: Wakelock Detector, DU Battery Saver
Test Machine: Google Nexus 7

Many thanks to the supports from Stefan, Leon Kehoe, Jamie, Michael B.N..
THANK YOU your guys helped us to the work of optimizing power consumption.
The Following 15 Users Say Thank You to uuOuu For This Useful Post: [ Click to Expand ]
 
CharlesPeng
Old
#2  
Junior Member
Thanks Meter 1
Posts: 5
Join Date: Mar 2014
Guys, great work and love your attitude!!
 
uuOuu
Old
#3  
uuOuu's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 362
Join Date: Oct 2013
Quote:
Originally Posted by CharlesPeng View Post
Guys, great work and love your attitude!!
Thank you CharlesPeng, Hope the app can help you! Any suggestion please send to us.
 
caspboy
Old
#4  
caspboy's Avatar
Senior Member
Thanks Meter 1,028
Posts: 584
Join Date: Jan 2014
Location: Charlotte, Nc
awesome app
 
silentvisitor
Old
(Last edited by silentvisitor; 22nd March 2014 at 08:27 PM.)
#5  
Senior Member
Thanks Meter 530
Posts: 1,316
Join Date: Mar 2012
Quote:
Originally Posted by CharlesPeng View Post
Guys, great work and love your attitude!!
+1 @uuOuu
 
Vingadero
Old
#6  
Junior Member
Thanks Meter 5
Posts: 27
Join Date: Sep 2010
thx alot for this info
The Following User Says Thank You to Vingadero For This Useful Post: [ Click to Expand ]
 
uuOuu
Old
#7  
uuOuu's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 362
Join Date: Oct 2013
Quote:
Originally Posted by caspboy View Post
awesome app
Thank you and hope it can help you!
 
uuOuu
Old
#8  
uuOuu's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 362
Join Date: Oct 2013
Quote:
Originally Posted by Alexerik View Post
many thanks 4 ur effort!
We will try our best, thanks for your support!!
 
uuOuu
Old
#9  
uuOuu's Avatar
Senior Member - OP
Thanks Meter 334
Posts: 362
Join Date: Oct 2013
Quote:
Originally Posted by Vingadero View Post
thx alot for this info
We hope to do more for you, and share more info, any suggestion please contact us.
 
TheRealBo
Old
#10  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Mar 2014
well done

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Recovery? Check. Root? Check. Android One Ready for Lift Off!

Inthe last few weeks, we have been written quite a lot aboutAndroid One … more

Change the Style of Your Notifications with HeadsUp

Head Up notifications is one of these upcoming features that Android developers hid deep … more

Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more