Disable Logcat (DDMS) & Run Console automatically opening on any activity

I monitor my logcat from outside Android Studio (logcat-color open beside my emulator on another screen/workspace) and would like to stop the Android DDMS view from opening within Android Studio automatically. It takes up screen real estate that I’d prefer to keep for my code. I know that I can remove the view entirely but […]

– java.lang.NullPointerException – setText on null object reference

This question already has an answer here: What is a NullPointerException, and how do I fix it? 12 answers

What is UID on Android?

What is UID on Android? Is it ID of a particular user or of a particular application?

How to check if a Bitmap is empty (blank) on Android

How can I check if a Bitmap object is completely blank, i.e. all its pixels are transparent, without a x-y loop on every pixel?

How to add multiple headers throughout a single ListView with addHeaderView()?

Can Android’s addHeaderView() be used to add multiple headers throughout a single ListView? Can someone give an example of how to do this? I was able to accomplish what I wanted by manipulating the IconicAdapter Class… is there any reason why I should not do it this way? I feel this could be modified for […]

Get temperature of battery on android

How do I get the temperature of the battery in android?

Change Android Actionbar subtitle colour

I wish to customize the actionBar of my android application. I am using Actionbar Sherlock. My min target sdk is 14, target sdk 17. I have a theme that changes the background colour and main title text however i cannot change the subtitle text colour my style is shown here <style name=”MyTheme” parent=”@android:style/Theme.Holo.Light”> <item name=”android:actionBarStyle”>@style/MyTheme.ActionBarStyle</item> […]

Android :getting using Textview.SetText(characterSequence)

I am getting [OBJ] displayed on the screen when I try to set a ImageSpan on a text View..it shows a /uFFFC unicode character instead of the image on the screen,i.e. a dotted box with OBJ written inside it.

How do I take advantage of Android's “Clear Cache” button

In Android’s settings, in the “Manage Applications” activity when clicking on an app, the data is broken down into Application, Data, and cache. There is also a button to clear the cache. My app caches audio files and I would like the user to be able to clear the cache using this button. How do […]

How to highlight a TextView or LinearLayout when click it?

I have a LinearLayout that contains three TextViews. I want to highlight a TextView or the whole Layout when user clicks on the TextView. Is they any way to make it happen? Thanks.

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.