The Best Android Developer Resources

One of the most useful resources to any developer is the source code for an entire working application. Luckily with Android there are plenty of applications that are completely open and cover a wide range of features and functionality available on the platform. Try installing these applications on your Android device or emulator. If you see something you like or need to implement in your own application just look over the source.

Contains a bunch of Android apps, most of which are on Android Market and were developed by people that worked/work on the Android project at Google.

http://code.google.com/p/apps-for-android/

Contains a bunch of Android apps, most of which are on Android Market and were developed by people that worked/work on the Android project at Google.

http://developer.android.com/resources/samples/index.html
http://developer.android.com/shareables/latest_samples.zip

Web index and Zip containing more Android applications that demonstrate a lot of framework topics. “API Demos” is especially useful because there are demonstrations of common Android features organized by category (e.g. Animation, Widgets, and Views) including source and XML.

Common Tasks and How to Do Them
For some beginners digging through source code might not be the easiest way to learn. Having a list of common tasks and code examples with explanation is sometimes the best starting point. Here is such a list:

http://developer.android.com/guide/appendix/faq/commontasks.html

Views and Widgets
Views and Widgets are the building blocks of all Android applications and so knowing how and when to use them correctly is important in creating stable applications. If you are a beginner or just looking to use a new widget the following resource is useful in showing an example in the form of a small program to demonstrate the use of a view or widget and explaining how it works.
http://developer.android.com/resources/tutorials/views/index.html

Android Drawables
Android Drawables are elements for Android intended for display such as bitmaps or gradients. Knowing what default Drawables are available, especially menu icons, can save time and make your applications look more professional. Rather than searching through the Android jar for the Drawable you need the following resource lists all of the default Drawables included with android 1.0 (most of which still exist in later releases). If anyone knows of a similar resource for later versions of Android post it in the comments section.

http://www.screaming-penguin.com/info/android_drawables/android_drawables.html

Android XML
XML plays a big role in Android. For example setting up view layouts is most commonly done through XML. XML is also used to store fixed strings, styles, and attributes. Viewing some of Android’s XML included in the SDK can be a great resource. Here is a web-based view if you do not like digging through files in the Android jar.
http://www.netmite.com/android/mydroid/frameworks/base/core/res/res/

For example if you wanted to create your own row item for a ListView you could modify an existing XML resource rather than creating it from scratch.
http://www.edumobile.org/android/?p=25&preview=true
simple_list_item_multiple_choice.xml

 

 

 

Looking at the above example, this resource is also a great way to learn about default styles and attributes such as the preferred height of a list item (?android:attr/listPreferredItemHeight) or standard text sizes(?android:attr/textAppearenceLarge).

Useful Articles from Developers

Blogs and articles can be a great resource especially when they come from creators or developers of the technology being discussed. Some great tips and tricks you can’t find anywhere else can be found at the following resources.

<a "http://developer.android.com/resources/articles/index.html

Contains some really good articles on commonly used features, optimizations, and solutions to difficult problems.

<a "http://www.curious-creature.org/category/android/">http://www.curious-creature.org/category/android/

Some of the articles here can be found at the link above, but not all. The author is a developer at Google that has worked on the Android project.

Developing Orientation Aware Applications

A big challenge for anyone developing for Android is dealing with orientation change. An application user can rotate a phone from portrait to landscape, the reverse, pop open a keyboard ,or none of the above and all of those cases have to be taken into consideration at all points in the application.

How does the layout render in portrait and landscape, does rotating the device break anything when the application is doing processing, does external data have to be constantly retrieved on every change? The list goes on and on. The following resource covers all of the problems and mitigations for orientation on Android devices (even how to force a user into a certain orientation and keep them there, how nice).

<a "http://www.devx.com/wireless/Article/40792/1954">http://www.devx.com/wireless/Article/40792/1954

Known Issues with Android

Eventually you come across a problem that is not caused by something you did wrong but just a bug in the Android OS. The following resource is a great place to find and keep track of current and past issues with Android releases.

<a "http://code.google.com/p/android/issues/list">http://code.google.com/p/android/issues/list

Developer Groups

