110 likes | 266 Views
“This Android’s life”. var title =. + Guid .NewGuid (). ToString ();. Ross Scott @RossDScott ross.d.scott@gmail.com. Four routes to Android. HTML5 / CSS3 / jQuery All of the above + PhoneGap Java / Eclipse MonoDroid. Android architecture. This session isn’t. Step by step tutorial:
E N D
“This Android’s life” var title = + Guid.NewGuid().ToString(); Ross Scott @RossDScott ross.d.scott@gmail.com Ross Scott
Four routes to Android • HTML5 / CSS3 / jQuery • All of the above + PhoneGap • Java / Eclipse • MonoDroid Android architecture Ross Scott
This session isn’t • Step by step tutorial: • MonoDroid • HTML5 • jQuery • PhoneGAP • Java Ross Scott
This session will Ross Scott
HTML5 Features Demo >_ • Semantics • Local Storage • Offline Web Applications • Geolocation • Video camera • Web Sockets • Video / audio • Canvas • Web Workers • CSS3 Ross Scott
Android Architecture • Requirements for environment: • Java JDK (in addition to the JRE) • Eclipse IDE for Java Developers • Android SDK • ADT Plugin for Eclipse Ross Scott
Android Architecture Demo >_ Tour around eclipse • Activities • Layout • Actions • Intent • Providers Activities Layout Actions Intent Providers <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> public class GetJsonSample extends ListActivity Content://com.ddd.pocketddd.dbProvider/dddevents/3 public class BookProvider extends ContentProvider startActivity(new Intent(Intent.ACTION_INSERT, getIntent().getData())); <action android:name="android.intent.action.MAIN" /> Ross Scott
Android Activity Lifecycle Demo >_ onStop onDestroy onCreate onStart Stop Start onResume onPause Ross Scott
PhoneGAP Features accelerometer.getCurrentAcceleration accelerometer.watchAcceleration Demo >_ contacts.create contacts.find camera.getPicture compass.getCurrentHeading compass.watchHeading openDatabase File FileEntry FileError FileReader FileSystem notification.alert notification.confirm notification.beep notification.vibrate Ross Scott
Summary Ross Scott
http://www.oracle.com/technetwork/java/javase/downloads/index.htmlhttp://www.oracle.com/technetwork/java/javase/downloads/index.html • http://www.eclipse.org/downloads/ • http://developer.android.com/sdk/index.html • http://diveintohtml5.org/ • http://www.phonegap.com/ • http://mono-android.net/Tutorials Ross Scott