Step 1: Create a leaps directory (folder) on your Desktops. Personal Logs Folder: Store your daily logs here. Workspace: This will folder will be used to store all your Android Projects. Step 2



Download 7.45 Kb.
Date21.06.2017
Size7.45 Kb.
Step 1: Create a LEAPS directory (folder) on your Desktops.

    1. 1.2.

Personal Logs Folder: Store your daily logs here.

Workspace: This will folder will be used to store all your Android Projects.

Step 2: Go to http://developer.android.com/sdk/index.html: download SDK to D: drive.

Step 3: After you launch Eclipse.exe. Please choose your workspace to the one on your Desktop\LEAPS\Workspace. And press “OK”.



Step 4: Creating a new Android Application Project:

In order to develop an App for an Android device, you need to create an Android Application Project. To do so, Go to New->Android Application Project.





Step 5: New Android Application Settings.

For now, the only bit that must concern you is the Application Name and Project Name. The Package Name use: “leaps.anything.you.like” . Don’t worry about anything else for now, and click “Next >”.





Step 6: Leave this as it is. Click Next.



Step 7: Every App you create can have a Launch Icon (this will be the picture of your App on an Android device). Play around with this and you can change it to whatever you like. Once you’re happy, hit Next.



Step 8: Make sure it is a Blank Activity, and hit Next.

An Activity in Android is basically like a window in which you can place things like buttons, text, etc. An application can have many activities and move from one to another (e.g. pressing a button or using a swipe action). You don’t have to worry this. What you will learn in the next few weeks will not involve this. So hit Next and then Finish.





Step 9: 5 Things you need to know.



  1. Project Explorer: This shows the directory of your workspace. The most important folder is “src/…/ .java”. This is where the programming you do for you Application will be (everything else is hidden from you).

  2. Code/GUI Window: When you click on your code, e.g. MainActivity.java. The code for the Java file will appear here. Do not worry too much about the graphical view of your application. We won’t need to use this.

  3. Problem Window: If you have any error in your code. This is where it will show up.

  4. Run/Excecute (the green play button): This is used to run your App.

  5. Emulator: This is where you can create a virtual Emulator, if you don’t already have one.

Step 10: Creating a new Android Virtual Emulator:

An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator.

Click Emulator Button: This will open the Android Device Manager. Now click New and set the Emulator as seen in the Image.



Click Ok, and then Close the Android Device Manager. You now have a virtual emulator to test your Application.



Step 11: Click the Run Button (the green Play button) to test you application!


Congrats!
new-birthday-balloon-clipart.jpg (1181×1170)



    • You created and ran your FIRST APP!



Share with your friends:


The database is protected by copyright ©ininet.org 2019
send message

    Main page