Mobile Zone is brought to you in partnership with:

Troy Miles is a Southern California based software developer. He began by writing games for the Apple II, C64 and IBM PC in assembly language over 30 years ago. After burning out on games he switch to creating windows application software in C and C++. And now he develops applications for both web, mobile web and mobile devices in C#, Objective C, Java, and JavaScript. He is also a big fan of jQuery, jQuery Mobile and PhoneGap. Troy is a DZone MVB and is not an employee of DZone and has posted 25 posts at DZone. You can read more from them at their website. View Full User Profile

Getting Started with Android Development in 2014 - Windows Version

05.02.2014
| 4832 views |
  • submit to reddit
Getting started as an Android developer can be a bit confusing. Unlike developing for iOS or Windows Phone, Android developers have lots of choices. We can choose our development o/s: Windows, Mac, or even Linux. We can choose our IDE: Eclipse, Intellij, or the new Android Studio. We can even choose our device emulators: stick with Android emulator, build one with VirtualBox, or one from Genymotion. Yes, we have a lot of choices and it can be confusing.


So I am going to show you how to set up my PC development environment. I like it because it gives me the best combination of speed and tools to make developing good code easier. Luckily it only consists of three pieces and all of them are free.Piece Number One: Java SE Development Kit 6u45There is a bit of confusion in the Android world over which version of Java SE Development Kit we should be using. Java is rarely mentioned on developer.android.com. When it is mentioned it usually mention Java SDK version 6. Now if you know anything about Java, you know that version 8 was released recently, so why are we using a version which is two releases behind? Most likely it is related to the ongoing litigation between Google and Oracle.There are quite a few devs which say they are using Android with Java version 7 and some which say they have it working with version 8. I am too caution however to try the newer versions. I know that version 6 works. So until I hear something definitive from Google, I am sticking with it. Luckily it is still available. Don't fret over the security warnings. The warnings are mainly for servers apps built with Java not for Android apps. Use the link below to get the download. You have to be a registered member of Oracle website, but it is free, save a few emails you will get from Oracle.http://www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html#jdk-6u45-oth-JPROnce you have installed it. You must add it to your path's variable and you should also create a Java_Home variable. You should do this before you continue, but don't worry it is easy.Piece Number Two: Android StudioAndroid Studio is still in beta, but it has been stable for me and since it is the future of Android, I recommend using it. Now there are somethings that don't work with it yet, but the only big thing is the NDK. I don't have any idea when Google is planning to add NDK support to Android Studio. The current version of Android Studio is 0.5.7 but it does feel pretty close to finish. It is super easy to install just go to the link below and follow the instructions.http://developer.android.com/sdk/installing/studio.html


Piece Number Three: Genymotion EmulatorGenymotion is built on top of Oracle's VirtualBox. Unlike Google's emulators it doesn't try to simulate an ARM processor instead, it uses the full power of your desktop's CPU to run x86 code. The difference is amazing. On a decent PC, Genymotion is fast enough to run games. Genymotion is free for personal use, but you do have to register. Go to: http://www.genymotion.com/To register. They will send a link to your email address in order to confirm it. Click the link and you are in. For Windows machines there is a special installation package which combines VirtualBox and Genymotion together. It is the first one listed under Windows. Be sure to choose it. 
Follow the installation instructions and once complete, you will need to download a few emulated devices. 
Published at DZone with permission of Troy Miles, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)