开发者

Is there a way to test an application on a real device without publishing?

开发者 https://www.devze.com 2022-12-16 13:05 出处:网络
Is开发者_开发百科 there a way to test the application on the real device without publishing to Android market?It can be easily done. just connect the phone to you computer, install the drivers that co

Is开发者_开发百科 there a way to test the application on the real device without publishing to Android market?


It can be easily done. just connect the phone to you computer, install the drivers that come with the SDK.

Now if you are using eclipse then just go to the "run configuration" of your project and select manual in the Target tab. Now when you run your application through eclipse you will get to select the device on which to run the application and there you can see your device.

Alternatively, the same can be done via command line by typing adb install <app_name> and the application will automatically be installed to you phone. While using command line make sure that you are not sunning any emulators, else adb will give an error since it will confused on where to install the application.


On a device, turn on debug mode (in the Applications menu under Settings). When you plug your device in, it will show up alongside your emulators. If you have no booted emulators, running or debugging your app will automatically default to your device.

Hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消