Monday, May 20, 2013

Android Studio New Development Environment for Android

Hello Everyone!!

Google has finally decided to get rid off Eclipse as an Android Development Environment.

During Google's opening Keynote I/O developer conference, Google announced its new Android Development Environment Known as ANDROID STUDIO.

Watch the clip below and learn how to install Android Studio to your machine




Also, Watch the following clip to see the new feature available in Android Studio as compare to the old available SDK.




So now everyone you can enjoy doing coding on this brand new Android Development Environment.
Also please refer to other articles and do come back after some time to see updated or to see some brand new articles on Android Development.

Reference: Techrepublic

Sunday, March 10, 2013

Android Tutorial: Creating New Project in Eclipse

Hi everyone now with respect to my last Post on Android Installation in Windows Machine let us now start with creating new Project for Android in Eclipse.

So to create New Android Project in Eclipse.

1) Go to File --> New ---> Android Application Project.

When you click on Android Application Project, You will able to see following Image 



Over Here

Application Name --> The Name which you wanted to give to your application.

Note: The application name for most apps begins with an uppercase letter. So you should also try to start your application name with uppercase letter.

Project Name --> The Name which you wanted to see for your project in Workspace (The place where all your application projects gets stored).

Package Name --> It's the package name under which all your Source file will gets stored.

Minimum Required SDK --> The minimum operating version which user will required to install your application onto their device.

Target SDK --> The main operating System for which you are targeting your application.

Now After filling in all your details Click on Next Button.

2) As soon as you click on Next Button you will able to see the following Image.


Over here keep the selected checkbox as it is unless you need to do some changes to your project file @ Wanted to add your project as a Library in eclipse or wanted to store project in some other workspace or you do not wanted to create by default Activity in your project file.

After doing your required changes, Click on Next Button.

3) Now after clicking on next button you will able to see Icon Screen where you can select your Icon if already created or can make a custom Icon from here.

Note: Icon resembles your application since the user will able to see always your ICON and also will able to start your application by clicking on it. So always create your ICON in such a way that user like to click on it whenever they see it.
Also please note that it is not compulsory to create your ICON in the beginning, You can create it afterwards and can replace it once you are ready to go live with the project.

The Icon selected screen is as follow:

   
4)  After you create/select an Icon click on next button and you will able to select the type of your default activity with whom your application will start every time.


 As you can see few custom activity provided by Google are as follow:

a) Blank Activity: Plain Activity helps you to design your own layout with respect to your requirements.
b) Login Activity: Suppose you have some Login Type feature where you want user to login first and then use your application than this activity is the best activity you can select.
c) FullScreenActivity: If you wanted to have your activity cover the whole screen i.e. there should not be a Title Bar on the Top than this activity will help you to achieve your goal.
d) SettingActivity: If you want user to do some setting as soon as your application starts then this activity will help you to achieve your goal.

Select your activity accordingly and then Press on Next Button

5) Now the Last step is to give name to your Activity File and the Layout File (which correspond to your Activity File).

Refer following Figure for the same


After filling your required detail press on Finish Button and Once done will see the Project with all its file created in Package Explorer of your Eclipse.
   

Tuesday, March 5, 2013

Android Installation in Windows Machine

After creating many applications in android I thought of sharing my knowledge with you all.So Here I am with my first Blog which will explain you all @ How to Setup Android Development Environment into yours windows machine.  

Now to install Android into Windows machine one should do the following things:

1) Download SDK ADT bundle from windows by going to site http://developer.android.com/sdk/index.html
2) After going to the above site click on Download the SDK ADT Bundle for Windows.
3) Once you Click on that button it will ask you to accept terms and Condition.For reference please follow the following Image.


4) Make sure the Downloaded File is approx. 406 MB.
5) After you Download the whole file, you will get the file with name as "adt-bundle-windows-x86.zip"
6) Copy that Zip file and go to the Program Files which is located in C drive or a drive where your operating system is Located.
7) Create a folder name as Android and Paste the Zip file over there. After pasting you need to extract this files over there itself.
8) Once you extract the files you will get three things:
     a) Eclipse
     b) sdk.
     c) SDK Manager.exe

Eclipse ---> It is used for developing any android application in it.@ It is Android IDE provided by Google
which have all the android plugins already installed in it. So now one is not required to install any Plugins by their own they Just need to Download Android Emulator (Which user wants to use) from Eclipse.

SDk and SDK manager File are the files which have all the Libraries of android which are required when you want to develop android application.In the newer Version this Libraries are directly installed in Eclipse, So now you don't have to install it.

9) After you Extract the zip file and get all three files/folders open Eclipse folder and Double click on eclipse.exe.When eclipse is getting started it will ask for the Location of Workspace.(Workspace is the Location where all the project files will get stored).
10) Once your Eclipse starts you are ready with Android Development Environment. Now Download Android Emulator according to your needs and Create Project and Happy Coding...

So Now I hope you will able to Install android very well and will able to create wonderful application.
Also If you have any issue with installation of android than you can surely write your comments and send it to me, will go through it and will try to help you out to solve your problem.