Your SlideShare is downloading. ×
  • Like
Androidoscon20080721 1216843094441821-9
Upcoming SlideShare
Loading in...5

Thanks for flagging this SlideShare!

Oops! An error has occurred.


Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Androidoscon20080721 1216843094441821-9



  • 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


Total Views
On SlideShare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. Getting started with Google Android Sean Sullivan July 21, 2008
  • 2. Topics• Android platform• Developer tools• Android programming
  • 3. Android November 5, 2007
  • 4. What is Android?“Android is a software stack for mobile devicesthat includes an operating system, middlewareand key applications”
  • 5. The Big Picture
  • 6. Android applications• are written in the Java language• run on the Dalvik virtual machine
  • 7. Dalvik VM• not a Java VM• design constraints: slow CPU, little RAM• will run on OS without swap space•
  • 8. Application API’s java.util.** J2SE java.lang.* etc android.widget.* UI android.view.**Telephony android.telephony.IPhone SMS android.telephony.gsm.SmsManager
  • 9. Application API’s Web android.webkit.WebView Camera android.hardware.CameraDeviceLocal database android.database.* Maps Location android.location.LocationManager Multimedia HTTP org.apache.http.client.*
  • 10. Demo
  • 11. Getting started
  • 12. Development tools• Android SDK• Eclipse plugin
  • 13. Android SDK• Android emulator• command line tools• documentation• example applications
  • 14. Command line tools• aapt - Android asset packaging tool• adb - Android debug bridge• aidl - Android IDL compiler• emulator - Android emulator
  • 15. Android emulator
  • 16. Android emulator
  • 17. Emulator limitations• No support for placing or receiving actual phone calls• No support for camera/video capture (input)• No support for audio input• No support for determining connected state• No support for determining battery charge level• No support for Bluetooth
  • 18. Eclipse plugin
  • 19. Android applications• application package file: myapp.apk• an application is composed of one or more activities
  • 20. Activity• an activity is usually a single screen in your application• however, activities can also be faceless• one activity is designated as the entry point for your application
  • 21.;public class MyActivity extends Activity{ public void onCreate(Bundle savedValues) { super.onCreate(savedValues); setContentView(R.layout.main); }}
  • 22. Application building blocks• AndroidManifest.xml • Intents & IntentReceivers• Activities • Services• Views • Notifications• Layouts • ContentProviders
  • 23. Manifest file<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="" package=""> <application android:label="@string/app_name"> <activity android:name=".HelloActivity"> <intent-filter> <action android:name="android.intent.action.MAIN"/> <category android:name="android.intent.category.LAUNCHER"/> </intent-filter> </activity> </application></manifest> AndroidManifest.xml
  • 24. Implementing your application UI• Java code• XML
  • 25. Android UI: XML<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" ><TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Hello World" /></LinearLayout>
  • 26. Android UI: Views• an object that knows how to draw itself on the screen• examples: • android.widget.ListView • android.widget.DatePicker • android.widget.Button • android.widget.ImageView
  • 27. Intents• “an Intent is a simple message object that represents an ‘intention’ to do something”• “an intent is an abstract description of an operation to be performed”
  • 29. Application • startActivity(Intent) • getSystemService • createDatabase • openDatabase • deleteDatabase • ...
  • 30. Additional topics• Threading • AIDL - Android IDL• Security model • Data synchronization• Internationalization • API for WiFi• Power management
  • 31. Android resources••••••