Android development session

  • 597 views
Uploaded on

It is an introduction session for Android Development. …

It is an introduction session for Android Development.

Agenda:-

- What is Android ?
- What tools will be used in development ?
- Installation and configuration
- First App “Hello World Example” and Run it
- What files exists in Android project ?
- How to install App in real phone or tablet ?
- How to publish App in Google Play ?

More in: Education
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
597
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
2
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. AndroidDevelopmentSession 1
  • 2. Agenda What is Android ? What tools will be used in development ? Installation and configuration First App “Hello World Example” and Run it What files exists in Android project ? How to install App in real phone or tablet ? How to publish App in Google Play ?
  • 3. What is Android ? An open-source software platform Used primarily to power mobile phones The open and customizable nature ofAndroid allows it to be used on otherelectronics Laptops, Tablets Smart TVs (Google TV) Cameras (Galaxy Camera) Smart Glasses (Google Glass) Android@Home
  • 4. Tools ADT Bundle Code will be in JAVA
  • 5. Installation Install JRE Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to anappropriate location, such as a"Development" directory in your homedirectory. Open the adt-bundle-<os_platform>/eclipse/ directory andlaunch eclipse.a set of programming tools fordeveloping Java applications.
  • 6. Hello World Creating a New Project1. In Eclipse, choose File→New→Android Application Project If Android Project is not an option under File→New, choose Other and lookfor Android Project in there.2. Type „HelloWorld‟ as a project name A project name should be one word. (“CamelCase” naming convention ispreferred)3. Next, you need to choose the build target. The build target tells the build tools which version of the Androidplatform you are building for.4. You need to fill out your project properties next. “The application name “: is the plain English name of your application. “The package name”: for example „android.section‟5. Specify An activity that is going to be represented by a Java class. Its name should adhere to Java class naming conventions: start withan upper-case letter and use CamelCase to separate words. So, type „HelloWorld‟ for your activity name or leave it as„HelloWorldActivity‟.6. Finally, click on the Finish button, and Eclipse will create your project.
  • 7. Hello Worldapp name thatappears to usersname of yourproject directoryand the namevisible in Eclipse.namespace for yourapp
  • 8. Run - Hello World First, We will create new Android Virtual Machine(AVD) In Eclipse, Window AVD Manager  New Specify Name then target (2.1) Finally, Create AVD Then right click on the project  run as Android Application
  • 9. src Contains the .java source files for your projectAndroid Project Filesgen Contains the R.java file, a compiler-generated filethat references all the resources found in yourproject. You should not modify this fileassets Contains all the raw data used by your application,such as HTML, text files, databases … etc
  • 10. bin Contains output directory of the build. This is whereyou can find the final .apk file and other compiledresourcesAndroid Project Fileslibs Contains project librariesres Contains all the resources used in your application
  • 11. res/drawable Contains bitmap files (PNG, JPEG, or GIF)Android Project Filesres/layout Contains definition for the user interface (UI) of yourapplicationres/menu Contains XML files that define application menus
  • 12. res/values Contains XML files that contain a collection ofresources, such as string and color definitionsAndroid Project Filesres/values/strings Contains all the strings in our programAndroidManifest.xml The control file that describes the nature of theapplication What permissions are requested, and external libsneeded What API Levels are supported or required
  • 13. Install App Copy the APK file to your Android’s memorycard and insert the card into your phone. Download and install the Apps Installerapplication from the Android Market Once installed, the Apps Installer will displaythe APK files on the memory card. Click and install your APK files.
  • 14. Publish App Visit the Google Play Developer Console athttps://play.google.com/apps/publish/. Enter basic information about your developer identity— developer name, email address, and so on. Youcan modify this information later. Read and accept the Developer DistributionAgreement that applies to your country or region.Note that apps and store listings that you publish onGoogle Play must comply with the DeveloperProgram Policies and US export law Pay a $25 USD registration fee using Google Wallet. Ifyou dont have a Google Wallet account, you canquickly set one up during the process.
  • 15.  When you need to select your Emulatordevice (mobile, tablet) manually Go to Run  Run Configurations  Target tab Always prompt to pick device.Note
  • 16. References http://en.wikipedia.org/wiki/Android_(operating_system) http://en.wikipedia.org/wiki/Google_Glass http://en.wikipedia.org/wiki/Google_TV http://developer.android.com/training/index.html Samsung GALAXY S4 http://en.wikipedia.org/wiki/Graphics_display_resolution http://developer.android.com/distribute/googleplay/publish/register.html
  • 17. Questions