Monday, November 11, 2013

Monday, October 14, 2013

Device Independent Pixels

To be honest, I had a difficult time trying to understand what exactly is device independent pixel (dp). Finally, I have learned that 160dp = 1 inch, it is physical length.

I have created this app to compare the pixels and device independent pixels on one's device: https://play.google.com/store/apps/details?id=com.xizz.androidpixels&hl=en.

To download the original code: Device Independent Pixels

Monday, September 30, 2013

Intent Service

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

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.