Running Android App from Eclipse in Real Android Device

by 14:13 0 comments
waiting is a boring, do you agree ?
you know when i'm developing an android app, i must waiting running android SDK from my computer. It's so boring because this process is enough wasting a time. So what must we do to solved this problem ?
The problem can solved by using a real android devices. How to make it ?
if you using window OS you can follow this step :
First you must install Goggle USB driver from your Android SDK manager (in eclipse program-window-android SDK manager) and make sure your phone was detected in your computer.
then, open your app project and costume the android manifest.xml with add the comment android:debbuggable="true" or with GUI you just change the Debbugable mode in menu application Atribute.
The Last Step is, go to setting in your phone-application-development and change the debug mode tobe active.
Ok your program can run in your real device now.

But different if you use linux OS (recommended)
first step download the ADB drvie in here
Go to destination file and right click on ADB and properties- change the access  and checked.
After that copy the ADB to dir /bin/ . syntax bellow :

sudo cp /home/your-id-computer/the destination directory/adb /bin/

after that you must know your phone vendor ID. you can get this with lsusb. like this
VendorID
you can see from this picture. the ID vendor. in this picture i use the samsung so you can see the ID of samsung. The ID vendor is number after the ID such as 04e8 (for Samsung Vendor).
after that is make ke rules to accsess the devices.
Go to your desktop right click and make a new document, the doc. name is 51-android.rules
and type the syntax bellow :
SUBSYSTEM=="usb", ATTRS {idVendor}=="[YOUR-ID-VENDOR]", MODE="0666"
after that copy this file to /etc/udev/rules.d

sudo cp /home/desktop/51-android.rules /etc/udev/rules.d/
sudo /etc/init.d/udev restart

    the last step. Run this program with the code bellow

chmod a+r /etc/udev/rules.d/51-android.rules

don't forget to change setting in your phone setting-app-development-usb debug mode.
ok the app program can run in the android real device.
enjoy !!
example :
example app

abdul

Blogger

instagram : abdwhd14 // twitter : @abdwhd // email : abdwhdpsn@gmail.com

0 comments: