views:

226

answers:

4

I have just started learning to write apps for android using Eclipse. Where can I find free source code that I can use during my learning experience? Thanks.

A: 

Go to the android developers site, they have lots of code demos and tutorials to get you started. Check em out here.

A lot of their examples are included in the sdk. you can find them in android-sdk-windows\samples

mtmurdock
+1  A: 

You can also reach the code samples directly in Eclipse: create a new Android Project, then select "Create from an existing sample" in the "New Android Project" dialog.

Joubarc
+2  A: 

The official sample code and tutorials can be found here: http://developer.android.com/resources/index.html

For reading code I can recommend these repositories:

More sample applications for the Android platform: http://code.google.com/p/apps-for-android/

Open Source examples from the books http://commonsware.com/AndTutorials/ and http://commonsware.com/AdvAndroid/ are available at http://github.com/commonsguy/cw-andtutorials and http://github.com/commonsguy/cw-advandroid/ . They helped me a lot by simply reading the code and searching for classes I needed.

digitarald
A: 

You can take a look at the source code of the common Android applications like Contacts, Email, Calendar, etc..

Look at projects under platform/packages/apps here: http://android.git.kernel.org/

Buzzy