Where can I find the Android source jars? [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
It would be awesome if somebody had a link to a list of Android source jars I could download, so I can attach the source code to Android in IntelliJ. I don't have time to be mucking around all day doing this (why reinvent the wheel?), I have apps to build!
I know Eclipse has a plugin that does this, but I don't like Eclipse, I'm using IntelliJ.
PS - I need Honeycomb+

Since there aren't full sources included for most versions of the SDK, you have a few options:
Grab the AOSP and build source jars yourself. Here is a blog post that talks about ways of accomplishing this.
Look for pre-built JARs that people have hosted. This is how the Eclipse plugin you mentioned works, and here is a link to another site that has the JARs up to 2.3.3; this is where I grabbed the JARs I have attached as sources in IntelliJ.
You may have noticed that you can download the sources JARs for 4.x directly from the SDK Manager now, so really 3.x is the only set missing pre-built JARs.
HTH

The best way to get the source code is by going to http://source.android.com/ and following the instructions on their site which will download an android.jar file and a lot of other components of the Android source code. The source code does take up a lot of space and using grepcode is a lot simpler.

you can find source code online and as a jar file here..
GrepCode: android - Java Project - Source Code

Related

Using git in Android Studio [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am having trouble in using git on android studio. I know there may be many related questions asked on this topic But I could not find any relevant answer.
I can use git normally but with android studio i am facing many problems. I am working on a project with my friend. The main project is on his repository. I have forked his repo. And cloned the project on my machine. Then using imported the project on my Android Studio. Till here things are fine but after this everything messes up when i try to use git.
Do i have to use git in the terminal inside android studio itself, or in normal terminal in file manager?
Can anyone give me a proper guide of how to collaborate on Android Studio using Git.
You can use git just as you wish... Git is a part of the project and hence does not depend on the Git client.
For example, I mostly use SourceTree as my main Git client.
But when I create a new repo, or push an existing project into a new repo, I prefer to use the command line.
Now when it comes to merging, I really appreciate the AndroidStudio merging tool, So I begin my merge with SourceTree and solve conflicts with Android Studio ^^
The best tool is the one you are comfortable with, however note that they are just front-end for the git (command-line) tool.
When you open a Git project in Android Studio, detects by the itself that your project is a Git project.
You will be able to see in the bottom of Android Studio something like this:
You can commit using Control + K
If you can't see it, maybe your git configuration/project is wrong.

Confusions in NDK samples [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am a beginner to Android NDK with Android Studio. While trying to grasp the ideas through tutorials I got my self very confused. Mainly I am confused about the building method of native project.
For example while following this tutorial, when I build the project there is no file created inside libs project. Moreover, there is no need of Android.mk and Application.mk make files also.
However, second tutorial deals with the make file.
Can anyone please explain to me step by step explanation of build steps. I am not sure how hard it is for Android team to make a simple tutorial explanation one version of built.
Not sure, if by the time of this writing (2016/02/01 - Android Studio 2.0 Preview 9) NDK is officially supported yet, but it's surely been under development. That's the reason of using Eclipse+ADT+NDK in the official guide as you can see in the Setup section. I believe, once the process is done, the documentation will be updated.
You're free to choose which approach to use:
Eclipse+ADT+NDK or
Android Studio + Gradle + NDK
With the second approach Gradle generates *.mk files automatically, although you can use your own files by preventing the auto-generation as per The new NDK support in Android Studio by ph0b.

Is the Android "SDK Tools Only" Windows NSIS installer source code available anywhere on the Web? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
The Android SDK Tools Only package includes the official Android emulator and lots of other useful things.
The source code of these tools is not so hard to find. But I'm looking for the source code for the NSIS installer source code which installs these tools on Windows machines.
Please note: I'm not looking for the Android Studio installer source code. Instead, I'm looking for the SDK Tools Only installer source code.
Is it even available anywhere on the Web?
I mentioned my request in an issue in the Android issue tracker. From what David Herman at Google wrote in reply, it looks like it's not available online. He wrote:
I'm not sure what the plans for the SDK installer are moving forward - it may get deprecated by the current installer, especially as we roll more and more functionality of the SDK into Android Studio. At the very least, I'll look into it and see if porting it over to AOSP is trivial or not.
For now, take a look at the BUNDLE_SDK define in the Android Studio installer. That tiny subset is likely similar to what the standalone SDK installer is doing anyway. (Basically, have a skeleton SDK somewhere on your computer and package it using NSIS).
Note that there were a lot of bug fixes and polish changes that went into our current installer, and I think the SDK installer is a fork of the old installer well before any of those changes went in. You may find more success taking the current installer and cutting out all scripting code related to the DIR_SRC define (which points to the source directory for getting a clean copy of Android Studio). This may even be a valid approach we take, moving forward, to obsolete the existing SDK installer (e.g. add a new BUNDLE_STUDIO define)

IDE other than Eclipse which support Android development [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am currently using Eclipse 3.5.0 for Android development. But I just wanted to try Android development in some IDE other than Eclipse.
Firstly, am I going on the right track or is Android development possible only on Eclipse? Secondly, if there are options other than eclipse, what are they and in what way are they better or worse than Eclipse? How to install Android SDK on them? A tutorial for working with that IDE with be really helpful.
Stone
Android development possible only on
Eclipse?
No it is possible in other IDE also
IntroAndroidDevNetBeans
IntelliJ IDEA 10
But the way I understood, Eclipse is the Best, because it's plugin and updates are directly given in the android developer sites itself, ADT
Personally I prefer the IntelliJ. I was a big fan of Eclipse but when I started using IntelliJ (with some learning curve), I just love it ! The community edition now offers support for Android SDK. However, unfortunately there is no support for building UIs ! So, my solution for now is to configure IntelliJ projects with Android libraries, use Eclipse as a UI builder tool and then use those XML files in INtellJ. I know its a painful process but that is how I get the best of both worlds !

How do I get the Java API sources? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
While there seems to be a way to clone the whole repo, described here, I just need just the Java API files, nothing more. (Hint: traffic limit + slow connection)
Now, here is the whole git repo, but where are the plain Java API files? Or are they at a complete different location? Someone an idea? I'm not that much a git expert.
I have no idea what you think "the plain Java API files" are.
The second link is not a git repo. It is a family of git repositories. Each row in that table is one git repo. The first link is for instructions on how to use Android-supplied tools to clone all of those repositories.
If you think "the plain Java API files" refer to the java.* and javax.* classes, they are from the libcore repo.
If you think "the plain Java API files" refer to android.* classes, they are from the frameworks/base repo.
Other repos may be contribute other portions of "the plain Java API files", such as Apache HttpClient.
If all you are trying to do is poke through the code, I recommend Google Code Search. For example, I refer to the Android source code frequently, and I don't have it downloaded.
[Edit]
And if all you want to do is develop android applications, you don't need any of this; just download the SDK
Following worked, with the help of this question:
git clone git://android.git.kernel.org/platform/frameworks/base.git
cd base
git tag -l
git checkout android-2.2.2_r1
And then we get a nice directory: core/java/android
tar cjf android-java-2.2.2.tbz2 core/java/android
And then we get a nice bzip2-ed archive: android-java-2.2.2.tbz2, just 1.8MB ;)
If u just need to see or download a specific JAVA API file from android.. then just refer this site
http://grepcode.com/snapshot/repository.grepcode.com/java/ext/com.google.android/android/2.3.4_r1/
this is has repo of all android release.

Categories

Resources