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
Related
I follow up on this article: TarsosDSP with Android
I am trying to implement an android application that reads mp3 files and processes them using WEKA.
The TarsosDSP seems to be a good step in the right direction, especially since the Berkley guys seems to have implemented a fork with android.
When I tried downloading their source code here: TarsosDSPAndroid Source Code
I still found a lot of references to javax.sound, which is kind of counter-productive.
So is something mixed up with their uploaded source code or am I looking in the wrong place?
Perhaps some background to what I am trying to accomplish overall:
I am writing an Android App that will read the entire mp3 library, and using WEKA and pre-loaded test-groups will classify each song to appropriate genre.
The part of reading the mp3 library is all done and so is the classification using WEKA, now I am stuck in joining them up - What seemed to be working fine using jAudio in a java project doesn't work for android because of the dependency in javax.sound, so I am trying to bypass that using a different library that works for android.
Thanks in advance!
-Alex
Version 2.0 of TarsosDSP supports Android out of the box. There are no more dependencies on javax.sound.*. This makes it a lot more easy to work with on Android. There is even an TarsosDSP Android jar file that can be included in your project directly.
I have an existing Android project on which I have been working for a while, without using any source control (I know this is dumb).
Finally I have installed Subclipse, but am not sure
how to move my existing project to SVN using this plugin, and
where to host it?
Any pointers to this would be helpful. The Subclipse website is not very descriptive on how this can be done either.
Can someone please outline the steps for me?
I would recommend you to use Google Code for repository of your project. Other alternatives are SourceForge and gitHub (github is if you are using git, which is not your case) and many more. However, all the alternatives I share here are for open sourced projects and so they might not be the best fit for you. In all alternatives you have to register, then create a project (where you specify the license) and finally add your code.
As for how do you check in your project for the first time, I think this is good enough description.
If you don't wish to you use open source as pointed by Boris you can always host it yourself on your server.
Sourcerepo is another alternative and its only $3 approx, suppports svn, mercurial and git.
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.
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 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.