Development Setup - Samsung Galaxy Nexus

Hi
I am looking into starting out in developing Android Apps and modding the Source OS itself. I have had a little search round on here but given the fact it seems impossible to force the search to use the exact search its bringing up hundreds of non-sense results (had to use google to find the modded Google Currents apk on this site).
Anyway what I am interested to know is what environment dev's are using and is it possible to do it all in a Windows OS or is this not a good idea?
Any help very much appreciated with getting good setup from the start and all opinions welcome.
Thanks in advance
James

1. Wrong section - should be in General
2. You'd have seen stickied right at the top of the General section this thread - http://forum.xda-developers.com/showthread.php?t=1386615

1. seeing as this is about android development I think it is in the right section especially as I have posted the exact same question in the general Android Q&A (Not phone specific) area and not got a single reply.
2. I would have seen the sticky if the search function on this site was written by a coder that died after Jesus!
Thanks for the pointer though its exactly what I wanted - thank you

The Development forum here is pretty much exclusively for ROM/Kernels, anything else goes elsewhere. Not my rules but you'll get flamed so better just to use General/Q&A for anything not ROM-related

Ah I see - I didn't know - thanks for this and the link!
Much appreciated!
all the best
J

Generally the development forums are reserved for sharing your work with others. ROMs, kernels, scripts, etc.
If you're familiar with Linux it's usually easiest to do everything from there, however I do a lot of my work while booted in to Win7 and run Ubuntu through Virtual Box. I'm set up to dualboot with linux mint, but I'm so used to windows that it's usually more convenient. Cygwin is also a very helpful tool to use if you are using windows.
The Android Development & Hacking and Chef Central forums are also good places to look for information.

xHausx said:
Generally the development forums are reserved for sharing your work with others. ROMs, kernels, scripts, etc.
If you're familiar with Linux it's usually easiest to do everything from there, however I do a lot of my work while booted in to Win7 and run Ubuntu through Virtual Box. I'm set up to dualboot with linux mint, but I'm so used to windows that it's usually more convenient. Cygwin is also a very helpful tool to use if you are using windows.
The Android Development & Hacking and Chef Central forums are also good places to look for information.
Click to expand...
Click to collapse
I understand and hope I can do a bit of sharing in the future . What IDE are you using if you don't mind me asking?

jamesmcuk said:
I understand and hope I can do a bit of sharing in the future . What IDE are you using if you don't mind me asking?
Click to expand...
Click to collapse
I use Eclipse but just because that's what was suggested by google when you download the android sdk. I started to set up netbeans to try it out but never got around to using it

yeah I have eclipse and also read about it through google. Thanks for confirming this to be the best method, I shall give it a go.
Thanks very much for your help
J

if you want to develop android apps in java you install eclipse in windows. If you want to develop the kernel or roms in c++ you install ubuntu linux in a virtuak machine on windows.

Related

android

