View Single Post
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#26
Originally Posted by wook_sf View Post
LMAO, it's really obvious who don't know wdf are they talking about.
Sorry about that; you were somewhat right and that's why I deleted the post. Please accept my humble apologies. Here are three very good reads:

http://developer.android.com/guide/c...d-threads.html
http://developer.android.com/guide/c.../services.html
http://developer.android.com/referen...p/Service.html

But with that said, here's a simple example of Android background processing: Open two shells in the IDE Terminal app (you can have up to four) and type one of the following scripts in each, then remove the app from the task manager. At this point you can open and run any combination of Android apps that you like, because if you later restart the IDE Terminal UI, your outputs will be the same as they would be from any multitasking OS consoles.

Code:
while true; do
  date
  sleep 5
done
Code:
while true; do
  date
  sleep 7
done
Cheers!
__________________
N9: Go white or go home
 

The Following User Says Thank You to daperl For This Useful Post: