1. Introduction to Android Programming 0 to “Hello World” in 60 minutes or less Silicon Valley China Wireless Group Peter van der Linden [email_address] Android Technology Evangelist Developer Community Technical Services Motorola Mobility
2.
3.
4. Smart Phone Family Tree PDA cell phone smart phone tablet netbook laptop Moore’s Law Moore’s law Actual Family Tree
5. My Phone has 802.11 b/g/n Wifi 1 GHz CPU Moore’s Law This is not a toy. This is equivalent to a Windows XP PC 512 MB RAM bluetooth DVD quality video player Music quality audio USB port
6. My Droid X Phone ALSO has accelerometer Digital compass Moore’s Law Today’s Windows PCs don’t have these … HD video capture Voice phone with noise-canceling hw 8 MP camera Orientation sensors GPS receiver
7. Smart Phone Family Tree smart phone laptop Moore’s Law A more insightful way to think of it! = + more hw
8.
9.
10.
11. The SDK tool chain 5. Java runtime SE ver 6 4. Eclipse 3.5 3. Eclipse ADT plug-in 2. Android SDK 1. Android Platform(s) Download 1,2,3, from developer.android.com 4 from Eclipse.org 5 from java.com
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32. Getting into Code, Glue 2 The glue code is generated for you Makes XML names in res folder, visible in Java namespace! Create an ID name for an XML element with this attribute In Java, get hold of that XML-declared TextView by: In XML, get hold of that XML-declared TextView by: TextView tv = (TextView) findViewById( R.id.myTV ); <TextView android:id="@+id/myTV " <Button android:layout_below= ”@id/myTV "
33.
34.
35.
36. Q & A Where to find more information: http://developer.motorola.com One stop shopping, with links to many other useful places One stop Tools and SDK download Tools that work for all Android devices from all manufacturers.
37. Apache 2 license Copyright (c) 2007-2010 by the Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.