can I somehow run the android project currently running using my phone that is connected via 开发者_如何学Cusb? the android emulator starts pretty slow so i think it would be better to use my device
- install the proper usb driver (this might not be necessary on a mac)
- turn on Developer mode on your device ( settings->applications->development )
- plug in the device to your computer
- wait for the device to show up on the devices list ( [android-sdk-folder/tools/]adb devices or check out the DDMS panel in eclipse )
- run the app..
U will have to install the required driver.. and connect the phone.. the adb will get installed..now run the app manually(in run configuration).. there u can see all device in which u can run your app.. select yourr device.. and app will run in the phone.
If you are developing with eclipse the ADT plugin is your friend. To run/debug your app on your phone you have to download the drivers for your phone and install them. Then your phone should appear as an emulator in the DDSM perspective inside eclipse. When you now run/debug your app, eclipse will choose your phone as the target.
P.S. You have to enable usb debugging:
From the home screen, press the Menu button below the screen.
Tap the Settings option.
Choose Applications.
Select Development.
Check the box for USB Debugging to turn it on.
A complete description for all platforms (Windows, Linux, Mac) of how to use a real device for debugging can be found here
http://developer.android.com/guide/developing/device.html
A list for all common manufacturers of where to get the USB driver from is located here
http://developer.android.com/sdk/oem-usb.html
精彩评论