A small question - Android Software Development

I readed that, android 1.6 (or mybe all versions) power usage isnt affected by applications lunched (not active) ? Example:
Calculator, file manager, stoped music player uses same power if these 3 would be stoped.
Something like that was writen in my kill app which didnt recommend to kill other soft often, as it wouldnt affect my battery usage.

Related

Random freezing and buttons not responding

I have a brand new imate JASJAM and face the following problems:
(a) The device freezes as soon as you attempt to open some programs (any program) even if this is right after a soft reset.
(b) Certain buttons don't always respond, for example, when the phone rings, sometimes the green button or even the answer soft buttonwon't respond and so you miss the call. Also, the messaging hard button rarely works. If you press it once, nothing happens. If I press it several times or I leave it pressed, e-mail may come up.
Those problems are very frequent. They happen all the time.
I have ROM 1.31.305.2
some applications installed are:
.NET CF 2.0 SP1
Worldmate 2006
Pocket Informant 2007
GPS Tuner
Battery pack
Flash Player
Resco keyboard, Explorer
andreasy said:
I have a brand new imate JASJAM and face the following problems:
(a) The device freezes as soon as you attempt to open some programs (any program) even if this is right after a soft reset.
(b) Certain buttons don't always respond, for example, when the phone rings, sometimes the green button or even the answer soft buttonwon't respond and so you miss the call. Also, the messaging hard button rarely works. If you press it once, nothing happens. If I press it several times or I leave it pressed, e-mail may come up.
Those problems are very frequent. They happen all the time.
I have ROM 1.31.305.2
some applications installed are:
.NET CF 2.0 SP1
Worldmate 2006
Pocket Informant 2007
GPS Tuner
Battery pack
Flash Player
Resco keyboard, Explorer
Click to expand...
Click to collapse
Well, I certainly would not expect the number of freezes and lack of response you are getting - and if that's a full list of what apps you have added then I would expect a smooth runing device - I have a lot more and get a freeze maybe once a fortnight. The .net CF framework is a reasonably memory hungry app but I have not had any problem with it.
1 I do not see any mention of a Task Manager (apologies if it's included in one of your apps). I consider a Task Manager essential for closing (i.e. really closing ) applications; unless you're ok with running off to the running programmes in memory application. Also note that Wifi must be shut off when not in use to avoid freezing on wakeup, overheating, battery drainage and possibly the Red LED charging issue.
2. Where are these applications installed. Are they all in main memory or SD card or a mixture. The location of certain programmes can make all the difference to smooth performance. As a general rule anything that is required immediately following boot up/switch on like wallpapers or an application you leave running (not something I recommend) can be in the main memory. Other things should be on SD card. In fact my device runs just fine with everything on sd card - even the things that need to be accessed often. Whatever you decide you will find that there will be more frequent hangs when the device memory is over half full - Yes it likes a good bit of free space for run applications.
3. Having ensured the above two are taken care of and maybe swapping apps from SD to Main memory or vice versa to test different performance levels, I would also think about removing applications and testing after each one to see if there is one culprit.
4. Finally a graet may have identified Active Sync as causing lots of freezing issues fro alarms not going off to device not "waking up" etc etc. Providing you don't use push mail then I believe the steps written about on this forum for properlly controlling AS are essential. Notably the fake server trick. see here http://forum.xda-developers.com/showthread.php?t=288352&highlight=fake
Mike

Backlight off corrupts musicplayback????

Diamond2 of course, with WM6.5 (official HTC Rom)
I have four audio-players on the phone
Windows Media
HTC Sense player (frontend for WMedia)
S2P (I believe that this is also a front-end for WMedia)
Nitrogen (I think that this is totally stand-alone?)
The only player that is not affected by this bug is of course WindowsMedia, which I really don't like to use. The others are so much more userfriendly (and cool).
When the backlight turns off (either automatic, or because I turn it off), playback will continue for approx. 10 secs, then stop. When I use the power-button to turn light back on, sometimes the player is simply just frozen - other times playback continues, but it's mangled - it's like there are two playing processes competing for the same space (the sound audibly doubled and there are strange pops and eeks and noises).
Sometimes I am able to close the player, but the whole system has become unstable and won't launch the majority of apps I have, never mind the player it self - launching that will give me an eternal view of the spinner and a frozen WM6.5 - hard reset is the only option
I have spent hours upon hours getting my phone just right - and I haven't installed anything that I didn't install when the phone was WM6.1 - I'd HATE to have to flash the ROM again.
I've searched these forums for a post describing this, but no luck.
Anybody out there have an idea?
Could it possibly be something to do with the memory card and card power management? If you put some tracks in internal storage, does it work properly?
I had the same problem as yours when i used any rom with win6.5
Now i'm using tess 2F rom and every thing is fine
any other Rom keeps getting me the same problem
I don't know why, but i'm waitng for the official W6.5 for the MEA to launch then i will investigate this issue deeper
Maybe my SD (lexer) try using another one maybe it could help
If you get any solution for this problem Plz PM me

Any tips for a better battery life...?

What settings is everyone using to get the most outta there desires hd battery!?
I know it will take at least 4 cycles to get the best outta the battery, but at the moment I can literally see the battery draining, its not good! I lost 30% within an hour and half! :0(
I'm using advanced task manager, and it never seems to kill all running apps straight away when I hit end all!
Sent from my new Desire HD using XDA App
1. Dont use task killers...it doesnt work with Froyo and it doesnt help...uninstall it.
2. Empty the battery to the 0% and leave it on charge when phone is off all night.
3. Turn it ON and use it untill it die again...then again turn it off and charge it for 3 hourse. Turn it on...its calibrated
4. Use 2G if you dont need 3G
5. Use max 70% of display light
6. Use only must have online update programs
Thats all...I did that on HD2 and I didnt have any problems for all day...and I used it normaly. In stand by it was 1,5% per hour... with mp3 was 10% in 1hour...etc...
Have fun!
How come task killers don't work? How do I stop apps from running in the background now then without a task killer? Won't this kill the battery more??
Sent from my Desire HD using XDA App
No it wont...its like using a notebook... if you have notepad, browser, and solitair opened...but not working with them...they will not use your processor and energy...it will only use your RAM memory... And thats the same with android..BUT after some tome (for example 6hours) if you dont use some app...the phone will automaticlly turn the app off. And in any posiblle way you would never use more than 400MB of 765MB RAM ...so memory is not a problem
Smartmob said:
No it wont...its like using a notebook... if you have notepad, browser, and solitair opened...but not working with them...they will not use your processor and energy...it will only use your RAM memory... And thats the same with android..BUT after some tome (for example 6hours) if you dont use some app...the phone will automaticlly turn the app off. And in any posiblle way you would never use more than 400MB of 765MB RAM ...so memory is not a problem
Click to expand...
Click to collapse
My first post here on XDA so hi
Now, I'll just correct you a little. Your example was pretty much correct and a nice one, but Android OS doesn't kill tasks when amount X of time has passed. Android kills tasks when it needs more RAM (=when there are too many processes running), it kills the least used process. Android OS usually runs loads of different processes, the cool thing is that they don't consume any battery because they are not actually used. These processes are stored in the phone's RAM memory, whether there is something stored in the RAM or not, the RAM chip uses the same amount of electricty. Thus processes that exist but are not in any applications' use, don't consume battery. Therefore you don't need a task killer, in fact a task killer reduces your battery life because it kills the processes and then the phone has to restart them, and this cycle continues over and over.
So which is the best way to come out of an app? Back button or the home?
Sent from my Desire HD using XDA App
gibbo82 said:
So which is the best way to come out of an app? Back button or the home?
Sent from my Desire HD using XDA App
Click to expand...
Click to collapse
Both are as good, it makes no difference.
I have found that turning auto sync off when not essential saves my battery quite a lot. If I need to check something ill refresh that app. Once I'm near a place I could charge ill switch it back on.
Just a suggestion. Try it and see how it goes for you..
Sent from my Desire HD using XDA App
How do i turn off 3G and use 2G network? And how do i turn on 3G when i want to use it?
For some reason after a hard reset everything seems to work fine. Sms messages receiving in time (had installed task killer which i think made the problem possible) and all of a sudden 3G and HSDPA is available. So battery life all of a sudden is less to so how do i change this?
SSJVegetto said:
How do i turn off 3G and use 2G network? And how do i turn on 3G when i want to use it?
For some reason after a hard reset everything seems to work fine. Sms messages receiving in time (had installed task killer which i think made the problem possible) and all of a sudden 3G and HSDPA is available. So battery life all of a sudden is less to so how do i change this?
Click to expand...
Click to collapse
You can go to settings/wireless and network/mobile networks/network mode/gsm only
You can also install extended controls widget wich has a widget wich takes you directly to that screen. A direct switch is not available in this ROM.
Black1982 said:
You can go to settings/wireless and network/mobile networks/network mode/gsm only
You can also install extended controls widget wich has a widget wich takes you directly to that screen. A direct switch is not available in this ROM.
Click to expand...
Click to collapse
Thank you! Been looking for that!
mazzuli said:
My first post here on XDA so hi
Now, I'll just correct you a little. Your example was pretty much correct and a nice one, but Android OS doesn't kill tasks when amount X of time has passed. Android kills tasks when it needs more RAM (=when there are too many processes running), it kills the least used process. Android OS usually runs loads of different processes, the cool thing is that they don't consume any battery because they are not actually used. These processes are stored in the phone's RAM memory, whether there is something stored in the RAM or not, the RAM chip uses the same amount of electricty. Thus processes that exist but are not in any applications' use, don't consume battery. Therefore you don't need a task killer, in fact a task killer reduces your battery life because it kills the processes and then the phone has to restart them, and this cycle continues over and over.
Click to expand...
Click to collapse
Welcome on XDA!
Do you have a source esp. regarding this piece?: the cool thing is that they don't consume any battery because they are not actually used. These processes are stored in the phone's RAM memory, whether there is something stored in the RAM or not, the RAM chip uses the same amount of electricty. Thus processes that exist but are not in any applications' use, don't consume battery
Circle battery mod
This is still kinda on topic, but I find it's much easier to get a feel for battery life, or what's using it all up, if you have something that actually gives you values all the time. I have a circle battery mod, but a percent meter or widget is just as good. It's nice to have it in your face, instead of either intuition or constantly going into your settings to look up the value.
Just my two cents!

Possible soluition to fix 60mA: Enable GPS and wait for full sync

Hi friends.
I found the following coincedence.
When I install new build aparently CurrentWindget shows 60mA in stand by and no way to fix it to 5-7mA as it should be.
The solution which helps me to fix it is the following:
- enable GPS module in settings
- open Maps and wait for it to find where you are located
- go back to homescreen and put phone to stand by
It should be fixed now to 5-7mA current.
Hope it will help everyone.
I can even leave GPS module on all the time after that - standby current stays at 5-7mA level.
hlvl said:
I can even leave GPS module on all the time after that - standby current stays at 5-7mA level.
Click to expand...
Click to collapse
Very strange, but very cool if it works for you! I will give it a shot next time I see high battery drain. Thanks for sharing, it will help at least one other person if it helps you.
I've also found that switching Bluetooth off, then back on again, fixes this 60mA drain !
Common misconception: leaving GPS enabled in settings doesn't leave the GPS chip on the whole time. It just means that an app can enable it when it needs to (e.g. when you open Maps). As long as there's no GPS icon in your status bar, it doesn't drain *any* battery.
OT: that trick would be way faster than rebooting! Gonna try if it works for me too.
Really strange solution for this issue. I have the same problem but for this moment have drain about 5mA after quick boot with dualbootloader (wait time 3sec for Android load). For this moment 5mA in standby mode - with any enabled comm modules (WiFi,Bluetooth,GPS).
My experince of fixing the problem(temporary) is not using taskkiller too often, but it not always works
Curarpikt said:
My experince of fixing the problem(temporary) is not using taskkiller too often, but it not always works
Click to expand...
Click to collapse
Don't ever use your task killer again, it only causes problems.
Tried the above however no sucess..........please check out my post and tell me what you think
http://forum.xda-developers.com/showthread.php?t=857606&highlight=battery+wifi
I'm getting better battery life with wifi on
StephanV said:
Don't ever use your task killer again, it only causes problems.
Click to expand...
Click to collapse
Why? I use it a lot...
To solve 60mA problem, each time you want to boot android:
1) when you are in windows mobile, lock the phone and turn the screen off by press end call button
2) wait few seconds and press it again to turn on screen
3) you see lock screen, unlock your phone
4) after that boot your android quickly within 10 seconds! (you can do it by creat shortcut of android on your home sceen)
I test it and solve problem for me on both mccm and mdeejay builds!
Phantoml337 said:
Why? I use it a lot...
Click to expand...
Click to collapse
It was discussed hunderd of times. You dont need to free up mem in android 2.x
It has already a memory management built inside.
The only reason to use a task killer is to close an app that hangs or not properly close itself.
If you continue to kill your processes and backround apps just to free up ram, you will definitively drain more battery becaouse some of that apps will just load again automatically from SD or, when you open again one of them, it needs to load again from SD.
rafpigna said:
It was discussed hunderd of times. You dont need to free up mem in android 2.x
It has already a memory management built inside.
The only reason to use a task killer is to close an app that hangs or not properly close itself.
If you continue to kill your processes and backround apps just to free up ram, you will definitively drain more battery becaouse some of that apps will just load again automatically from SD or, when you open again one of them, it needs to load again from SD.
Click to expand...
Click to collapse
Exactly. And apps not closing properly is still not an excuse for using it. If the app is bad uninstall it or mail the dev to fixit, but don't go around screwing stuff up with a task killer.
Phantoml337 said:
Why? I use it a lot...
Click to expand...
Click to collapse
Me to....i use 2!
Autokiller on agressive,and a taskkiller....never troubles with drain etc
Or everyone check my signiture for my thread on battery drain solution
I think the OP is really onto something here. I tried this trick & my drain has gone from a steady 55-65mA down to around 5. I'm impressed!
Just one question, those of you that having issues with battery drain what WM do u use? I've recently had a problem on my HD2 (no USB) and i installed a stock ROM. Before i had the VBN Droid Reloaded 2 and with Mdeejay kernel current widget never showed me values above 300mA (witch i believe i only saw that value 1 time). Usually i'd get from 1-2mA to 250mA tops. Now i'll never go below 60mA and i've seen the record of 600mA. Today it drain me from 95% to 35% in about 2 hours. A bit too much for my taste...
I always find if you boot Android with Win Mo fully booted, it's over 60mA, but if I use Exceller Dual Boot to boot Android before Win Mo has finished loading, then it's 5-6mA.
Yea man task_killer - problem
Everything is working for me fine, i am using futureShocks MIUI build, the only thing is when i switch on bluetooth, my battery drain is about 60-80 mAh without bluetooth i have 3-6 mAh... no task killer, no setcpu, with other builds like mdeejays sense roms this problem is not !?
Everyone an idea how to solve the problem ?

