Multitasking the Android Way - Nexus One General

My apologies if this is a repost but I came across this yesterday and thought people here might be interested. Anyone that has ever been confused by the way Android multitasks (let's be honest, we all have) should read this.
http://android-developers.blogspot.com/2010/04/multitasking-android-way.html

Interesting. And the author certainly has a cool last name.

Definitely a good read. Thanks.

I'm still TOTALLY confused between what a process vs service is and how everything works together. what's the difference between an app I just sent to the background vs its associated service or process? are they one and the same?

RogerPodacter said:
I'm still TOTALLY confused between what a process vs service is and how everything works together. what's the difference between an app I just sent to the background vs its associated service or process? are they one and the same?
Click to expand...
Click to collapse
A process is any task that the CPU has to perform. For example, say you open a text file. That's a process. Once the file is opened, the process is done.
A service is a long-running task, often launched by a process. More specifically, services are A) for tasks need to run in the background, B) usually for long-periods of time (or indefinitely), and C) most importantly, independent of user-input. Instead, services usually respond to changes in the system (ie Battery Indicator, see below), or periodically checking the internet for something.
- For example, the Battery Indicator app, which puts the battery percentage in the status bar (see picture below). Whenever the battery changes in the system, the Battery Indicator service is alerted, and the percentage in the status bar is changed.
- Another example is the Google Talk service, which is running whether or not you launched the app. That's because it needs to stay open in case someone messages you.
Without services, nothing could run in the background for long periods of time. For example, without the Google Talk service, if you wanted to receive a message, you'd have to have the app open and in the foreground 24/7. Once you opened another app, you'd go offline. (coughiPhonecoughcough )
You can view your services in Settings -> Applications (on Sense UI anyway).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Very informative, thanks for that.

Excellent blog post! Thanks!

This would definitely seem to support the "No task killer" philosophy.

Good stuff to see...thanks

aujbman said:
This would definitely seem to support the "No task killer" philosophy.
Click to expand...
Click to collapse
I wish I could agree with that but without some type of task manager, my N1 does not run smooth at all. =\

Related

Universal: Security & Screensaver

I find the current security on the device as being quite limited, and boring.
I was looking for:
1. A screensaver while docked that displays critical information such as a clock, appointments, date, appointments etc, and perhaps a user definable background, slideshow or similar. This is particularly handy while plugged in and sitting on the desktop.
2. Security module for while out and about, and maybe while on the desk, that will require password entry, but will display date, time, appointments, missed calls, unread messages etc on the screen until entered.
3. I was also reading about the remote kill on the pda, for wiping memory and sd card data when receiving an SMS and similar.
So, before I committed to some dodgy pathetic software that says a lot, delivers bugger all, and chews memory and resources, and becomes more fiddly than it is worth, I thought I would ask the gurus opinons on what they use and potentially what they dont use from experience.
A couple I was looking at installing are pocket secure v3, Dockware, and PDAKill.
Comments, feedback, suggestions?
I used to use 1-pass. It's quite nice.
http://www.omegaone.com/pass/default.htm
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
V
V
this looks like a good little program haven't tried it yet but did you get it to work on your uni as it sayson the site its not WM5 compatible.
By the way congrats on the little one
scott
Cheers Scott. Like I said, I used to use it, but stopped because it would screw with AE Button Plus, and I'd rather use that then a fancy smancy screensaver
I've never tried it on WM5, so can't comment, although from memory I don't see why it wouldn't work, almost nothing was WM2003 specific. But, they should know.
I found that it was quite hackable as well, to force it to match my colour schemes, but in the end, as I said, it was no great loss, although pretty.
V
I contacted them and they indicated it wasnt MW5 compatible.
The other one I was waiting for SPB Time, but this also is not WM5 compatible.
Any other suggestions or comments from anybody?
bump....
any more comments, surely others are using screensavers, and or security settings?
or ... are you all just leaving your phones and all confidential information available to theft?
Anybody else using these apps or other alternatives: pocket secure v3, Dockware, and PDAKill

