unlocking-android


Unlocking Android Sample Code

Unlocking Android

THIS SITE CONTAINS CODE FOR THE FIRST EDITION OF UNLOCKING ANDROID.

Code for ANDROID_IN_ACTION (i.e. the updated version of Unlocking Android) is found @ the link below

http://code.google.com/p/android-in-action/

This project hosts the example code for the Manning book Unlocking Android.

This is intended to be a quick and easy reference for the sample code provided in the book.

http://blog.msiservices.com/wp-content/uploads/2009/04/bookcover-240x300.jpg

Now in stock at Amazon! http://www.amazon.com/Unlocking-Android-Frank-Ableson/dp/1933988673

Table of contents, index, sample chapters, and support forum are all available at the Manning site:

Unlocking Android at Manning


Get the code

There are several ways you can get the code.

1. Use Subversion to get the latest code from the repository

The repository is organized on a per chapter code sample basis (the typical Google Code hosting trunk does not have the projects, intentionally).

To get the code (using svn) for a particular chapter: svn co http://unlocking-android.googlecode.com/svn/chapterX/trunk/
(Where "chapterX" is replaced by the chapter you want to checkout.)

To get the code (using svn) for all the chapters at once you can use a small script that loops all the chapters.
An example of this is shown in the user forum

2. Download the code for ALL chapters in a single archive bundle

uadcode_allchapters_20090630.zip

3. Browse the code for each chapter online here


Sample Code by Chapter

1. Targeting Android

WhereDoYouLive?

2. Development Environment

AndroidTipCalculator

3. User Interfaces

RestaurantFinder

4. Intents and Services

WeatherReporter ServiceBinderExample

5. Storing and Retrieving Data

SharedPreferencesTester SharedPreferencesOtherPackageTester FileStorage ProviderExplorer ProviderWidgets

6. Networking

NetworkExplorer NetworkSocketServer

7. Telephony

TelephonyExplorer

8. Notifications and Alarms

SimpleAlarm NotifyAlarm SMSNotifyExample SMSNotifyExample2

9. Graphics and Animation

BounceyBall OpenGLSquare XMLAnimate XMLDraw

10. Multimedia

SimpleVideo SimpleCamera SoundRecordingDemo MediaPlayerExample

11. Location Based Services

WindWaves GeocodeExample

12. Putting it all together 1: A Field Service Application

Android Client Server

13. Hacking Android

DaytimeClient Native C Code

Project Information

Labels:
Android OpenHandsetAlliance Java Mobile opensource