hello,
their seems to be a few posts on this being ported to BA recently. ow ive got linux running on my BA fairly well (havent got round to setting up gprs etc yet though but thats a different matter) and id be willing to try and get a port of android working, if someone can extract the 3 img files in the android sdk as ive not managed to do that yet ? anyone want to try and help or am i talking of a lost cause
ok, ill post this incase anyone is watching. i made some progress getting andriod running but i keep getting seg fault tryingto run it, any1 who could provide insight let me know pelase
Unfortunately I can't help you but I'll be keeping a VERY close eye on this thread!
Good luck, I'm sure there are a whole load of people who'd buy you a beer if you succeed.
Steve
glad to see someones watching . ill have another play around over weekend see what i can come up with
it will be interesting to see how android works on BA keep up with the good work
Nice.
I like my BA and I don't wont to change it until an open linux mobile is avaible (an open Iphone could be great).
Maybe a sub-forum called "Blue angel linux" could help.
I'm bored or a problem with the actual BA linux is the acces to the wifi chipset?
And this seems noise. And I don't want to pay for having linux on my BA!
http://www.a-la-mobile.com/news/press/pr080114.html
aperles said:
I'm bored or a problem with the actual BA linux is the acces to the wifi chipset?
Click to expand...
Click to collapse
Not the access, but a nice gui/setup.
remember linux is designed primarily for people who know what their doing. yes theirs guis now which help but you stil need command line to use linux properly. except on the iPhone and android from what ive seen
actually there was an earlier thread regarding android. and with 921+ adding 200+ views here, We bet there are people that are REALLY interested porting this.
hope we get it up and running.
anything for our BA.
even alternatives to WM6 are welcome.
well im not having a lot of look, it seems to be segfaulting pretty much constantly. think its down to the busybox shell though so im going to find a newer one and try that later, does anyone know what version of the arm feature set the BA uses. (because from reading http://benno.id.au/blog/2007/11/21/android-neo1973) android only seems to work on devices using ARMv5 featureset. whatever that means)
UPDATE: thats not a problem, the pxa263 in the BA is ARMv5TE so thats ok - gotta love wikipedia (http://en.wikipedia.org/wiki/XScale)
Further update: ok been reading up a bit more and im doing the risky thing of building my own kernel for android see if i can get round these damn segfaults
ok just thought id post up so people done think ive given up here . still havign issues compiling the linux kernel with the android addidtions. mainly because i ahvent got a proper linux machine at home (only virtual pc on this computer)...dont suppose anyone uses linux and has a decent knownledge of compiling kernels on here ??
DJ_Steve said:
ok just thought id post up so people done think ive given up here . still havign issues compiling the linux kernel with the android addidtions. mainly because i ahvent got a proper linux machine at home (only virtual pc on this computer)...dont suppose anyone uses linux and has a decent knownledge of compiling kernels on here ??
Click to expand...
Click to collapse
I've compiled kernels under Linux before, but not for an embedded system like the angel's.
Where did you get the tarballs for everything? And what distro of Linux did you install?
Really, real machine vs virtual machine, in this case, shouldn't matter. It might, but shouldn't.
not so much the fact im using a virtual machine, its the fact im only on a 2mb connection so downloading linux cd images takes ages and since debian is the only distro ive seen which has arm crosscompile tools that work that means 2 dvds or 9+cd images. most of the tarballs ive had to rip direct from the android sdk emulator. i could host them somewhere if someone wants to try and help me out getting a kernel running - after that i think most of android should fall into place on its own, but getting openbinder support in the kernels proving difficult
EDIT/UPDATE: ok just tried installing the arm crosscompiliers on my development dedicated server and it seems to be compiling a kernel as i type (hopefully) so looks to be some progress happening here
Been following your thread with interest.
I should be getting a new PDA from work, so then I could take the risk of bricking my trusty and battered Blue Angel.
Any chance you could post some links to the various bits you are using? Not a step by step (unless you have the time) but the starting points so others can attempt to duplicate your efforts in parallel?
Good luck - I'm rooting for you!
ok, im just tarballing up the files on my webserver now, didnt have any success with kernel, looks like im going to have to take the blueangel drivers etc from the kernel posted on handhelds.org and manually merge the config files into the android kernel image to get it to compile. unless anyone can suggest a way to do that easily (windows or linux routine i dont mind)
the main sites ive used to help out ive listed below
http://benno.id.au/blog/ << somewhere on their theirs a link to the android root filesystem image. (http://benno.id.au/android/system.tar.gz and http://benno.id.au/android/data.tar.gz)
http://nemustech.blogspot.com/2007/12/android-porting-to-real-target-hw.html
http://euedge.com/blog/2007/12/06/google-android-runs-on-sharp-zaurus-sl-c760/
http://handhelds.org/moin/moin.cgi/BlueAngelKernel
the three above above links help even though their not scriptly related to android on blueangel
the rest of the files are in http://radiodmp.net/android-files/ - the 365mb file contains the 2 arm cross compilers and also both the newest blueangel linux kernel and the android kernel - as said above these need merging (android kernel needs to be the one that is the final kernel as its newer i believe
edit: ive just put the system and data tars linked above into the folder on my server also to save people time.
hope that helps
if anyone wants any help drop me a message and ill try and help out. will of course keep trying to sort it myself too
Any update on this?
Actively watching this thread and just wanted to know. I'd love to be able to play with Android.
good to see ppl interested. ive not had time to try and merge the kernels yet, hopefulyl might get chance this week
DJ_Steve said:
good to see ppl interested.
Click to expand...
Click to collapse
Still watching, still interested!
Keep it up.
Steve
ok managed to hack together the two kernels, compiling it as i type - hopefully it'll workon my BA

Help compiling a ROM please ?

I'm looking for a 2.2 Froyo rom, WITH HTC Sence UI.
pref, 720p recording, newest radio ect..
tried searching through the forum but can't seem to find one i like, most roms have been trimmed down..
couldn't understand the rom kitchen othervise i would compile my own..
any link for this kind of rom or if someone could compile it for me, would be highly aprishiated.
excuse my bad grammar.
Your kidding right?
I'd have a look again if I were you.
Please use search before posting! When you signed up to these forums you agreed to the forum rules, and the number 1 rule is:
1. Search before posting.
Use one of our search functions before posting, whether you have a question or something new to share, it's very likely someone already asked that question or shared that news.
Click to expand...
Click to collapse
Everything you need to know is here, but always search before asking.
Chef Central > Android http://forum.xda-developers.com/forumdisplay.php?f=613
Learn Android ROM development. For serious students only. This forum is monitored and moderated by seasoned developers.
http://forum.xda-developers.com/showthread.php?t=667298
cyanogen said:
Here's my advice for those looking to make their own Android ROMs.. Stop. Write an app or two first, learn how the system works from a developer standpoint. Learn some Java. Read the developer documentation. Learn how to use Git. Then learn how to build AOSP from source. Read the porting guides, and learn how the build system works (the links below have almost everything you could possibly want to know). Now try to put your new found skills to work on enhancing the platform by writing code or making theme overlays. And share! And put that **** on your resume. There is a *ton* of information out there but any kind of "step-by-step rom cooking guide" is going to be a complete fail- it's too broad of a subject.
Android Developer Guides: http://d.android.com
Working with AOSP source: http://source.android.com
Platform Developer Guide: http://pdk.android.com
Android Gitweb: http://android.git.kernel.org
Git Ready (Git tips and tricks): http://www.gitready.com/
Building CyanogenMod: http://wiki.cyanogenmod.com/index.php/Building_from_source
How Dexopt works and what are those odex files: http://android.git.kernel.org/?p=pl...bcd225e47b2cc7abb2a366112d3aeb45936;hb=master
The PDK site is absolutely vital if you are going to work on custom ROMs. Read every single page. Twice. Some of the info isn't up to date, but you'll get a really good idea about what goes into actually configuring Android to work on a real device.
Click to expand...
Click to collapse
Klutsh said:
Your kidding right?
I'd have a look again if I were you.
Click to expand...
Click to collapse
It's quite hilarious now when I read it again. How %&ยค/"# some people can be

[Q] Which (Android) forum does my post belong in?

I have made an auto-installer for Linux that will download, install, and setup the Android SDK, NDK, Eclipse, ADB, and create a 99-android.rules file without the user having to do anything. I was curious which section I should post this in?
Tahl said:
I have made an auto-installer for Linux that will download, install, and setup the Android SDK, NDK, Eclipse, ADB, and create a 99-android.rules file without the user having to do anything. I was curious which section I should post this in?
Click to expand...
Click to collapse
Nice work!
I'd say in the Upgrading, Modifying and Unlocking forum itself, but I may be wrong. That's the general, non-device specific development forum, and forum for devices without their own forum.
Perhaps a Mod could clarify this for us? Oh Scotsman, where art thou?
Interesting, I didn't even think about that as a possibility, I was looking at the Android Software and Hacking General or Android Software Development. Mostly because that's where people asking about ADB were, but now I'm not sure.
To be honest I'd put it in all three, as it's a worthy addition to any Linux users' toolkit.
May want to double-check with someone who actually knows what they're talking about first, and possibly just post it in one place and get some user feedback first, so you know it works on all machines
Well, I've had quite a few testers and positive feedback on Linux Mint 11 and Ubuntu 11.04 for both the 32/64-bit versions. I just wanted to share it with xda-developers so that more people would be able to use it. It's already on RootzWiki and I've had people test it from my blog with some help from P3Droid's retweet power. The deb version I'm pretty confident in will work without many people having troubles. The .sh version that I also have hasn't been tested with any operating systems outside of that, but I'd like some feedback with people using apt-get and other operating systems.
I have asked Scotsman to come and provide a little clarification for us. I honestly think you've made a very vaulable contribution here, so thankyou from all of us far too stupid to do something like this!
I posted it in Android Software and Hacking General.
I thought that would be a good spot for it based on how many adb related guides and posts there were in that section. If Scotsman would like to move it or delete it though, I can gladly repost it in a more appropriate (or multiple) forums so that it can get more attention. I really appreciate the help you've given me too.
Hmmm...I'd say maybe Android Software and Hacking General or maybe Android Software Development? Since it's only Android specific...
I'll stick to the Hacking General then, I think that I saw the most related material there while I was posting. Thanks for the help you two, I appreciate it.
You're welcome mate, I wish everyone's first few posts could be as productive
Enjoy your time at XDA! Let me know if I can help with anything else

Thanks for the useful info and nice forum(an Introduction)

I am a new owner of an Acer a100(16GB) (currently 1.018.05_COM_GEN2) Android v3.2 and wanted to introduce my self and offer my assistance with A100 development in any way.
I'm an Android noob, but I use Linux and have done some shell scripting(Perl, Bash, Sed, Awk, a little javascript), and I am in the process of learning Java. I have also modded other devices before like PS2, PSP. So I am looking forward to learning more about Android and since I have an a100 this seems like a good place to spend some time.
So far I have just rooted my device via the Terminal Emulator method(I do have Eclipse IDE with Android SDK, ADT installed and working and should be setup help compile), got superuser, busybox, titanium, Avast installed. I also made a backup of my recovery image with dd in a shell, and did the AND to WIN hex edit(w/ Bless) of libflashplayer.so for Flash 11 so I can watch hulu, etc via Dolfin HD. I also made a Bash(run via Terminal IDE) script to re-apply the modified file after a shutdown which for now I have installed into /data/data/com.spartacusrex.spartacuside/files/bin (aka: ~/bin).
I will probably post my hulu script and lib file with some instructions later. It's basic but effective script that does some file checks and error correcting before it catenates the source file and redirects to destination. Later I may add a few more checks like making sure its running as superuser, and some post file mod checks.
Im still trying to figure out what else we can do, and how to do various things within Android at this point. So far its a fun little setup.
I wanted to say THANKS to everyone here. This place is a great resource. Special thanks to everyone that has been working on the Development end. I look forward to trying to make my self useful.
Welcome Hope you enjoy this device as much as I do.
As far as helping development, you should really check out the bypassing the bootloader thread in this forum, that's where the brainstorming is taking place atm.
Yes, we are *trying* to bypass the bootloader somehow, Crossix is getting a working kernal going while others are looking into methods of applying a work around. Your help will be much appreciated. Welcome to the Forums, and as stated above, the A100 is a great device that has a lot going for it if we can get some work done on it.
As far as helping development, you should really check out the bypassing the bootloader thread in this forum, that's where the brainstorming is taking place atm.
Click to expand...
Click to collapse
Yep I have been reading it and looking around trying to get an idea of what the typical solutions/workarounds are used on other Android devices.
I don't think I have access yet to the developer area yet.
Welcome to the a100 forums, it's always nice to have another dev working on this thing!
Development forums require 10 posts to be able to use them, so just remain active in general/QA and you'll have access in no time.
Congrats on your New Tab

[Q] Help! Please!

Sorry in advance if there's a tutorial already out, but i can't seem to find it. I want to begin by modding themes. I have d/l and installed apk manager, sdk tools, java, eclipse and have, as far as i know, associated everything properly. My prog exp is little: some visual basic and turbo pascal in college, along with a flirting fascination with assembly. My thought was i would begin by modding code instead of learning java outright, but if i have to learn c or java that is just fine. where? Anyway, every time i run script.bat in apk manager, i receive an error. Put .apk in mod folder, run script.bat, start project (the .apk is (1)) 1, decompile...error! what am i doing wrong? If anything, just point me in the direction of a good tutorial.
mgofpickens said:
Sorry in advance if there's a tutorial already out, but i can't seem to find it. I want to begin by modding themes. I have d/l and installed apk manager, sdk tools, java, eclipse and have, as far as i know, associated everything properly. My prog exp is little: some visual basic and turbo pascal in college, along with a flirting fascination with assembly. My thought was i would begin by modding code instead of learning java outright, but if i have to learn c or java that is just fine. where? Anyway, every time i run script.bat in apk manager, i receive an error. Put .apk in mod folder, run script.bat, start project (the .apk is (1)) 1, decompile...error! what am i doing wrong? If anything, just point me in the direction of a good tutorial.
Click to expand...
Click to collapse
I'm not sure if what you're looking for would be there, but have you checked the General Android Development forum? http://forum.xda-developers.com/forumdisplay.php?f=613
I'm sure you would be able to get more detailed help there, since you are talking about non device specific development. Good luck!
lordcheeto03 said:
I'm not sure if what you're looking for would be there, but have you checked the General Android Development forum? http://forum.xda-developers.com/forumdisplay.php?f=613
I'm sure you would be able to get more detailed help there, since you are talking about non device specific development. Good luck!
Click to expand...
Click to collapse
Thank you! I've seen some, but not all. I have a nitro, so dev would be geared towards that. further along i was/would ask how you get the emulator to approximate the lg nitro, but for now i thought i'd stick with just requesting a solid tut.
mgofpickens said:
Thank you! I've seen some, but not all. I have a nitro, so dev would be geared towards that. further along i was/would ask how you get the emulator to approximate the lg nitro, but for now i thought i'd stick with just requesting a solid tut.
Click to expand...
Click to collapse
Never messed with it, to be honest... I've got so many things I want to do but can't seem to find a good starting point for any of it. Pretty sure I've downloaded eclipse, JDK, and the android SDK in both windows and linux environments but that's about as far as I've gone... I may have installed them, not 100% sure. I get side-tracked too easily. :cyclops:

Categories

Resources