Make Eclipse and Android Studio play nice with the same Android SDK

Are you using both Eclipse (ADT) and Android studio for developing Android apps? They both come with their own SDKs, and maintaining two SDKs separately can be quite painful. Here is how you set both IDE’s to use the same SDK. Create a new common SDK to be used by both IDE’s First, you have to set up a common SDK. You can either download a new SDK, or use the one that came with either Eclipse/ADT

» Read more

How to fix the DrawerLayout inflation error in Android

If you are trying to use the DrawerLayout in your Android app(perhaps from the example project?), and your app is crashing when you try to run it, and you are getting a lot of errors saying Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.support.v4.widget.DrawerLayout or something like: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.navigationdrawerexample/com.example.android.navigationdrawerexample.MainActivity}: android.view.InflateException: Binary XML

» Read more

Eclipse ADT has been updated. Brings nice features!

I just noticed throught Eclipse that ADT had been updated. The new ADT version brings some nice touches to the layout editor. Now you can select items and drag and drop them onto the layout. It’s a nice touch that will certainly help new android developers a lot. To get the new features, in eclipse go to Help and then Check for updates. You can read more in the ADT changelog. They have also tweaked the XML formatting. Which

» Read more

How to try out Android 4.0 Ice Cream Sandwich!

A couple or hours ago, the Galaxy Nexus was announced, along with Android 4.0. At the same time, the Android 4.0 SDK was released into the wild.  Here I will show you how to already get it up and running, so you can try it out, and start developing/adapting your Android apps for ICS. It will give you a nice “hands on” feeling for ICS The steps in this post is quite similar to the post I

» Read more

How to easily extract strings from your Android code into the strings.xml file

This handy little feature can save a lot of time and manual work when working with Android apps. If you during Android development in Eclipse use hardcoded strings in your java code, like in the example below: package test.layout; import android.app.Activity; import android.os.Bundle; import android.widget.Button; public class LayoutTest extends Activity { private Button btn; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); btn = (Button) findViewById(R.id.Button01); btn.

» Read more

How to try out the new Android 2.3 – Gingerbread!

As Google just recently announced the Nexus S from Samsung, which is running the new Android 2.3, known as Gingerbread, I wanted to have a look at the new OS for myself. Gingerbread comes with lots of new nice features and improvements, you can read about them here. Or you can watch the official video, to get a quick overview: Altough testing the OS in an AVD, does not compare to the real device in terms of speed and

» Read more

Getting Started With Android – Setting Up The Development Environment

This is a walkthrough on how to get started developing android applications in windows with Eclipse. I will be using Windows 7 but the steps are similar in Vista and XP. This article assumes little prior knowledge about Android. The reason for using Eclipse is because there exists an Android development plug-in for Eclipse, which makes things easier for us developers. Also, Eclipse is a good and Open Source IDE. Eclipse can also be used for other languages such as

» Read more