mobile phones - Android -- Transferring Application to a Device -


I have just finished my Android application and now it's time to test it under real life situations. The only problem is how do I apply and how I move it to the device. I have already signed the application What's next?

Thank you in advance for your help!

If you can connect this device to your computer you can:

  • Implement it on the command line: adb install name_file.apk , where install name_file.apk of the bin directory of the project Is inside ADB is a command line tool that resides in the SDK's tools directory.
  • Copying .apk file directly to your device and a file manager.

If you are using Eclipse:

Windows:

    < Li> Plug in your device
  • Open Android project
  • Open the 'Run Configuration' wizard. You can do this by clicking on the right of the "Run" button (not in the button, but in the arrow next to it).

alt text

  • Once you are there , Then click on the run configuration of your project. Then, on the 'Target' tab, select Manual This will let you choose the device manually where you want your program to run.
  • Apply and run
  • Now click on, and if your device is properly plugged in You will see the name of your device in the list of devices. If you select the item that matches your device and click on the run, Eclipse will automatically compile and install the program in your handset.
  • Linux

    If you are using Linux, which will be strange because you are afraid of the command line, you must first < Create a udev rule by creating a file named / etc / udev /rules.d/99-android.rules and enter this content in:

      SUBSYSTEM == "usb", ATTRS {idVendor} == "0bb4", SYMLINK + = "Android_adb", MODE = "0666"  

    Where 0bb4 Your device has idvendor . You can use the lsusb command to know the IDWeder. Once you do this, you can follow the steps written in the Windows section.


Comments