Setting background colour of Android layout element

You can use simple color resources, specified usually inside res/values/colors.xml. <color name=”red”>#ffff0000</color> and use this via android:background=”@color/red”. This color can be used anywhere else too, e.g. as a text color. Reference it in XML the same way, or get it in code via getResources().getColor(R.color.red). You can also use any drawable resource as a background, use … Read more

Libraries do not get added to APK anymore after upgrade to ADT 22

Quoting Streets of Boston from his adt-dev post: When upgrading, the ‘Order and Export’ of the new ‘Android Private Libraries’ is not always checked. And the android-support-v4.jar is now in this ‘Android Private Libraries’ section. To fix this, go to ‘Order and Export’ and check ‘Android Private Libraries’. Then refresh/clean/rebuild. After you done this ‘fix’ … Read more

Unexpected value from nativeGetEnabledTags: 0

I just ran into this problem, too. As a workaround I’m filtering the LogCat output with the following expression on the by Log Message field of the filter: ^(?!.*(nativeGetEnabledTags)).*$ Otherwise it is so spammed it’s almost useless. Following Laksh suggestion, if you want to filter this always without having to always write it on the … Read more

Update Eclipse with Android development tools v. 23

Google has released ADT v23.0.2. This solved many problems of previous ADT version 23. Step-by-step: Menu Help → Install New Software… For “Work with”, select the Android source https://dl-ssl.google.com/android/eclipse Tick ADT v23.0 for installation, then click “Next” Eclipse will show “Install Remediation Page” since there is conflict with previous version. (If it does not, see … Read more