Navigation

Tuesday, July 1, 2014

Creating an Android Project (Contd..)

We all talked about creating Android projects using command line and Eclipse based ADT. There is also another way of creating a project using studio. We'll create a project in studio here.

Using Android Studio

1. If you run the studio for the first time or there are no projects created then you'll see the below screen. Click new project from the options you see.
 
Project Creation

2. Write your application name and leave the defaults as they are for now. Click Next.
Project Creation
 3. Now, you'll be presented with the below screen. Choose your target device and the corresponding minimum required SDK to run your App. Click Next.
Project Creation
 4. Choose your activity type from the below screen and click Next. For now choose Blank activity.

Project Creation
 5. Supply your activity name and leave the default as is. Click Finish.

Project Creation
 6. After your successfully created your project, Studio will try to build it for you before opening your project.



Project Creation
The first time this process is going to take its time. It will try to download and configure dependencies. 
If you need to read more about gradle, click here.

After the project is created successfully you'll see the below screen below.


And, your project is created successfully, with a preview of the app also on the right of the screen. If you want to refer further please click here.

Well, once you open the project explorer you'll see a huge number of files. Do not worry too much and for now just try and explore the different files that are created. 

We have observed all the three ways of creating the project. Now, it is up to us to decide which one to use. I am used to eclipse IDE and hence would prefer to use the same, having said that, the comfort of being accustomed to one environment should not prevent me from exploring the beauties of others. An editor is a tool to help you develop faster. While a command line process may us teach us more about system at hand, an IDE can help us concentrate more on the actual development. Many people are comfortable in eclipse and it is most popular for java development, Android studio is an improved editor for Android development. While eclipse has popularity, Studio has been given more development and release features by Android team. You can see these features enlisted comparatively here

According to android dev site.
Android Studio is a new Android development environment based on IntelliJ IDEA. It provides new features and improvements over Eclipse ADT and will be the official Android IDE once it's ready.
Hence, I leave the decision to the developer himself.

No comments:

Post a Comment