The official developer groups for Android can be helpful for finding additional resources, interacting with other developers of various experience levels, finding solutions to common problems, and of course getting help with specific problems you may be having. From what I have seen there is no flaming that goes on in the forums however questions that have already been answered elsewhere most often do not even receive a pointer to the answer.

<a "http://groups.google.com/group/android-beginners">http://groups.google.com/group/android-beginners
<a "http://groups.google.com/group/android-developers">http://groups.google.com/group/android-developers

Stack Overflow and Android

The website stackoverflow.com is a growing Q & A site for programmers. Android announced that the android tag on Stack Overflow will become an official android development medium. So if you like Stack Overflow or are looking for an additional community of developers for Android the following resource will be useful.

<a "http://stackoverflow.com/questions/tagged/android">http://stackoverflow.com/questions/tagged/android

I hope you found some or all of those resources useful. If you have any favorite Android developer resources you would like to share post them below in the comments section.

Leave a Comment:

14 comments
Anonymous says February 24, 2011

Excellent Article

Reply
ashish says August 29, 2011

Hi Sushant,

Good posts, I am a beginner in AD and want to learn more. Thanks for sharing such valuable code samples.

Cheers and post more..

Ashish

Reply
deepa says November 19, 2011

Thanks a lot ! nice Article for all

Reply
Favas says January 21, 2012

Usefull info..thank u very much..

Reply
chael Stevens says February 20, 2012

where is the help I am suppose to get for weekly assignments?
I need the url to the weekly posts.

Reply
chael Stevens says February 20, 2012

Android week 2 videos will not display on “Windows Media Player”, the latest version,I am running O.S. “Windows 7 Professional”. I can only hear the audio. video 1, video 2, and video 3 display the same problem, can’t see the picture. All of the video files have .wav I need help? any solutions. email me [email protected] . O.K what is going on fellows I just went back to take a look at weeks 1 and 2, and all of a sudden the winrar has been removed without my intervention and I can’t play anything, not even using the vlc player you recomend? what is going on?

Reply
chael Stevens says February 20, 2012

Android week 2 videos will not display on "Windows Media Player", the latest version,I am running O.S. "Windows 7 Professional". I can only hear the audio. video 1, video 2, and video 3 display the same problem, can’t see the picture. All of the video files have .wav I need help? any solutions. email me [email protected] . O.K what is going on fellows I just went back to take a look at weeks 1 and 2, and all of a sudden the winrar has been removed without my intervention and I can’t play anything, not even using the vlc player you recomend? what is going on?

Reply
Honey Prince says April 14, 2012

Hello sir,
actually in our project there is an option of favorites.
what i want to do is i want all those applications that has been
visited several times to be in favorites.
for this im going to use shared preferences.
i have thought having a counter i will increment that counter
everytime a particular application is being accessed.
This counter value will get reflected in the sharedpreferences for
each application.
As soon as the counter reaches to a certain value that application
will be in the list of favorites.
But i dont know how to proceed.
So if u can guide then it will be a great help.
thanks alot

Reply
nirdosh says July 19, 2012

i wanna write codes of a program that is capable of reading .html file from internet, saving the data and displaying it in application in a tabular form when ever user wants to see.

can any one help.

thanks in advance.

anyone from nepal or india do contact
[email protected]

Reply
Nirdosh says July 19, 2012

i wanna write codes of a program that is capable of reading .html file from internet, saving the data and displaying it in application in a tabular form when ever user wants to see. i am a beginner in android and java.

can any one help.

thanks in advance.

anyone from nepal or india do contact

[email protected]

Reply
Miduna says December 17, 2012

validation for username and password i want to use constant name for username as “admin”, and password as “admin” , I use some code here but i want reduce it , Please suggest for this one

Reply
Ramesh says March 1, 2013

The list is good but pretty outdated. How come it doesn’t include vogella.com ?

Reply
Lucy says March 6, 2013

Nice article! Could you pls include resources like opensource Android projects (for ex. Foursquare) and tutorials to develop such apps for the market (for ex. appsrox.com)? Thanks.

Reply
Arindam says August 22, 2013

Thank you so much for the great help that you have extended towards aspiring developers like me.These tutorials will be of great help for beginners who want to learn the entire concept of Android application development

Reply
Add Your Reply