zocada

Getting started with Android Development [Java] – Make your first Android App

Have an excellent idea that you want to turn up into an app or you’re just a beginner who wants to get started with Android development. Here are a few steps to hop right in:

First things first is you will need an IDE(Integrated Development Environment)

Back in the days people used to use Eclipse for developing Android Apps but Google has its own IDE now called Android Studio

and it’s available for multiple platforms like Windows, macOS, Linux.

You can download and install it from here.

 

After you’ve done installing and setting up Android Studio.

1.Open Android Studio and at this page select ‘Start a new Android Studio Project’

2. Choose your Application name – [This is the name of the app and it’s going to show up in the App launcher]

Set the company domain – [Leave it as is]

Choose the project location – [Where the project and its files must be saved]

Leave the other options as is. [For now ?]

  1. Select Phone and Tablet and choose the API level [for now leave this as is] and hit next.

  1. Choose Basic Activity or Empty Activity and hit next. This is actually the template for the App [More on this coming soon?]

  1. Leave the options as is [again, for time being ?] and hit next!

 

  1. Let Android Studio build the project and set everything up for you [Based of your system configuration it should take about a minute or two]. Be patient and let Android Studio do its “thing”. After its done, look to the top right and you should see this.

Hit the Green Play button.

  1. When this window pops up, plug in your Phone [or if you’re using an Emulator, start it] and select the phone the list and hit OK

If your device doesn’t show up make sure,

  1. Your USB cable is working fine
  2. USB debugging is enabled in the Developer Options [Read further to know how?]
  3. Install drivers for your phone [Just Google ‘**Your phone**drivers’]

To enable USB debugging [on Stock/Vanilla Android], open ‘Settings App’ and goto ‘About Phone’, and find ‘Build Number’ and tap on it several times until you see something like, ‘You’re x steps away from becoming a Developer’. Keep tapping it until you see the message ‘You’re a developer now’ or something like that. Head back into settings and you’ll see that a new section called ‘Developer Options’ is available now. Tap on it and scroll down a little and find ‘Android Debugging’ and enable it. If any warning messages pop up just ignore and hit OK. Now your phone should show up on the Android Studio Deployment Target screen.

When you select your phone and Hit OK, Android Studio should start building/compiling your app. Meanwhile if there’s a pop up on your screen saying ‘this PC wants to use this device for USB debugging’ or something similar, just choose always allow and hit allow.

After Build/Compile is done you should see your App running on your device!

Congrats! You’ve just build your first Android App.

 

Rumaan

Associate Android Developer | Web Developer | UI Designer ?