1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

New dev help?

Discussion in 'Android Hacks and Help' started by 13th angel, Mar 29, 2011.

  1. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Not sure where to put this but figured here would be the best place.....

    Like the title says im interested in starting to develop for android (eventually moving up to working on roms for the d2g). However i have no idea where to start. If anyone could kind of point me in the right direction/give me any resources it would be much appreciated. I know how to script and use python as well as a little bit of java but its much the same, dont know where to start to really learn....

    Yes, i know im on the GRD dev team and a member of the beta team. Thats from my helping troubleshoot so the real dev's dont have to take time away from their work.

    Edit: forgot to say I have win7 and Ubuntu 10.10 64bit dual booted and am comfortable with both.
    Last edited: Apr 8, 2011
  2. cush2push
    Offline

    cush2push Premium Member Premium Member Developer

    Joined:
    Jul 21, 2010
    Messages:
    673
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    Albuquerque NM
    few guides i used
    http://android.snkbitten.com/docs/How_to_Build_stock_AOSP-09-21-10.pdf

    https://sites.google.com/site/teamdroidconcepts/experimental/compile

    Android Development Tutorial - Gingerbread

    Using Eclipse | Android Open Source

    i dont think d2g can be built from source though hopefully these can help
  3. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Hmm thanks for those links.... I looked around a little on the sdk site but could only find the "hello droid" tutorials.

    I know it caant be compiled from source which is really annoying but still then.....

    Sent from my Liberated D2G
  4. zhorik
    Offline

    zhorik New Member

    Joined:
    Jan 29, 2011
    Messages:
    19
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Wa.
    If you have downloaded eclipse they have tutorials on there. I would recommend starting with Java because once you understand Java you will be able to learn other programs for Apps, like Ruby, or Python, very quickly. If you want to start developing I would use JavaDr because it is less bloated. If you want more help you can email me.
  5. guidot
    Offline

    guidot Developer Relations Staff Member Premium Member

    Joined:
    Feb 10, 2010
    Messages:
    7,350
    Likes Received:
    270
    Trophy Points:
    0
    Location:
    Massachusetts
    I am sure davros (@_davros) and swallisa (@stevewallisa) could be of some help.
  6. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Little problem..... following that pdf that Cush2push linked. When i run the repo init to get the the following and it wont grab it.

    any help would be appreciated...

    @guidot, thanks for hooking me up with them on twitter
  7. swallisa
    Offline

    swallisa New Member

    Joined:
    Aug 18, 2010
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    SoCal
    Best guide bar none is droid concepts for aosp here Compile Android Based ROMs - DroidConcepts

    Unfortunately tailored for the Droid1 but invaluable for learning and just need to find device specific instructions after you have everything set up.
  8. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Its more of a starting place than i had before i posted this thread lol. Thanks for the link :)

    edit: went to it, same one as the second link Cush had posted lol
  9. cush2push
    Offline

    cush2push Premium Member Premium Member Developer

    Joined:
    Jul 21, 2010
    Messages:
    673
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    Albuquerque NM

    from what i know is the froyo source is no longer available its all gb now

    personally i use CM gb source since all the guess work of getting everything to work has been done and i added my settings menu over it

    Compile CyanogenMod for Sholes - CyanogenMod Wiki
  10. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Ty Cush, tried CM's and it worked (not sure if that was because of the reboot or CM).
  11. swallisa
    Offline

    swallisa New Member

    Joined:
    Aug 18, 2010
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    SoCal
    Change aosp source tag from -b froyo to -b android-2.2.2_r1 to get latest froyo source.
  12. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Trying to install eclipse classic 3.6.2. It installs just fine however it will not run. Keep getting this error message....

    I have both java-1.5.0 and java6 installed. When i try to run "sudo update-java-alternatives -s java-1.5.0-sun" i get

    Not sure if theyre connected but i figured they might be....
  13. jatx2wne
    Offline

    jatx2wne Premium Member Theme Developer Premium Member

    Joined:
    Feb 20, 2010
    Messages:
    532
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    the Cuse
    I'm new to all this but in Terminal if you type sudo update-alternatives --config java
    You will be able to switch which java you are using... Maybe it will be that easy
    Sent from my Droid using Tapatalk
  14. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    I wish, tried that =/

    sent from a D2G with Liberty 2
  15. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    south jersey
    if you're running cm's source just stick with java 1.6 , you can switch to gb without reconfiguring.
  16. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Doesn't really do me any good. I can't get eclipse to even start.

    Also, I have the stock froyo source. Figured since I was following a guide I would follow it to the T for the first time, after that I'll branch out and try cm's source.

    sent from a D2G with Liberty 2
  17. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    south jersey
    try downloading eclipse from synaptic or ubuntu software center?

    any dependencies will be installed also
  18. 13th angel
    Offline

    13th angel Developer Developer

    Joined:
    Jan 16, 2011
    Messages:
    2,102
    Likes Received:
    1
    Trophy Points:
    0
    Location:
    Auburn, Alabama
    Didnt think about that. I installed through the tar.gz file. I'll try when i reboot into ubuntu later. On windows for Minecraft right now.
  19. jeffv2
    Offline

    jeffv2 Developer Developer

    Joined:
    Dec 23, 2010
    Messages:
    1,240
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    south jersey
    yeah, i'm running ubuntu 11.04 & the version in the repo is still Galileo.
  20. swallisa
    Offline

    swallisa New Member

    Joined:
    Aug 18, 2010
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    SoCal
    Looks like you didn't run the extra libs for sun 1.5 to run on 64bit system. Don't have the links at work right now but will post when i get home.

    Found them!

    1. If you are running a 64-bit Ubuntu, you will need to get ia32-libs, as well as 32 bit versions of various other packages: lib32stdc++, lib32stdc-dbg, lib32gmp3-dev, lib32z1, lib32z1-dev, lib32ncurses5-dev.
    Last edited: Apr 5, 2011
Search tags for this page

/bin/bash: prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/a

,

file /usr/lib/python2.7/subprocess.py, line 1213, in execute

,
invalid local ndk version 4 choices are current
,
local ndk version