1. Check out our companion app, Forums for Android! Download from Google Play

dev on a phone, not the emu

Discussion in 'Application Development' started by hellz, Jan 8, 2010.

  1. hellz

    hellz Member
    Thread Starter
    5

    Jan 5, 2010
    6
    0
    5
    I've been coding some apps lately. All using the emulator and then moving them to my phone. Is there a way I can just run them off an actual phone using a moto droid instead of dealing with the emulator?
     

    Advertisement

  2. markb

    markb Well-Known Member
    63

    Sep 14, 2009
    148
    26
    63
    Software Developer (Java, C, Web, Unix)
    Birmingham, UK
    Hi Hellz,

    Are you using Eclipse, or just the command line tools?

    If your phone is connected to your PC and you run the app from Eclipse it should install it on your phone and run it. That's what happens for me.

    Depending how you have things set up, Eclipse might bring up a dialog asking you where you want to run the app, allowing you to choose between the emulator and the phone.

    Mark
     
  3. Appventive

    Appventive Well-Known Member
    18

    Jun 11, 2009
    79
    17
    18
  4. hellz

    hellz Member
    Thread Starter
    5

    Jan 5, 2010
    6
    0
    5
    Thanks both of you. I do run elipse on ubuntu.
    Ill give it a shot.
     
  5. KeithG

    KeithG Well-Known Member
    46

    Nov 15, 2009
    103
    3
    46
    you don't need the usb driver on ubuntu. Just turn on USB debugging, other software sources..etc on the phone and connect it.

    Your device will automagically show up in the sdk tools just like the emulator does.

    If the device does not have an engineering load on it.. you will need to sign the apk's with a real key as opposed to the pre-generated debug key.

    Depending on the version of ubuntu you may need to add some udev rules ...

    http://androidcommunity.com/forums/f4/how-to-install-apps-using-adb-4482/

    and....

    http://developer.android.com/guide/developing/device.html

    hope that helps.
     

Share This Page

Loading...