Grokking Android

Getting Down to the Nitty Gritty of Android Development

How to Correctly Store App-Specific Files in Android

By 13 Comments

Christophe Versieux (Waza_be) posted a rant about android developers’ bad habit to store files directly on the root of the sd card. I completely agree with the post. It’s bad usage to create app-specific folders directly at the root. If you install a lot of apps, the sd card’s root gets cluttered fast. One comment […]  Continue Reading  “How to Correctly Store App-Specific Files in Android”

Android Quick Tip: Formatting Text with Html.fromHtml()

By 26 Comments

Android offers you the possibility to easily format text with HTML markup. Thus it’s easy to create text like this: You probably are going to use bold or italics the most, but there are many more supported. Here is the list of all supported tags. You can find it in the source of android.text.Html‘s inner […]  Continue Reading  “Android Quick Tip: Formatting Text with Html.fromHtml()”

Android Tutorial: BroadcastReceiver

By 37 Comments

Whenever you want to know about system wide events you need to implement and register a BroadcastReceiver. From then on your receiver gets notifications whenever the system event, for which it is registered, occurs. BroadcastReceivers are one of Android’s four standard components. What are BroadcastReceivers good for? The fact that Android informs you about system […]  Continue Reading  “Android Tutorial: BroadcastReceiver”