1. Download our Official Android App: Forums for Android!

Apps How do I copy program to device when hooked up to Eclipse?

Discussion in 'Android Development' started by StevenHu, Jul 26, 2011.

  1. StevenHu

    StevenHu Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    91
    Joined:
    Feb 8, 2011

    Feb 8, 2011
    91
    0
    15
    Male
    Webmaster
    Orange County
    How do I copy my program to an Android phone when it's hooked up to Eclipse?

    Currently I copy the apk to my SC card, then plug it into my tablet for testing. However, I used to plug in an Android phone to the USB port, then get Eclipse to copy the program that way. Can someone refresh my mind as to the steps on getting this done? My notes, unfortunately, assumed I already knew some key steps, so they are missing.

    Thanks!
     

    Advertisement

  2. StevenHu

    StevenHu Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    91
    Joined:
    Feb 8, 2011

    Feb 8, 2011
    91
    0
    15
    Male
    Webmaster
    Orange County
    The steps are strait forward:

    Set up the phone for debugging first.
    Plug device into computer.
    Right-click on app name.
    Run As > Android Application.

    This issue has been resolved for me.
     
  3. hooked82

    hooked82 Newbie
    Rank:
    None
    Points:
    16
    Posts:
    19
    Joined:
    Jul 23, 2011

    If you've got your device plugged in and you run your application, it will copy/install your apk onto your device.

    You can also run the command "adb install path_to_apk_here", which will install it on the device as long as a single device is connected.

    HTH
     

Share This Page

Loading...