0
Google Android
       Sean C. Sullivan
  Portland Java User Group
          June 2008
Topics

• What is Android?
• Android platform
• Developer tools
• Android applications
Android




 November 5, 2007
Android
What is Android?

“Android is a software stack for mobile devices
that includes an operating system, middleware
and key ap...
Getting started




   http://code.google.com/android
Development tools


• Android SDK
• Eclipse plugin
Android SDK

• Android emulator
• command line tools
• documentation
• example applications
Command line tools

• aapt - Android asset packaging tool
• adb - Android debug bridge
• aidl - Android IDL compiler
• emu...
Eclipse plugin




https://dl-ssl.google.com/android/eclipse/
Android applications


• application package file: myapp.apk
• an application is composed of one or more
  activities
Activity

• an activity is usually a single screen in your
  application
• however, activities can also be faceless
• one ...
android.app.Activity
import android.app.Activity;

public class MyActivity extends Activity
{
    public void onCreate(Bun...
Application
            building blocks
•   Activities            •   Intents &
                              IntentReceiv...
Implementing your
     application UI

• Java code
• XML
Android UI

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android...
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>

<manifest xmlns:android="http://schemas.android.com/apk/res/an...
Intents

• “an Intent is a simple message object that
  represents an ‘intention’ to do something”
• “an intent is an abst...
android.content.Intent
• VIEW_ACTION
• EDIT_ACTION
• PICK_ACTION
• WEB_SEARCH_ACTION
• SYNC_ACTION
• ...
Views


• an object that knows how to draw itself on
  the screen
• examples: ListView, DatePicker, Button
Web browser

• based on WebKit
• http://www.webkit.org
• android.webkit.WebView
Local data store

• SQLite
• http://www.sqlite.org
• android.database.sqlite
Application Context
android.app.ApplicationContext

 •   startActivity(Intent)

 •   getSystemService

 •   createDatabase...
Additional topics
•   Threading              •   AIDL - Android IDL

•   Security model         •   API for Bluetooth

•  ...
Android resources
• http://code.google.com/android/
• http://android-developers.blogspot.com
• http://code.google.com/p/ap...
Google Android
Upcoming SlideShare
Loading in...5
×

Google Android

6,458

Published on

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

No Downloads
Views
Total Views
6,458
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
431
Comments
0
Likes
5
Embeds 0
No embeds

No notes for slide

Transcript of "Google Android"

  1. 1. Google Android Sean C. Sullivan Portland Java User Group June 2008
  2. 2. Topics • What is Android? • Android platform • Developer tools • Android applications
  3. 3. Android November 5, 2007
  4. 4. Android
  5. 5. What is Android? “Android is a software stack for mobile devices that includes an operating system, middleware and key applications”
  6. 6. Getting started http://code.google.com/android
  7. 7. Development tools • Android SDK • Eclipse plugin
  8. 8. Android SDK • Android emulator • command line tools • documentation • example applications
  9. 9. Command line tools • aapt - Android asset packaging tool • adb - Android debug bridge • aidl - Android IDL compiler • emulator - Android emulator
  10. 10. Eclipse plugin https://dl-ssl.google.com/android/eclipse/
  11. 11. Android applications • application package file: myapp.apk • an application is composed of one or more activities
  12. 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. 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. 14. Application building blocks • Activities • Intents & IntentReceivers • AndroidManifest.xml • Services • Views • Notifications • Layouts • ContentProviders
  15. 15. Implementing your application UI • Java code • XML
  16. 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. 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. 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. 19. android.content.Intent • VIEW_ACTION • EDIT_ACTION • PICK_ACTION • WEB_SEARCH_ACTION • SYNC_ACTION • ...
  20. 20. Views • an object that knows how to draw itself on the screen • examples: ListView, DatePicker, Button
  21. 21. Web browser • based on WebKit • http://www.webkit.org • android.webkit.WebView
  22. 22. Local data store • SQLite • http://www.sqlite.org • android.database.sqlite
  23. 23. Application Context android.app.ApplicationContext • startActivity(Intent) • getSystemService • createDatabase • openDatabase • deleteDatabase • ...
  24. 24. Additional topics • Threading • AIDL - Android IDL • Security model • API for Bluetooth • Internationalization • API for WiFi • Power management
  25. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×