0?
[ 212 ]
The following screenshot shows a sample application running on the Android SDK.
If you want to build mobile web applications for Android (http://code.google.
com/android/), it won't be a big deal. Develop as usual, and just test it with Android
SDK. If it works, and most probably it will, you are well set!
Getting Inside the Android
You can use Eclipse to build Android applications and the overall system
architecture is quite interesting, especially, the way information is shared between
applications. As such, there are four building blocks to an Android application.
Activities are single-screen UIs. They contain the forms and visual elements,
and are implemented as one class per activity. Intents are similar to events,
but do a lot more. Moving from one activity (screen) to another is also done
via Intents. An IntentFilter decides what Intents an activity can handle.
IntentReceiver is a way for you to handle external events with your
application, for example to invoke your application when a new message
arrives or when a contact is edited.
???
???
Chapter 11
[ 213 ]
A Service is like a daemon, running in the background for longer periods.
Pages:
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284