GingerDX battery drain related thing..??

Hello guys,
I found something strange in GingerDX ROM that I have marked in screenshot
Even this process can't be stopped more than 5mins. It starts itself.
In other CM7 ROMS there is no such process that is running in background.
AS written in second screenshot "kept for better speed", may be this is the process that also provide speed to system but also drain battery.
What do you think about it..??? Did anyone also found this..???
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Well i dont have anything like this and im using gdx22 with alfs06 no cap kernel
Sent from my X8 using XDA App
Nope, haven encounter such issue
Sent from my X8 using XDA App
I am prettu sure have this thing in cached processes, not in running processes. Click the grey or green line on bottom of screen and you will see...
Hit the THANKS button if I helped you!
This mail was delivered from my W8 using Tapatalk!!
android core apps is a cached process. so it rests in the green half of the RAM indicator line. closing it wud result in less RAM
KASHYAP9 said:
Hello guys,
I found something strange in GingerDX ROM that I have marked in screenshot
Even this process can't be stopped more than 5mins. It starts itself.
In other CM7 ROMS there is no such process that is running in background.
AS written in second screenshot "kept for better speed", may be this is the process that also provide speed to system but also drain battery.
What do you think about it..??? Did anyone also found this..???
Click to expand...
Click to collapse
GingerDX v022 on Stock Kernel... NO SUCH PROCESS
"Running" shows ...
Maps, Settings, Maps, Android Weather, 3G Watchdog, DSPManager, Google Services, Android-Keyboard.
It's also not listed in the "All" tab, and I even can't find it with Titanium Backup.
Better investigate which app/mod spilled it into your ROM.

Tip for JB stock ROM users.

I am far from being an Android power user. I don't use mods, skins or launchers and prefer to stick to stock ROMs.
The farthest I go is to root my device, given the fact that some apps I need either work better with it or won't work at all without it.
So you have an idea, just the other day I posted I couldn't figure what "Greenify" was good for since, as I understood it, If we have to enter the app to hibernate/de-hibernate the target apps we might as well just launch and kill them, as needed, only to be kindly enlightened by another user about the fact of life that some apps do still run in the background, even after we've killed them.
...Pretty "tech challanged", right?
...but, coming from this "restricted" background, I do have a tip to share with you guys after having tried some online suggestions to deal with the relative "sluggishseness" and low Quadrant benchmarks I was faced with, after having migrated to JB XSP.
Apps took up to 3 seconds to launch and I was having this kind of values in Quadrant:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried a bunch of stuff to improve things up. I removed a series of apps I rarely used, even some system ones, using SystemApp Remover and inhibited others like MacroDroid. Still, no improvements.
Until...
Today, acting on tip read online, I went to "Settings" ---> "Developer Options" ---> (Activate) ---> "Drawing" and changed "Window animation Scale", "Transition Animation Scale" and "Animation Duration Scale" from the default values to 0.5x.
I got definite improvement in launch response, general "sluggishseness" with Quadrant values jumping to this:
Happy Puppy now
Hope this helps!
XK
I tried your suggestion and here are my results
Before change
4488
After change
3446
Restored to original settings
4146
Sorry for lack of images but I am unable to attach them.
In my case those settings did not improved the performance it actually decreased it. This might be on a case by case scenario but a good tip nonetheless
Sent from my GT-P6800 using xda premium
Note the huge jump in the I/O score. Seems out of character with the other devices.
"media" app. is consuming too much battery n running constantly even after force stopped. How to solve this issue..?
aries8 said:
"media" app. is consuming too much battery n running constantly even after force stopped. How to solve this issue..?
Click to expand...
Click to collapse
use this https://play.google.com/store/apps/...SwxLDEsImNvbS5hZGR6Lm1lZGlhc2Nhbm5lcnJvb3QiXQ..
or
https://play.google.com/store/apps/details?id=com.addz.mediascanner&feature=more_from_developer
to stop the media scanner

Moves app - it still uses a lot of battery

