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?
While Google will never go the entire way and completely close Android, the company seems to be doing everything it can to give itself leverage over the existing open source project. And the company's main method here is to bring more and more apps under the closed source "Google" umbrella.
Android is an open source operating system for mobile devices and a corresponding open source project led by Google.
May be the easy one to see the source: In Android studio 2.3, Build -> Analyze APK -> Select the apk that you want to decompile . You will see it's source code.
Android is open-source, but most of the software we run on top of the platform isn't. This is true whether you get a Pixel device or something from Samsung. Unlike in the early days of Android, the Pixel Launcher and most of Google's apps have become closed-source.
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.
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:
https://android.googlesource.com/platform/packages/apps/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With