[Q] Device gets Awaken ALOT During Mobile data (But fully silent on WiFI)

Hey guys, i have been used S5 since 5 months with this problem (from the start) i am not sure, i cant think it as it's malfunctioning (by internal) so i am sure it's something else. So far, i used firstly STOCK ROM (4.4.2 + upgraded officially to 5.0) On Both Update, i had Root, SuperSU.
Used official 5.0 update for months, and still had this problem about device getting alot of awaken wakelocks, like, every 3 - 5 min it gets awaken for short period, sometimes (like 1/20 of total awaken period) it is awaken for more then minutes, i couldn't find the issue, so i used it so. On WiFi, it's totally silent! nothing suspicious on stats, device lasts even long on stand by, but on mobile data (when screen is off) it just drops! like, 1-2%/hour (dunno really, may be wrong).
What i did is, get CM12 Latest nightly (5.0.2), furthermore i installed SuperSU as primary root, Tit backup, 7-8 xposed modules, now i installed amplify (Xposed module, helps find and kill wakelocks).
I have found many wakelocks, services, alarms. I reseted the stat, opened mobile data, let it be so for minutes like 10-20minute, and opened to see wakelocks, what i find is alot of wakelocks on different stuffs, mostly Google Play Services. I made it so they cant trigger the phone's wakelock more then once every 9999 second (to make sure i can find out the issue of the problem), now i killed so many that i even killed clock timer, ticker, GSM Broadcast things etc, so i get almost no notification, no any clock is even showing accurate cause if the wakelocks i limited. I did it, nope, it's still same, not less or more, i still couldnt find the issue, i killed or limited so many wakelocks, services and alarms yet i couldnt find it, i dont know what to do, i did install many, many, many times fully fresh ROM through odin several times, fully new installation few times, yet same problem occurs.
My question is, what can i do to find it? Amplify is greater than those Wakelock monitor things, cuz Amplify app finds them, and lets you set up how many times they can wake up the device every (x) seconds, guys i need help please could someone put their few minutes on this and troubleshoot it? i did everything i could (no, no any xposed modules are affecting it, on stock s5 rom 5.0 it isn't compatible with xposed, so xposed is not the cause).
Neither is FB Messenger app (if so, everyone should experience it) neither is Viber, nor any other apps (counting these cuz i dont have any apps that runs in background, from what i know...)
Also, last analyze. I set up Data connection monitor, and let it monitor total mobile data connection for +8 hours of being idle on charge, and found it downloaded 2.2mb of data in total, as of upload i dunno, it was however alot less than downloaded, i dont think it is really using my data, or? even so, it should even trigger during WiFi, why it only happens on Mobile data then?
THANK YOU ALOT for reading it!

Resources