Friday, 27 December 2013

Create Button in Android

Today we are going to create a button with Toast message. Create a project (Follow this tutorial ) for creating a button

Step 1:

Click on the project name --> find SRC folder --> Inside the SRC folder you can see your package name com.example.helloworld --> click on the package --> now you can see your java file (MainActivity.java)




Step 2:
Double click on the MainActivity.java 




Step 3:

Click on RES folder -->click LAYOUT Folder --> double click on activity_main.xml



Step 4:

Change default code like this, which is generated at the time of project created (Whole project attached below)



Wednesday, 25 December 2013

Create simple application in android

Well, Today we are going to see how to create a simple application in android. Please open your eclipse IDE (Follow PART 2)

Step 1:
Open eclipse IDE --> File --> New --> Android Application Project (refer the screen shot)



Step 2:

Once you select the android application project you want give your application name, project name and then click  and package name as shown in the screen. Once you filled all the fields then Click Next button



Step 3:

After click next button from the above screen, the next window will open for confirmation regarding your project creating location, activity etc.., once you checked the fields then click NEXT button Follow the picture below and do it as it is



Step 3:

In this window, You want to do nothing. These are images which is launching icon for your application. You can add this launch icon later in your application code



Step 4:

Now, You want to check the Create activity checkbox (if you not check means the screen should not open) --> choose Blank Activity --> click NEXT button



Step 5:

If you like, you can change your first page name on activity name field and then press finish button for create your simple application


Tuesday, 24 December 2013

PART 2 ADT

PART B

Step 1:

Go to  https://developer.android.com/sdk/index.html click to download button



Step 2:

Make a tick on the checkbox for accetp license and choose your OS bit then click download button



Step 3:

After download your SDK ADT bundle, please move that zip file to another location like D:\Android (inside D: create Android folder). paste your zip file in an android folder and extract it. Now, you can get a folder in the same name of zip folder.


Step 4:
Open up the adt-bundle folder --> you can see eclipse folder now -->open an eclipse folder -->now, you can see eclipse


Step 5:

Right click on the eclipse icon --> go to send to option --> then click on desktop (Create shortcut) as shown in the below page



Step 6:

Now, you can see the shortcut for eclipse on your desktop


Step 7:
Double click on the eclipse icon --> now the window will be open like this. In the workspace textfield type the E:\AndroidPractice\ADT\workspace and don't forgot to click on the checkbox as shown in the below window. Once fill up all the require fields then click OK. Whenever you create your android application projects, it will located at the above path (E:\AndroidPractice\ADT\workspace)



Step 8:

Now the window will be open like this


Monday, 23 December 2013

Install android in eclipse (PART 1)


Hi Friends,

This is the useful tutorial who are new to an android technology. Usually you can install android in your system using two different ways. here, the both ways are well established for your reference under the PART A and PART B. Please follow the steps given below with screen shot for set up the android with eclipse in your system

NOTES
In PART A, You can use eclipse for both J2EE and android application whereas, the ADT tool is used for android developing only. if you want to develop your android application with J2EE then go to PART A  OR  if you want to develop android applications alone, then follow up the PART B

PART A
Step1 :
Download eclipse from the following link http://www.eclipse.org/downloads/packages/release/indigo/sr2 please download the eclipse before that confrim about your OS bit like 32 or 64

Step 2:
Extract the folder and find the eclipse.exe file. Right on the eclipse.exe file and choose create shortcut option




Step 3:
Now, open eclipse --> Help --> select eclipse marketplace



Step 4:
Click on the eclipse marketplace --> you can see the window --> in that window, you can see the find option with text field --> now you can see the window like this


Step 5: Type ADT on the find textfield and click Go button which located at the same window --> Now you can see Android Development tools for eclipse option. Now, Click on the install button



Step 6:

Once you clicked on install button, an another window will be open for you like this --> and you want check all checkboxes in that window. Once you selected all the checkboxes then click confirm



Step 7:

Right. Now, youw want to accept the license which is appear in the window for your successful installation then hit the finish button



Step 8:
Good...Now, you can find AVD Manager and SDK Manager in the eclipse tool bar. Otherwise go to windows--> custom perspective option-->click on that --> another window is open there --> click command group availability from that window --> now you can find android avd and sdk manager option (3 rd option from the top) --> check that avd and sdk option --> then click ok 




Step 9:

Go to  https://developer.android.com/sdk/index.html click to download button




Step 10:

Make a tick on the checkbox for accetp license and choose your OS bit then click download button



Step 11:

Once download the file, you want extract your downloaded zip file in the particular location
for example c://android/your zipped file from this location you want to unzip the downloaded zip file
 after unzip process. Now, open up eclipse IDE --> windows --> Click






Step 12:

Once you click on the Android SDK Manager option you can see the window like this



Step 13:
Now, check the first four options then click install button



Step 14:

Accept license and click install



Step 15:
Now, Select API 4.4 Check all the checkbox or choose Android 4.4(API 19) alone and click install button




Step 16:

Now accept the license by click the radio button and the click install as shown the figure below



Step 17:
 Now you can see the installing window like this