[Q] How to edit and build android source - Android Q&A, Help & Troubleshooting

Hi,
I've downloaded the source code of android 4.0, and I've correctly installed the eclipse platform to develop with android.
Now I want to know how import the android source in eclipse, edit and build. Which files I must import? There is a tutorial for this? As you did?
Thanks.

ADT
get the ADT plugin for eclipse.
you'll find more info here:
developer.android.com/sdk/eclipse-adt.html

I got ADT plugin and correctly installed it.
But I don't know how put the source code of android into a new project, edit and build it.

Related

[Q] which branch of android does samsung's froyo sourcecode use?

As we know, android 2.2 has lots of branches, such as android-2.2_r1,android-2.2_r1.1 and so on.
And rightnow samsung has open source their 2.2 version.
But no any further information included in the files.
In order to build the platform source ourselves, we need to know which version of android they are using.
Does anyone knows their extract branch name?

[Q] help me making an android app.

hello,
I am a student currently studying java programming
i have a java code that implements a program that i made using eclipse, and what i want to know is how to turn it into an android app. ?
the program takes a string input and returns another string using one main methods and many other methods they all process strings.
i have the android sdk and eclipse plugins but i have no idea where to put the code and how to sit the UI.
thanks.
i am sorry if my question is in the wrong place please tell me where should i post my question.
peace
You'll need basic knowledge about Android Development, search for tutorials, there are many of them, like this (I think that tutorial is all you need).
To can compile the code shown, basically you need:
Android SDK and ADT Plugin for Eclipse.
Open SDK Manager, located where you installed Android SDK. Download the packets of the platform which you desire as target (Android 2.2 or 2.3 is recomended, in order to achieve a high compatibility. Remember: Android is retrocompatible).
Now, you can start an Android project from Eclipse and compile that code. The Java methods that you already developed, should works fine on Android, don't worry about that
If you need more help, feel free to send me a MP, or post your question here. I'm not a developer, but I can understand the necessary things to achieve a basic Android app

[Q] No Android Project option in Eclipse with ADT Plugin.

Hi there XDA! I'm an experienced programmer and android user. I'm following a guide for creating the android project in eclipse from the android developer site, and I've followed every step up to creating the project, and the ADT plugin has been correctly installed and configured. The problem: Under the android tab in the new project wizard there is no option for android project. There are various other android options like Android Activity, Android Application Project, Android Icon Set, etc. Does anybody know how I can enable the option for Android Project? I attached a picture of the problem. Thank you!
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A
You say it is correctly installed and configured, but that does not seem like the case.
Try starting fresh by going to the eclipse site and downloading the latest version of eclipse(Juno) classic. Then head to the android developers site and install the adt plugin from that guide. Point it to your sdk install; and you should the option to create an Android Application Project under Android in the New Project wizzard.
L0rdWaffles said:
You say it is correctly installed and configured, but that does not seem like the case.
Try starting fresh by going to the eclipse site and downloading the latest version of eclipse(Juno) classic. Then head to the android developers site and install the adt plugin from that guide. Point it to your sdk install; and you should the option to create an Android Application Project under Android in the New Project wizzard.
Click to expand...
Click to collapse
Thanks, but I already have completely uninstalled and reinstalled eclipse and the plugin from the site. It is also pointing to my SDK folder correctly. I've followed all of the advice for every thread I found related to this issue, but nothing seems to help.
I have also tried manually downloading and installing the plugin, and I still had the same problem...
Okay, so the problem was that the tutorial was not up to date with the newest version of the plugin. Android Application Project is the equivilent of an Android Project. http://stackoverflow.com/questions/11302175/no-android-project-option-in-eclipse-with-adt-plugin
Me too
Ifnumkey - you're not alone!
I had exactly the same problem, no 'Android Project'. Eclipse Juno coupled with the latest SDK/ADT has 'Android Application Project'. Hopefully the folks at StackOverFlow are right and they are one and the same thing. But its kind of unerving that the very first step isn't exactly as per the tutorial - I'm new to Android but not development and I kind of wonder if somewhere down the road I'l discover that there's some subtle but important difference between the two.
Google need to update their 'Creating an Android Project' tutorial or, in enterprise speak, modify the workflow so that they update the documentation BEFORE rolling out the changes!!
EDIT: Found this blog page which walks through the new screens in SDK Tools revision 20;
android-sdk-tools-revision-20-now.html (from android-er.blogspot.fr)
(Sorry can't post as proper link as I have under 10 posts
Resolve Problem
Hi. Because you copy eclipse to unpermitted place so it's unable to run ADT installation successfully. so you most copy it to your User Folder or other drives like D: then install ADT Plugin.
lfnunley said:
Hi there XDA! I'm an experienced programmer and android user. I'm following a guide for creating the android project in eclipse from the android developer site, and I've followed every step up to creating the project, and the ADT plugin has been correctly installed and configured. The problem: Under the android tab in the new project wizard there is no option for android project. There are various other android options like Android Activity, Android Application Project, Android Icon Set, etc. Does anybody know how I can enable the option for Android Project? I attached a picture of the problem. Thank you!
Click to expand...
Click to collapse
Go to File>New>Project
a window will open then select android

Add Sqlcipher to android framework

Hi,
for an research project i am developing an custom version of android based on cyanogenmod.
Now i wanted to use SqlCipher in the android framework. But i don't get it to work. The Compiler did not find the Librarys.
Does anybody an idea where and who i have to add the jar files to the makefile?

Eclipse vs Studio

I'm taking an online course on writing Android apps and the instructor uses Eclipse with jre 6.
But the urls he sends us to downloads and installs jre 7.5 and Studio. The Studio interface is very different so for a novice like me it is very confusing.
Is Eclipse and jre 6 still available for download? Where?
Thank you.
Anderson2 said:
I'm taking an online course on writing Android apps and the instructor uses Eclipse with jre 6.
But the urls he sends us to downloads and installs jre 7.5 and Studio. The Studio interface is very different so for a novice like me it is very confusing.
Is Eclipse and jre 6 still available for download? Where?
Thank you.
Click to expand...
Click to collapse
Hi there,
Short answer:
I believe you could use either.
Longer answer:
As your instructor uses Eclipse - use Eclipse too. This way you will follow the course flawlessly. Eclipse is an open source project, well supported with huge community behind. You can download it from eclipse.org/downloads
Which version? I'd say the basic one is enough, e.g. Eclipse IDE for Java Developers, you'll need to install ADT (Android Dev. Tools) plugins, but I presume the instructor in the course made a topic on that. More discussion on that here: stackoverflow.com/questions/16657729/what-version-of-eclipse-do-i-use-for-android
As for JRE...
JRE (Java Runtime Environment) is required to run java programs on a machine. If you're developing programs, you'll need JDK - Java Development Kit. They're updated the same way any other programs are, hence you'll see different version numbers. Find them here: oracle.com/technetwork/java/javase/downloads/index.html
Good luck!
ps.
I'm not an Android developer, but did some java programming.

Categories

Resources