This Android SDK requires Android Developer Toolkit version 23.0.0 or above

If you have a conflict with the previous version: Select Help > Install New Software Click on already installed Select all Android software on version 22.* Click on Uninstall Work with: https://dl-ssl.google.com/android/eclipse/ Select Developer Tools and Next Next, Accept the license agreement and Finish. EDIT : This trick is probably no more necessary! Try to … Read more

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

Can’t update Eclipse ADT to 22

I updated my tools to r22 using SDK Manager and ADT plugin using Eclipse’s “Check for Updates”. For some reason I still had: This Android SDK requires Android Developer Toolkit version 22.0.0 or above I resolved this by reinstalling Eclipse ADT plugin using Eclipse’s “Install New Software” feature and using https://dl-ssl.google.com/android/eclipse/ as the repo URL.

ADT blank activity created with fragment activity

For those who would like instructions on how to remove Fragments from the project: 1) Copy all the contents of res/layout/fragment_main.xml. Open activity_main.xml, delete the FrameLayout, and paste in the copied contents. 2) Delete fragment_main.xml 3) In MainActivity.java, delete the whole PlaceHolderFragment class: /** * A placeholder fragment containing a simple view. */ public static … Read more