Sam Calma

Create Swim Bike Run

Hello World App in Android Studio in no time

As software engineers we always have the thirst and desire to learn, explore and play with new techn

As software engineers we always have the thirst and desire to learn, explore and play with new technology Sam is no exception. He recently acquired an android powered Moto X second generation. Why not try an infamous Hello World app in Android Studio and possibly deploy it on the new Moto X.

image

1.  Download and setup Android Studio

Android Studio can be download from http://developer.android.com/sdk/index.html , download and install Android Studio. You know mount the image file and drag and drop android studio to the applications folder and the installation will do its magic.

2.  Build Hello World App

Go ahead and fire up Android Studio

Go to File->New Project…

Fill up the Application Name –> Select target platform (Phone and Tablet) –> Specify Minimum SDK ( API 21 : Android 5.0 Lollipop ). Or SELECT defaults.

Select to specify activity, just choose default activity, specify name if you want and click move to next step and finish.

You now have an Android project

3. Run Hello World App in Emulator

Run your project, Run-> Run App and you have an Hello World running in Emulator

image (1)

4. Deploy Hello World App on Device

Enable on device developer options instructions can be found here http://developer.android.com/tools/device.html 

Enable your device for USB debugging

Of course your device need to be plugged in with your USB

Running the app from Android Studio will now show another option to run it on the device

image (2)

There you go Hello World from Android Studio running on your Device!

Development Machine Configuration:

image (3)

That’s it folks till next time :)

Loading