As reported in some Nexus 5 reviews as well as on the Moves google play page reviews, the Moves app that comes on our phones seems to use quite a bit of battery. If you installed it, you can take a look on your own phone by pulling down settings and clicking on the battery icon.
Yes, I know they talk about how it uses much less power than other ways of tracking movement, but it still seems to be a noticeable amount.
According to Moves help, you can turn if off inside the Moves app settings by turning off tracking. At first I thought it came on the phone, but as others pointed out I installed it from google play..
I don't see any apps called moves? Is it hidden?
Sent from my Nexus 5 using XDA Premium 4 mobile app
yaconsult said:
As reported in some Nexus 5 reviews as well as on the Moves google play page reviews, the Moves app that comes on our phones seems to use quite a bit of battery. You can take a look on your own phone by pulling down settings and clicking on the battery icon.
Yes, I know they talk about how it uses much less power than other ways of tracking movement, but it still seems to be a noticeable amount.
According to Moves help, you can turn if off inside the Moves app settings by turning off tracking. If you don't need/want/use Moves, did you turn it off?
Click to expand...
Click to collapse
I must of turned it off some how... stock unrooted here.. i dont see it anywhere, not even in settings - apps - all.
*edit*
ahh it doesn't come with our phones, i dont have it installed even.
You actually have to download it from the play store. It doesn't come with the phone.
Crikey didn't know it used that much battery :/ might get rid of it lol
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my Nexus 5 using Tapatalk
I see at least 10% battery drain due to Moves. Can't tell whether this is supposed to be expected.
Runtastic Pedometer has been doing much better for me battery-wise. Can leave it running all day and it is at the bottom of my list. Somethings not working right with Moves.
If you turn off tracking within the Moves app, won't that defeat the purpose of the Moves app? Ouch... Just checked mine and it's at 36%. I think i'm going to remove it for a while.

Unwanted popup

My phone is stock, no changes other than a few apps have been disabled.
I am getting an unwanted popup after I receive a call. It wants me to install Instagram, or another program. I have scanned with Malwarebytes but it finds no viruses.
Any help in getting rid of this appreciated. Please see the attachment.
Thanks.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Do you have ES File Explorer (think I see it in the background)? Try uninstalling that app and see if the ads persist. ES File Explorer may be presenting adverts and popups.
Thanks, but that did not work. Onto the next guess!
are you using a custom launcher? some of them provide ads on your ohone.. also try removing any apps that are known for showing popups
Chinese apps tend to have overlays like that, especially those cleaning/boosting apps. Get rid of those and see.
When it pops up, do you see anything more in the expanded notification bar? If yes, then press and hold on it and tap on "app info/detail". From there you can see which app is displaying these pop ups and disable notifications.
Thanks, Using ADW. Removed and still there.
Don't have any of those, but good guess.
No way to expand the notification nor any way to get more information. Talked to Motorola support and they had me clean the cache and that did nothing either.
Last case resort, start uninstalling apps one by one with the newest one first. When the pop ups stop, you've found the problem.
tomlogan1 said:
No way to expand the notification nor any way to get more information. Talked to Motorola support and they had me clean the cache and that did nothing either.
Click to expand...
Click to collapse
Prior to using the last resort method provided by riggerman, you can view how much data/wifi each app is using that is currently installed on your device. This can be done by navigating to network info in your settings. Then simply compare that data to which app is eating up your memory at the time of the pop up. A more in depth method would to use an app that is designed to gather in depth data on installed apps specifically for the user, such an app would be Android Addon Detector available in the Play Store (link: https://play.google.com/store/apps/details?id=com.denper.addonsdetector). I wont write up the way to do it cause I don't have that kind of time at the moment, and it'll do you good to teach yourself given the internet and the app FAQ and developers site because knowledge is power, and knowledge also helps to quickly deal with little piece of bull**** that land on your path in life, such as annoying popups
Removed 2 backup apps and seems to have gone away, thanks.
Had the same popup problem. I said STOP in response it has gone away.

Categories

Resources