How Android Works!! - Android Software/Hacking General [Developers Only]

Hi all,
I have a very basic query about android's general working. Please let me know if this is not the correct section to discuss this.
I read somewhere that apps do not exit in android and they go into inactive mode. I have a query here: It definitely eases the way to switching between the apps, however, doesn't it consumes more power in this case?
Basically, the discussion is about whether Task Managers are good or not?
Personally, I need to charge battery more frequently after uninstalling Automatic Task Killer from my phone. I am using Galaxy 3 with stock Android 2.1
Does anyone have this experience?

Generally apps running in the background don't consume any battery. Or consume very little if they're waiting on some event (i.e.to notify you of incoming message, etc.) And killing the app is counter productive because they'll usually restart themselves.
Apps that sync periodically are the ones that can consume battery if they're set to sync too often. Your task killer may have been stopping some of the syncing.
________________________________
http://ron-droid.blogspot.com

IMO task managers are not very useful. Android has it's own memory manager built in that will free up memory when needed. Here's a pretty good article discussing the matter.
http://androinica.com/2010/05/googl...-imply-task-killermanager-apps-are-pointless/
Personally, I try to control which apps are running in the background myself through the use of the home and back buttons. When you press the home button, the app remains in the background, able to be activated again quickly. If you press the back button, the app will exit and no longer be running (in rare cases, apps will take control of the back button so I can't say this happens for EVERY app). I almost always back out of programs, unless I know I'll be using it again soon. Hope this helps!

@ zeddicus225 - Yes. That Helps. Thanks.
@ rigman - Can you please explain, what you mean to say by "they'll usually restart themselves"?
How is this possible...please give an example for this where there is no application that sync itself and restart itself?
Also, I started this thread as my phone was getting slower irrespective of closing of all the apps by using Back button. Is there any solution or check for this?

vijay.gupta said:
Also, I started this thread as my phone was getting slower irrespective of closing of all the apps by using Back button. Is there any solution or check for this?
Click to expand...
Click to collapse
Yes, turn it off and on again android memory management is rarely up to scratch

Hey Pulser,
Can you please explain, how the applications restart themselves in android?
I have heard it in many places.

Can anyone please reply to this?

Can anyone please reply to this?

Is there anyone here to reply to this? Is this sucha hard query to reply?

Related

Can someone tell me why android doesn't close apps?

honestly i find this really annoying, especially to the average person tha doesn't think to go download a task manager and kill everything after doing anything on the phone so your battery lasts more than 6 hours.
here's a simple logic i'd like to use.
if you use the "back" button to exit an application, kill it.
if you use the "home" button to leave an application, don't kill it until you go back to it and use "back" to exit. or kill it with a task manager.
like why hasn't someone implemented this? close or minimize its as simple as that people. i really hope the android developers listen to me on this one.
im sure nobody would be happy if microsoft came out with an update that disabled the X and you could only minimize applications or kill them with the task manager. come on. thats why i'm not totally satisfied with android yet.
Chillaxed said:
honestly i find this really annoying, especially to the average person tha doesn't think to go download a task manager and kill everything after doing anything on the phone so your battery lasts more than 6 hours.
here's a simple logic i'd like to use.
if you use the "back" button to exit an application, kill it.
if you use the "home" button to leave an application, don't kill it until you go back to it and use "back" to exit. or kill it with a task manager.
like why hasn't someone implemented this? close or minimize its as simple as that people. i really hope the android developers listen to me on this one.
im sure nobody would be happy if microsoft came out with an update that disabled the X and you could only minimize applications or kill them with the task manager. come on. thats why i'm not totally satisfied with android yet.
Click to expand...
Click to collapse
How else would you have multi-tasking? Most of the stuff I use, I would rather it not close just because I had to check my calendar, or reply to a text.
just hit the home button to minimize it. hit back to close it. select the app again after minimizing it to open it again. simple. or if you're worried about having to go find the app again, just have the app minimize to the notification area. but personally, i'd just close everything and go back to it
.
that is a good idea should shoot google an e-mail. but its be diffrent from phone to phone as not all are the same(while most do have a home button)
I like what Dolphin Browser does, how if you hold back (as opposed to just clicking it) you close the application. I think that would work great if implemented universally.
well then could someone create an app that for all applications, holding back will actually kill the app?
chrys9989 said:
How else would you have multi-tasking? Most of the stuff I use, I would rather it not close just because I had to check my calendar, or reply to a text.
Click to expand...
Click to collapse
Being able to multitask has nothing to do with having the ability to close the application I don't need running anymore.
how abt remapping that search button that i rarely ever use to close an application. that sounds more plausible, then we can leave the back and home button the way they are (sometimes, u just want to go back, not close an app)
Chillaxed said:
well then could someone create an app that for all applications, holding back will actually kill the app?
Click to expand...
Click to collapse
Dude, no one has to write an application for that. There are a lot of applications in the Market that can KILL running apps on your phone. A few examples:
- Free Advanced Task Manager (also has a Widget that requires a single press to end running/useless apps)
- Task Manager
- Advanced Task Killer Free
- Automatic Task Killer
...and MANY MANY MANY MANY MORE! It will take a day to review them all and find the one you like the best. That MANY!
And what you really wanted to say is that the developers SHOULD implement an EXIT function in the application (some have it). If the user doesn't want for the application to run anymore, will use the EXIT function! Simple as that
If someone doesn't like multi-tasking, can always get one of those EXTREMELY EXPENSIVE AND USELESS iPhones
like i said, it'd be really annoying to have no X button on the top right of every window, and the only way to exit something would be to open the task manager. and potentially kill something that's keeping track of something.
i am aware of all the apps. its just really annoying. every time i do something i go and find the task bar and kill everything.
by the way when i said back should close the app, i meant the back button still acts as the back button until it goes back to the desktop. then when it goes back to the desktop it closes it.
i like this, cuz normally the apps that i dont need anymore stay open and overtime make my phone slow and drains my battery, and i hate using taskiller cuz im using sense ui and taskiller kills everything meaning that i have to reboot the sense ui which takes a minute or two and itz annoying to go to taskiller and kill the apps one by one...
01jayss said:
i like this, cuz normally the apps that i dont need anymore stay open and overtime make my phone slow and drains my battery, and i hate using taskiller cuz im using sense ui and taskiller kills everything meaning that i have to reboot the sense ui which takes a minute or two and itz annoying to go to taskiller and kill the apps one by one...
Click to expand...
Click to collapse
you need to set your exceptions in your task manager
On Android, when you use back or home to exit an application that application goes to "sleep" mode. That means it doesn't use processor and/or battery power.
There are a few exeptions of course, the calendar, mail, alarm clock, music (if you listen to music). These have to run in the backround to function correctly. If you kill the alarm application then your alarm won't go in the morning, etc...

[APP] [UPDATED] KeepAwake v1.1 - make apps prevent standby

Here is an application to make specific programs(like ebook reader,SatNav etc) prevent standby when they are running. It will watch them even when they are in background, so be careful, if you just forget them running in the background, your phone will not go into standby. (v1.1 change: now you can disable background watch by checking "monitor active window only")
Installation:
1- Just install the latest cab file onto Device Memory and NOT Storage Memory.
2- You need .NETCF 3.5, if you don't have it, install it.
Usage:
1- If you will use background watching, find the executable name from Task Manager/Processes, drop .exe part, type it into textbox and click add. (AdobeReaderLE.exe -> AdobeReaderLE)
1a- If you want to watch only the active window (so that your battery doesn't drain if you minimize the whitelist app) Find the window title of the application (Either task manager/applications or just look at the title if it is not hidden) and insert it as above. (Adobe Reader LE this time) you can have both versions live together. There is one limitation to active application watching though, if the application doesn't report a window title in task manager, you can only background watch it. (e.g. htcreader)
2- if you want to remove a certain app, select its name and click remove button.
3- if you want to have KeepAwake open but still not active (to force into standby) click stop.
4- this app autostarts with each boot, if you don't like it, delete the shortcut under \Windows\Startup\KeepAwake.lnk
5- this app starts minimized. if you want to configure settings, select the icon one more time or switch to it using a task manager.
6- if you click quit, obviously the software quits and no more monitoring is done, so click X after configuring if you want it to monitor your apps.
7- if you want to turn off screen and lock keys (for listening to music maybe) you can click the lock button. If your app is running, the phone will still stay awake.
Tips:
1- You can map KeepAwake to a hardware button for easy access and screen locking.
Credits:
Thanks goes to Frank T. van de Ven for ProcessCE library.
Thanks a lot to DaveShaw for letting me use xdaShutdown application.
I'm pretty excited about this... I've been looking for something exactly like this to prevent specific standby times.
I hope it works with most of the applications I have in mind.
Any bugs? Would you guys find it useful to have a lock button so that it turns off the screen and locks keys but still keeps the device awake? I have implemented this for the latest version I'm using (to have my GPS logger going but preventing accidental touch on screen and keys.) Or is it better to keep it simple?
Will this also prevent Windows MSN not to idle which will cause lost connection too?
Sorry, I'm new to the WinMo scene, just saw this on Pocketnews. Let me get this straight, will this work for apps that run in the bg that don't close out IE:
Facebook
Google Maps
Email
Albums
etc.?
because they slow down my phone, I want to close them out completely, not run them in the background so they can take up valuable resources.
espaleena said:
Will this also prevent Windows MSN not to idle which will cause lost connection too?
Click to expand...
Click to collapse
I haven't specifically tried MSN app, but I see no reason it shouldn't work.
Raadius said:
Sorry, I'm new to the WinMo scene, just saw this on Pocketnews. Let me get this straight, will this work for apps that run in the bg that don't close out IE:
Facebook
Google Maps
Email
Albums
etc.?
because they slow down my phone, I want to close them out completely, not run them in the background so they can take up valuable resources.
Click to expand...
Click to collapse
I think you need a task manager so that you can close apps. This one is for making certain apps prevent the phone go standby.
ozkaya said:
Any bugs? Would you guys find it useful to have a lock button so that it turns off the screen and locks keys but still keeps the device awake? I have implemented this for the latest version I'm using (to have my GPS logger going but preventing accidental touch on screen and keys.) Or is it better to keep it simple?
Click to expand...
Click to collapse
I haven't given this a try yet, but any more additions are welcomed! This is something I've been looking for. I think it might be nice to give a way to put settings per application for standby perhaps (like some applications don't let the device go to stand by for 3 minutes, others are like 30 miuntes, etc). I think having't the screen off is a good addition, but keeping the device working is good, so things like voice recorder can work without having the screen on.
Seems to work well for IM services.
I haven't tested it completely for Opera and internet-browsing programs.
Nevertheless, this is a great idea.
new version is up..
What about on option... KEEP IT ON ? (Like LOCK)
This option would simply keep the phone ON, if the application is running in background even if we haven't listed anything
Is it possible? Maybe it's already included?
Thank you
Great app !
It doesn't work on my HD2. Youtube is running and my device locks and stops YT...
Any ideas??
Zepiii said:
What about on option... KEEP IT ON ? (Like LOCK)
This option would simply keep the phone ON, if the application is running in background even if we haven't listed anything
Is it possible? Maybe it's already included?
Thank you
Great app !
Click to expand...
Click to collapse
I thought about that but later decided that not many people would find it useful. if enough request comes, I will add it. In the meantime, you might just add an always running app like device or cprog into list manually when you want to keep it on always. or just minimize an app in the whitelist
Quider said:
It doesn't work on my HD2. Youtube is running and my device locks and stops YT...
Any ideas??
Click to expand...
Click to collapse
that's odd. I just tried and Youtube keeps itself open while playing a video for me even without this app. (Locks on the search screen) But still, KeepAwake seems to detect it when it is running. After installing have you clicked on the icon to run KeepAwake? Then minimized it by clicking on X? Have you tried another app, like Adobe Reader for instance? Is youtube minimized or active?
Hi,
Will this application disable lock option on device while using some application - eg. iGO Navigation?
Thanks
mdzepinajr said:
Hi,
Will this application disable lock option on device while using some application - eg. iGO Navigation?
Thanks
Click to expand...
Click to collapse
as long as you don't lock it yourself, yes, it won't be locked.
Very nice app...much thanks!
The app works for eReader on my Omni II running 6.3 One word of caution I have the x= app closed option turned on so the x shuts down keepAwake. It took me some time to figure out I was closing the app not minimizing it.
How would I go about disabling the standby while in a call? What's the name of the application I need to put in there? I'd like to use it so the sleep during call doesn't stop the call recording utility from working, but I still would like the screen turning off when keeping the phone at the ear.
Doesn't work on touch pro2
The software breaks error when we try to add software to the list, only with the program in background it goes to sleep anyways. It's a good idea, but not there yet...

How to access task manager?

Hey.
I came from vibrant and to acccess task manger I had to hold the home button, but now it doesnt seem to work with g2x.
Can someone tell me how to access task manager to close apps?
Download one and then run it
Sent from my LG-P999 using XDA App
it doesn't come with one you have to pick one from the market to use. There is no reason to use one if you ask me.
Prod1702 said:
it doesn't come with one you have to pick one from the market to use. There is no reason to use one if you ask me.
Click to expand...
Click to collapse
that is NOT true
1) you can set the home button to open what u want (Long press) with some launchers. I don't know if you can set the "Long Press" in the default launcher
BUT
2) here is how to access it
Settings>Applications>Manage Applications> "click running at the top" >
and you can kill app's from here. no 3rd party app required.
.
is there a way to hold the home button and then click on task manager to kill all apps like we did in vibrant?
I thought task managers/ killers were no longer needed in later versions of android. I just came back to android.... the last android phone I have was the mytouch 3g... on 1.5, 1.6 and I know it needed it then...
Froyo and beyond is generally considered by most people to not require a task manager. I agree with this as well. It's not the apps anyway, unless one is rogue spiking your cpu draining the battery, its more making sure 4g is off when not in use, same with bluetooth, gps, and keep brightness to a minimum. Use juicedefender. Its awesome...
Edit: A task manager is useful if you have an app wigging out on you, but generally its as easily effective to just do a hotboot
eeeeeeeeek said:
Froyo and beyond is generally considered by most people to not require a task manager. I agree with this as well. It's not the apps anyway, unless one is rogue spiking your cpu draining the battery, its more making sure 4g is off when not in use, same with bluetooth, gps, and keep brightness to a minimum. Use juicedefender. Its awesome...
Edit: A task manager is useful if you have an app wigging out on you, but generally its as easily effective to just do a hotboot
Click to expand...
Click to collapse
Yeah just like you would do on a computer
but just pressing the home button and going out of the app does not close it right? that means it will eat battery?
Pressing the back button will close most apps. I never press home to leave apps. That WILL leave them running to multitask.
Learn2Back
Sent from my SGH-T959 using XDA App
hmmmm i didnt know that, i always press home to go out of apps.....
I think people have been conditioned to press home to get out of apps but that isn't the correct way unless you want it to stay open. Doesn't help that in most phone reviews and walkthroughs, the person demonstrating usually constantly uses home.
Back closes an app, home takes you to the home screen.
Sent from my SGH-T959 using XDA App

[Q] P6210 Automation via Tasker or Timeriffic

Trying to automate some tasks on my stock Galaxy Tab Plus such as connecting wifi, etc. Tried Tasker but the actions aren't triggered. Then I tried Timeriffic and it also isn't working.
Looks like when I create tasks and I trigger them in a minute or two for testing, they work. However, when I schedule them for a few times a day, they do not get triggered.
Is anyone using Tasker or Timeriffic with Galaxy Tab Plus and not having these issues?
Tasker works fine for me but I use it enough to know there are many potential issues. Could you provide a bit more detail of exactly what you're doing?
Cptnodegard said:
Tasker works fine for me but I use it enough to know there are many potential issues. Could you provide a bit more detail of exactly what you're doing?
Click to expand...
Click to collapse
I have 4 profiles that run a task at 4 specific times Mon-Fri. The task turns wifi on, waits 1 minute, does a GReader sync, waits some minutes then turns wifi off. This works on my Samsung phone but not on the Tab.
I've set some notifications in the task to see display the wifi state as way of debugging and generally, after the tasks run once, they don't run again.
Thanks for your help.
Hmm weirdly enough I've only had things that don't work on my SII work on the 7.0 Plus... not the other way around.
Tasker is running in the background right? Meaning there's a constant lightning shaped icon in the notification tray. Without this icon the OS might close Tasker itself.
Cptnodegard said:
Hmm weirdly enough I've only had things that don't work on my SII work on the 7.0 Plus... not the other way around.
Tasker is running in the background right? Meaning there's a constant lightning shaped icon in the notification tray. Without this icon the OS might close Tasker itself.
Click to expand...
Click to collapse
Yes, the tasker icon is there. My phone is SG2 and both Tasker and Timeriffic work on it. Weird! Thanks.
This is something of a shot in the dark but try downloading the Beta version of Tasker from the dev's site. It replaces the one you bought and uses the existing license check to work. Wouldn't think it would matter but the beta has more features anyways
Timeriffic Helpdesk
Thanks for the feedback. To better help us could you do the following...in Timeriffic, click Menu, Report Error. Note this issue again, this will help us better diagnose the trouble. We have had reports of various hardware and versions of Android OS causing issues and we are researching how that impacts our app. We hope when/if Android is updated it might correct some of those errors. We are also have an FAQ for our users to provide some answers too.

Serious FLAW w/ Huawei Phone Manager - "Recent Apps" & 3rd party App Startup - HELP!

Serious FLAW w/ Huawei Phone Manager - "Recent Apps" & 3rd party App Startup - HELP!
Hi,
I am having a 2 MAJOR deal-breaker issues with my GEM-703L B112 EMUI 3.1:
* Startup Apps (including Alarm Clocks, Hangouts, 3rd party Email client) don't start after a reboot resulting in missing notifications
* Protected Apps (including Alarm Clocks, Hangouts, 3rd party Email client) get killed/closed when "flicking up" to clear all apps using Recent Apps button resulting in missing notifications
The culprit of this issue seems to be Huawei's Phone Manager. All apps mentioned above are set as Protected Apps, Trusted permissions, allowed all notifications, and background data is enabled.
If anyone has a solution for this issue, *PLEASE* help! I really love the phone but must have this resolved since these are VITAL, especially for my alarm clock - not waking up for work is not an option!
I will be rooting once I get the bootloader unlocked via unlock code from Huawei at which time this issue can be fixed by making these important apps as system apps (thanks to ajsmsg78 for the suggestion as well), but until that time and for many of those who are and won't be rooted, a solution is clearly very badly needed.
Lastly, I believe this issue also exists for other Huawei phones having EMUI such as the P8, etc.
Switch off Power Genie app and set energy saving to least agressive level.
trurl3 said:
Switch off Power Genie app and set energy saving to least agressive level.
Click to expand...
Click to collapse
Thanks for your reply trurl3, my energy saving level is set to "Performance" which is the least aggressive level, but I cannot find this "Power Genie" app. Where would this be found through?
E--Man said:
Thanks for your reply trurl3, my energy saving level is set to "Performance" which is the least aggressive level, but I cannot find this "Power Genie" app. Where would this be found through?
Click to expand...
Click to collapse
Don't bother doesn't help, I've power genie disabled and it's on Performance, still same issue.
hagba said:
Don't bother doesn't help, I've power genie disabled and it's on Performance, still same issue.
Click to expand...
Click to collapse
Thanks hagba.
UPDATE: strangely enough, my startup apps have now slowly started to start up after reboot but not right away. As I do not yet have root on this device, I simply cannot explain why in the world this positive change had happened. I am almost afraid to reboot again because I will be frustrated if/when they do not start up.
The app that I really need to start up is called Alarm Clock Xtreme which is my goto Alarm app for years now. At first it was not showing the permanent notification in the notifications and the Alar, would not go off. Now after a few minutes after reboot it is showing up. Not sure what is going on here code-wise.
Anyone have any input here or a solution for the Recent Apps button killing Protected Apps?
hagba said:
Don't bother doesn't help, I've power genie disabled and it's on Performance, still same issue.
Click to expand...
Click to collapse
Was a problem on the X1 I had as well. Things like google hangouts would get closed and you'd never get notifications, even if it was set as a protected app. From what I can tell only the Huawei apps are truly protected...
You have to root and get a rom with the phone manager removed.
And even then, some things still get closed once in a while, which is odd. There's is plenty of free memory, so not sure why the Huawei phones mess up the memory management so much.
This Huawei memory management issue is really the only bad thing about this phone... Android has a great memory manager built in, don't mess with it
Otherwise, its perfect for me...
hagba said:
Don't bother doesn't help, I've power genie disabled and it's on Performance, still same issue.
Click to expand...
Click to collapse
Hagba not sure if u saw my message above.
omniphil said:
Was a problem on the X1 I had as well. Things like google hangouts would get closed and you'd never get notifications, even if it was set as a protected app. From what I can tell only the Huawei apps are truly protected...
You have to root and get a rom with the phone manager removed.
And even then, some things still get closed once in a while, which is odd. There's is plenty of free memory, so not sure why the Huawei phones mess up the memory management so much.
This Huawei memory management issue is really the only bad thing about this phone... Android has a great memory manager built in, don't mess with it
Otherwise, its perfect for me...
Click to expand...
Click to collapse
Thanks omniphil, I'm wondering if this particular issue could be worked around since startup apps are working but only after a delay (see "UPDATE" above) by having a third party app monitor if a process is killed or having a Tasker profile to relaunch it right away, but then we are back in the same paradox where that third party app or Tasker profile would also be killed when "flicking up" to kill all apps.
@ajsmsg78 , @elio321 , @mcdhol_24 , @hagba , @Djiban:
Perhaps there is a certain third party app or Tasker profile can designate itself with "priority" mode of some sort and can bind itself to notifications or accessibility so that it would be relaunched? Please note I am just brainstorming here! Input would be gladly appreciated...
E--Man said:
Hagba not sure if u saw my message above.
Thanks omniphil, I'm wondering if this particular issue could be worked around since startup apps are working but only after a delay (see "UPDATE" above) by having a third party app monitor if a process is killed or having a Tasker profile to relaunch it right away, but then we are back in the same paradox where that third party app or Tasker profile would also be killed when "flicking up" to kill all apps.
@ajsmsg78 , @elio321 , @mcdhol_24 , @hagba , @Djiban:
Perhaps there is a certain third party app or Tasker profile can designate itself with "priority" mode of some sort and can bind itself to notifications or accessibility so that it would be relaunched? Please note I am just brainstorming here! Input would be gladly appreciated...
Click to expand...
Click to collapse
Hi All and @ajsmsg78, @elio321, @mcdhol_24, @hagba, @Djiban, @omniphil,
I have noticed that unlike my other Protected apps, my SwiftKey keyboard app does not get killed when flicking up to close all apps using the Recent Apps button. I understand that this is obviously because the selected keyboard is required to stay in memory, but can't this or similar exception be leveraged to keep a Tasker profile in memory to relaunch critical apps?
Surely I am not the only unrooted user with this issue!
Thanks again.
I think the big question is, why are you swiping up to kill all apps? They aren't running in the background anyways, they are just place holders. There isn't really any need to kill all the background apps in android anymore, it uses more battery life. Just leave them all there and let android do what it was designed to do
omniphil said:
I think the big question is, why are you swiping up to kill all apps? They aren't running in the background anyways, they are just place holders. There isn't really any need to kill all the background apps in android anymore, it uses more battery life. Just leave them all there and let android do what it was designed to do
Click to expand...
Click to collapse
Hi omniphil, I see what you are saying but killing unused apps does improve the device speed and save on battery usage including background data consumption. I understand that memory is automatically managed by killing apps when more memory is required but the above is not considered in this - just memory.
I fixed this issue by freezing the phone manager through titanium backup. I was also breaking my head over keeping the apps running in the background even if they were killed in the multitasker area. You do need to be rooted to use titanium backup. Hope this helps, it sure fixed the issue for me.
want an app to not be closed by swiping up? on the app itself, on the recents screen, swipe it down. now there's an icon showing on it, right? that means it won't be closed when you do the swipe up to close all apps.
Dead_Dude said:
want an app to not be closed by swiping up? on the app itself, on the recents screen, swipe it down. now there's an icon showing on it, right? that means it won't be closed when you do the swipe up to close all apps.
Click to expand...
Click to collapse
Hi this is true but only valid until next reboot.
can you disable phone manager with debloater software on Windows

Categories

Resources