An intent service allows you to run process in the background. The line <service android:name=".MyIntentService" /> must be added to your AndroidManifest.xml file. Notice that all intent services run sequentially. In my example, if you click the button twice, the second message will still came up 5 seconds after the first message. Also, intent services between different apps does NOT run sequentially. Each app runs its own intent services.
Download: Intent Service
Monday, September 30, 2013
Friday, September 27, 2013
Wednesday, September 25, 2013
Thursday, September 19, 2013
Easy Samples for Novice Android Developers
I have started learning Android Programming not long ago. The
training on the official website was helpful. However, the examples provided
were too complicated for beginners. I will share some of my examples. Each
example has a single purpose. They are small bites that are suitable for
beginners.
Subscribe to:
Posts (Atom)