Android App development I
Upcoming SlideShare
Loading in...5
×
 

Android App development I

on

  • 398 views

Android Tutorial I

Android Tutorial I

Statistics

Views

Total Views
398
Views on SlideShare
398
Embed Views
0

Actions

Likes
0
Downloads
5
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Android App development I Android App development I Presentation Transcript

  • Lab session – 1 Setting up the Android Development Environment Thenraja Vettivelraj Department of Computer science Soran University
  • Getting Started with Android •  • • • • • JDK + Eclipse + ADT + SDK = Android development tools Installing JDK: Applications are written using the Java programming language and run on Dalvik, a custom virtual machine designed for embedded use which runs on top of a Linux kernel.(Will be discussed in the class hours) First you need a copy of Java. All the Android development tools require it, and programs you write will be using the Java language. Note: JRE is not enough you need JDK. Make sure that you have installed the latest version of JDK. To verify that you have installed java in your computer, run the following command from the command prompt. Java -version You should see something like this.
  • Getting started with Android • If you haven’t installed java in your computer. Follow this link and download the JDK Click here to download JDK • Note: Make sure that you have downloaded the correct version of the JDK. For example: Windows 32 bit.  Get the Android SDK • Before we start programming the android application we need to set up the programming environment. The best resource for developing Android apps is Android Developers. • The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. View slide
  • Getting started with Android • With a single download, the ADT Bundle includes everything you need to begin developing apps: 1. Eclipse + ADT plugin 2. Android SDK Tools 3. Android Platform-tools 4. The latest Android platform 5. The latest Android system image for the emulator Click here to get the ADT Bundle • Note: Make sure that you have downloaded the correct version of the ADT Bundle. For example: Windows 32 bit. • There exists an option called other platforms where you can download the ADT for other platforms as well like Mac and linux. View slide
  • Getting Started with Android • If you are using an existing IDE you can go to the option Use an excising IDE where you can download the SDK tools. • Note: I recommend everyone to install the ADT bundle, which is already loaded with the Android Developer Tools plugin and the SDK and is ready to go.  Setting Up the ADT Bundle • Unpack the ZIP file (named adt-bundle-<os_platform>.zip) and save it to a desired location, such as a "Development" directory in your home directory. • Open the adt-bundle-<os_platform>/eclipse/ directory and launch eclipse. • Now you are ready to build your first application in android.
  • Getting Started with Android • Note: Don’t move any of the files from the default directory to different location, if so it may not function properly. • Eclipse IDE allows you to create and debug your Java code, and manage the various resources that normally are used in the making of an Android app. • ADT (Android Developer Tools) is a plugin for Eclipse that provides a suite of tools that are integrated with the Eclipse IDE. It offers you access to many features that help you develop Android applications quickly. • SDK (Software Development Kit) that enables developers to create applications for the Android platform. The Android SDK includes sample projects with source code, development tools, an emulator, and required libraries to build Android applications.
  • Getting started with Android • Open Eclipse by clicking on the eclipse icon from the extracted folder.
  • Getting started with Android • When you click on the Eclipse icon, this screen will appear
  • Getting started with Android
  • Getting started with Android
  • Getting started with Android
  • Getting started with Android
  • Getting started with Android
  • Getting started with Android
  • Getting started with Android •  o o Android Virtual Device (AVD): Defining: Window-> Android Virtual Device Manager On Android Virtual Device Tab click on “New” – Then create AVD as shown
  • Keywords • Plug-in – A hardware or software module that adds a specific feature or service to a larger system. The idea is that the new component simply plugs in to the existing system. For example, there are number of plug-ins for the Netscape Navigator browser that enable it to display different types of audio or video messages. • IDE - A programming environment integrated into a software application that provides a GUI builder, a text or code editor, a compiler and/or interpreter and a debugger. For example, Visual Studio, Eclipse are all examples of IDEs.