I am having difficulty downloading the Android source code using the recommended instructions, due to problems with Repo, Cygwin, Python etc (See other topic I've open)
Therefore, I'm wondering is there an easier way to download the source code for a specific SDK version?
For example I'd like to take a look at the AlertDialog.Builder class without having to download everything.
Thanks
If you want to see the Java code, you can use GrepCode. For example, AlertDialog.java.
Related
I want to modify say MediaRecorder class for example. And I want to show at full source code of it.
Where can I get source code of standard classes?
See http://source.android.com/
Here [at the link above] you can find the information and source code you need to build an Android-compatible device.
Android is an open-source software stack for mobile devices, and a corresponding open-source project led by Google. We created Android in response to our own experiences launching mobile apps. We wanted to make sure that there was no central point of failure, so that no industry player can restrict or control the innovations of any other. That's why we created Android, and made its source code open.
Easy looking at code without downloading full Android source code
I am using android in eclipse . I wanted to see inbuilt classes in android such as 'BaseAdapter' class. Please suggest a method for seeing the content of those classes.
you can download the android source code and link it in eclipse. or the easier way is to use http://grepcode.com/project/repository.grepcode.com/java/ext/com.google.android/android/
I'm trying to create a fairly low-level change in Android source -- changing the package manger. I want to get the whole source using the repo tool described in source.android.com. I have a fork of the platform_frameworks_base project on github.
So, the question is how do I go about getting my platform_frameworks_base instead of the one provided by Android. I just want to be able to clone my own fork, create a branch in there and then push it in my own github. I can worry about pull requests to the main repo later.
Any help on the strategy/method of doing this?
p.s. My "workflow" is aimed to be similar to this: http://appanalysis.org/download.html
probably a bit late :) , but for the records, you might be want to take a look into this http://www.primianotucci.com/blog/fork-android-on-github
I've searched through android's open source code as much as I could and I haven't been able to find the implementation to the actual downloading via the DownloadManager in the 2.3 SDK. I have found the source for the DownloadManager and the source for a download class that has constants to interact with the ContentProvider but I haven't been able to find the source for the ContentProvider.
I'm wanting to find this so that I can know a good way to implement a download of my own, since I'll be using a lesser version than 2.3 for my app.
I was able to find this here. You can also get the project by cloning the DownloadProvider project and looking at the project source code. The DownloadProvider.java specifically was what I was looking for. However, the DownloadThread.java handles the heart of the download implementation, so I would recommend looking at that.
The git command is
git clone https://android.googlesource.com/platform/packages/providers/DownloadProvider
I have a practical seminar this semester, and I want to use ontology on Android application.
I choose Protege owl ontology as a ontology API and this tool worked in normal Java project. But when I tried to import this jar files which for the owl ontology API in Android project.It will fail and I haven't found any solutions in the Internet.Can you help me?
If you want to have a programmatic access to OWL ontologies using Java, you could use the OWL-API directly, on the top of which Protege is built in the first place.
If your ontology follows a OWL 2EL profile you have also the possibility to use Brain.
I have tried this some time ago and it worked well.
Android Java is not standard Java, so you may need to port OWL-API (or whatever the library you choose, it can be Jena as well) java source code to android platform. This may require some changes in source code as all the standard java classes are not available in android Java. This effort includes the library source jars if there are any.
Few ported libraries are available on android already. please refer this link
Please note that performance wouldn't be good on device with the bigger ontologies.