Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Source code to omnibus edition of _The Busy Coder's Guide to Android Development_

branch: master
Octocat-spinner-32 Accessibility updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 ActionBar update Ant build file April 06, 2014
Octocat-spinner-32 ActionMode misc classpath changes for Eclipse November 18, 2013
Octocat-spinner-32 Activities added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 AdvServices updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 AlarmManager example of WakefulBroadcastReceiver August 24, 2013
Octocat-spinner-32 Animation build file updates March 27, 2014
Octocat-spinner-32 AppWidget replaced deprecated call March 27, 2014
Octocat-spinner-32 BC updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 Bandwidth projects migrated from other books June 16, 2012
Octocat-spinner-32 Basic added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 CPU-Java replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Calendar replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Camera updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 ConfigChange build file updates March 27, 2014
Octocat-spinner-32 Contacts updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 Containers added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 ContentProvider improved ContentProvider samples March 27, 2014
Octocat-spinner-32 Database formatting March 27, 2014
Octocat-spinner-32 DeviceAdmin added uses-feature element November 18, 2013
Octocat-spinner-32 Dialogs build file updates March 27, 2014
Octocat-spinner-32 Drawable replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 EmPubLite build file updates March 27, 2014
Octocat-spinner-32 EventBus updated to EventBus 2.2.0 January 13, 2014
Octocat-spinner-32 Files replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Focus replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Fonts added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 Fragments added versionCode, versionName to manifest November 13, 2013
Octocat-spinner-32 Gradle update for new Gradle for Android plugin March 27, 2014
Octocat-spinner-32 GridLayout replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 HTML5 projects migrated from other books June 16, 2012
Octocat-spinner-32 HTTP new OkHTTP, Retrofit JARs March 27, 2014
Octocat-spinner-32 InputMethod replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Intents classpath updates for Eclipse R22 August 24, 2013
Octocat-spinner-32 Internet better HttpUrlConnection handling January 13, 2014
Octocat-spinner-32 Introspection updated to use CWAC-Security February 18, 2014
Octocat-spinner-32 JNI replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 JVM updated projects to minimum API Level 8 build target July 22, 2013
Octocat-spinner-32 Jank updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 LargeScreen refactored to use -w720dp instead of -sw720dp-land September 03, 2013
Octocat-spinner-32 Loaders added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 Location build file updates March 27, 2014
Octocat-spinner-32 MAT added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 Manifest updated classpath for R22 June 10, 2013
Octocat-spinner-32 Maps build file updates March 27, 2014
Octocat-spinner-32 MapsV2 add missing meta-data March 27, 2014
Octocat-spinner-32 Media example of recording video by Intent November 18, 2013
Octocat-spinner-32 MediaRouter new MediaRouter samples March 27, 2014
Octocat-spinner-32 MiscSecurity added priority to intent-filter November 06, 2013
Octocat-spinner-32 MiscUI updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 NFC updated for R22 tools September 03, 2013
Octocat-spinner-32 NavDrawer bug fix March 27, 2014
Octocat-spinner-32 Notifications build file updates March 27, 2014
Octocat-spinner-32 OUYA updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 Phone build file updates March 27, 2014
Octocat-spinner-32 PhoneGap replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Power replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 Prefs code formatting January 13, 2014
Octocat-spinner-32 Presentation reformatting for print November 18, 2013
Octocat-spinner-32 Progress updated for getMenuInflater November 18, 2013
Octocat-spinner-32 Push build file updates March 27, 2014
Octocat-spinner-32 RemoteViews updated for getMenuInflater November 18, 2013
Octocat-spinner-32 RestrictedProfiles sample apps demonstrating restricted profiles August 24, 2013
Octocat-spinner-32 RichText replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 SMS updated for Android 4.4 January 13, 2014
Octocat-spinner-32 Search misc classpath changes for Eclipse November 18, 2013
Octocat-spinner-32 Selection added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 Sensor updated for Android 4.3 and 4.4 November 18, 2013
Octocat-spinner-32 Service better HttpUrlConnection handling January 13, 2014
Octocat-spinner-32 Skeleton misc classpath changes for Eclipse November 18, 2013
Octocat-spinner-32 SmartWatch updated classpath for R22 June 10, 2013
Octocat-spinner-32 Styles added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 SystemEvents updated projects to minimum API Level 8 build target July 22, 2013
Octocat-spinner-32 SystemServices removed unnecesary layout January 13, 2014
Octocat-spinner-32 Tapjacking added missing versionCode and versionName November 18, 2013
Octocat-spinner-32 Testing build file updates March 27, 2014
Octocat-spinner-32 Threads bug fix March 27, 2014
Octocat-spinner-32 Tuning replaced fill_parent with match_parent July 22, 2013
Octocat-spinner-32 ViewPager build file updates March 27, 2014
Octocat-spinner-32 Views updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 WIMM updates to r18 android-support-v4.jar and related .classpath changes July 31, 2013
Octocat-spinner-32 WebKit updated for Android 4.4 January 13, 2014
Octocat-spinner-32 WidgetCatalog misc classpath changes for Eclipse November 18, 2013
Octocat-spinner-32 external build file updates March 27, 2014
Octocat-spinner-32 LICENSE initial import March 12, 2012
Octocat-spinner-32 README.markdown Update README.markdown August 12, 2012
README.markdown

Welcome to the source code for The Busy Coder's Guide to Android Development!

All of the source code in this archive is licensed under the Apache 2.0 license except as noted.

The names of the top-level directories roughly correspond to a shortened form of the chapter titles. Since chapter numbers change with every release, and since some samples are used by multiple chapters, I am loathe to put chapter numbers in the actual directory names.

Using in Eclipse

These projects can be imported using the normal Eclipse import process. That being said, importing all the projects is probably a really bad idea, simply because there are so many of them. Import select projects, if and when you need them.

Note, though, that you will have to fix some things up, particularly if you are getting errors:

  • The build target of the project may be an Android SDK that you do not have installed. You will need to set the project build target to something that you have, by means of Project Properties.

  • Many of these projects use ActionBarSherlock. There is a copy of a compatible ActionBarSherlock in external/, and the project files are set up to reference that copy. If you import it first, your imports of other sample apps should go more smoothly. Alternatively, you can download and set up ActionBarSherlock yourself in your Eclipse workspace, then go into Project Properties and point the book's project to use your copy of the ActionBarSherlock library project.

  • Many of the book samples, and ActionBarSherlock, require your Java compiler compliance level to be set to 1.6, so code can use the @Override annotation on interface method implementations. You can find this in Project Properties, in the Java Compiler area.

  • Restarting Eclipse, for whatever reason, can clear up some undefined problems indicated by red exclamation marks over the project name in the Project Explorer.

Using from Ant

If you wish to use this code, you should delete build.xml from the project, then run android update project -p ... (where ... is the path to a project of interest) on those projects you wish to use, so the build files are updated for your Android SDK version.

Something went wrong with that request. Please try again.