Your SlideShare is downloading. ×
0
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Google Android
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Google Android

6,446

Published on

0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,446
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
431
Comments
0
Likes
5
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. Google Android Sean C. Sullivan Portland Java User Group June 2008
  • 2. Topics • What is Android? • Android platform • Developer tools • Android applications
  • 3. Android November 5, 2007
  • 4. Android
  • 5. What is Android? “Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
  • 6. Getting started http://code.google.com/android
  • 7. Development tools • Android SDK • Eclipse plugin
  • 8. Android SDK • Android emulator • command line tools • documentation • example applications
  • 9. Command line tools • aapt - Android asset packaging tool • adb - Android debug bridge • aidl - Android IDL compiler • emulator - Android emulator
  • 10. Eclipse plugin https://dl-ssl.google.com/android/eclipse/
  • 11. Android applications • application package file: myapp.apk • an application is composed of one or more activities
  • 12. 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
  • 13. android.app.Activity import android.app.Activity; public class MyActivity extends Activity { public void onCreate(Bundle savedValues) { super.onCreate(savedValues); setContentView(R.layout.main); } }
  • 14. Application building blocks • Activities • Intents & IntentReceivers • AndroidManifest.xml • Services • Views • Notifications • Layouts • ContentProviders
  • 15. Implementing your application UI • Java code • XML
  • 16. Android UI <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/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>
  • 17. AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.my_domain.app.helloactivity"> <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>
  • 18. 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”
  • 19. android.content.Intent • VIEW_ACTION • EDIT_ACTION • PICK_ACTION • WEB_SEARCH_ACTION • SYNC_ACTION • ...
  • 20. Views • an object that knows how to draw itself on the screen • examples: ListView, DatePicker, Button
  • 21. Web browser • based on WebKit • http://www.webkit.org • android.webkit.WebView
  • 22. Local data store • SQLite • http://www.sqlite.org • android.database.sqlite
  • 23. Application Context android.app.ApplicationContext • startActivity(Intent) • getSystemService • createDatabase • openDatabase • deleteDatabase • ...
  • 24. Additional topics • Threading • AIDL - Android IDL • Security model • API for Bluetooth • Internationalization • API for WiFi • Power management
  • 25. Android resources • http://code.google.com/android/ • http://android-developers.blogspot.com • http://code.google.com/p/apps-for-android/ • http://sites.google.com/site/io/ • http://www.openhandsetalliance.com/ • http://git.android.com

×