Is it possible to get and watch at Android's program component's native methods code. If anyone knows how to, please let me know.
You can find source code for Android native methods using Google Code Search one of the following services:
AndroidXRef
GitHub (using repo:android/* search term)
The search for "SystemClock || android*SystemClock" in AndroidXref will point you to the android_os_SystemClock.cpp file which in turn forwards many of its methods to SystemClock.cpp
Other Android .cpp or .h files with native methods implementations could be found in a similar way.
If you are looking for android SDK code then you can find it here:
https://android.googlesource.com
https://android.googlesource.com
git clone https://android.googlesource.com/platform/frameworks/base
For Google application look at platform/packages/apps/[APP name]
Beside the Android Open Source Project you can find the code just by using google, e.g. search for:
android SystemClock source code
I got links to grepcode (SystemClock). I find it more compfortable to browse the code here (be careful which version of code you are browsing).
Related
m using the android youtube player OpenYouTubeActivity, i'm using the svn source code, not the jar file provided in the project. But it seems that this activity is not working after the 4.3 android releases. the video is shown half of the full screen, but everything else works fine. THis issue is already logged on the issues list on the project site.
Anybody has any clue, whats happening? Any solution is greatly appreciated.
Its always best to use the jars, because you get the latest compiled code and its easy for the maintainers to maintain versions. But I think on the code branch the fix here is to decompile the jar using an open source decompiler like http://jd.benow.ca/ and then copy the code as is.
Then you can see where the changes have been made.
DISCLAIMER
Please follow the licensing as the original wants it. I think its as per Apache, so make sure to include appropriate licensing information and credits and follow licensing laws.
I want to understand the complete structure of Android OS source code. I have a copy of source code for Gingerbread and want to go through it fully.
Is there any documentation or help available to understand Android OS source tree structure?
Here is some explanation on the folders in Android Source Code to help you get started.
How to understand the directory structure of android root tree?
Source code is documented a little inside source code in comments. There is no official documentation available.
Such as when I use the ArrayAdapter class, I want to know what is be done in the class. Sometimes I want to go the source code to find answer.
So, my question is where can get the source code ?
http://source.android.com/source/index.html
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/
https://android.googlesource.com/platform/frameworks/base/+/froyo-release/core/java/android/widget/ArrayAdapter.java
is the link for ArrayAdapter used in the latest Froyo release from Googles open source repository. You can use the navigation links on that page to get to the other parts of the available source code and other releases of Android.
I'd like to start looking into the Android source code. I'd like to start with the easiest place. Which is the easiest place to start with - any application / framework? Please suggest.
A simple google search would provide you appropriate results
Information on Android Open source website
http://source.android.com
Android Source code
https://android.googlesource.com
In the Resources section of the Android SDK site there are some tutorials that will walk you through some source code. Here is a link to the tutorial on creating a notepad application
I think it is better to start with any application first because that way you will know how it is applied.
Start at the Android | Developer Website: http://developer.android.com/.
Under the "Resources Tab", you'll find useful example applications.
Make sure you installed Eclipse and the Eclipse Android Plugin. Than you ca create a new android project (File > New... > Other... > Android Project) in Eclipse and check "Create Project from exisiting Example". The Api Demo Application is great.
You should watch some Videos of Romain Guy, too, he's a coding genius.
I am trying to look inside a couple of Android core classes to see about overriding some methods. I have looked into getting the Android source code, but the process described on the Android dev site is all about installing and setting up some kind of development environment. This is not necessary to me. I just want to open a class or two in a text editor and look at its contents. Does anyone know if this is possible without going through the multitude of steps described on the Android dev forums?
The easiest way is to use Google Code Search. You just have to try a search like Activity.java android and you can see the source code of that class. It even has an outline inspector:
You can download the entire source with git our just look it up as a reference on the git site. Here is a link to the sdk code:
https://android.googlesource.com/platform/frameworks/base
Another option is to use http://grepcode.com/ and perform a search such as "android ViewGroup". I've really enjoyed the style of using grepcode.