Sample Android App

In the previous post we installed android studio and now lets’s loook how to create a sample project and running it successfully.

The following are the simple steps :

Step 1:
File>New>New Project.

You”ll be prompted with a window something like the following where you can choose your application name and package name and project location. 

NewProject

You can edit your application name and package name.

Step 2:

Now you”ll be prompted  to select minimum sdk that your supports. The minimum sdk is on which version of android is minimum to your app.
For Example :
Let’s say you have selected API 10 i.e., Android 2.3.3 . Your app will not be run on lower versions other than Android 2.3.3.

NewProject.png

Step 3: 

Next step is to add MainActivity (Entry point of your app)which is going to be starting screen of your app.

NewProject.png

You can choose any one of them as per your requirement in my case i”ll be choosing “Empty Activity“.

Step 4:

On the next screen you”ll asked to provide the “First Screen Name“. Be default it will be ‘MainActivity‘. As per java naming conventions you don’t have to give spaces between in your class name.And you”ll be asked to give a ‘layoutname‘. A layout is nothing but xml file which holds your  UI widgets like Buttons,TextViews,EditTexts. We’ll be discussing about widgets in coming up posts.Click on Finish 😛.

NewProject.png

A small info will be displayed saying that gradle is building your app. We will disscuss about it later on.

Now you’re ready to write code. Happy Coding !

Getting started to Android Development

Getting started to Android Development

Hey guys. Hope you guys are doing well. And welcome to my first post about android development, Let’s get started.

When i started android development back in 2012 it was not easier to download android related things to your PC. The procedure was something like this : we used to download eclipse and sdk  from developer.android.com and integrating them together after downloading, it was long procedure most of my friends found it was difficult. After all all google came with Android Studio. Which changed the face of android development and it has pretty straight forward way to start with development.

There are few prerequites  i strongly recommend have this prerequites before you get started to android development.

Prerequisites:

1.JDK
2.Make sure you have atleast 1 GB of free space in the drive.

Let’s look into it steps to download:

Step 1:

Go to http://developer.android.com/sdk/index.html and click on download it for Windows. And accept term and conditions.

Step 2:

When the android studio bundle starts downloading you”ll be redirected to http://developer.android.com/sdk/installing/index.html. Where you can see the steps that has to followed for successful installation.

By default the page which shows steps for windows platform you can change it by selecting the drop down which is shown at the right corner of the page.

Instructions.png

And for better understanding you can view the video which is displayed on this page .

That’s all folks you are ready to start programming for android !!!