Android
In a nutshellOutline
Introduction to Android
The Development Environment Hello! Android
Introduction to
Android
Google Android & Open
Handset Alliance
Android is an operation system
Symbian, Windows Mobile
Android is developed based on Linux
Open Handset Alliance
Organized by 33 handset manufacturer, software
company and telecommunication company
So, basically Android is an “Open Software”
Everyone can develop a new mobile phone for
Android
Gphone?!
Android based mobile
phones
HTC G1
For T-mobile and not for sale in Taiwan
HTC Magic
Why Android?
It’s FREE It’s OPEN Java-based
You don’t need to learn another language
Rich Applications
Google API
Android’s developer market
Apps can easily embed the web Apps can run in parallel
The
Development
Environment
Download
Android SDK
Android SDK1.5
Android SDK 1.1
http://developer.android.com/sdk/1.5_r1/index.html IDE: Eclipse http://www.eclipse.org/downloads/ Google APIs Java SDKSetting up the Eclipse
Get the ADT (Android Development Tools) plugin
1. Start Eclipse, then select Help > SoftwareUpdates....
2. In the dialog that appears, click the Available
Software tab.
3. Click Add Site...
4. Enter the Location:
https://dl-ssl.google.com/android/eclipse/ Click OK.
5. Back in the Available Software view, you should see the plugin listed by the URL, with "Developer Tools" nested within it. Select the checkbox next to Developer Tools and click Install...
6. On the subsequent Install window, “Android DDM S” and “Android Development Tools” should both be
Create a new Android
project
Project name: HelloAndroid
Application name: Hello, Android Package name:
com.example.helloandroid (or your own private namespace)
Create Activity: HelloAndroid Min SDK Version: 2
HelloAndroid
TextView tv = new TextView(this);
tv.setText("Hello, Android"); setContentView(tv);