简体   繁体   English

如何直接在Android手机上测试我的应用开发?

[英]How can I test my app development directly on an Android phone?

I can't find an emulator that fits my mobile screen size, so I created a custom emulator, but unfortunately, even though it's actually according to the size of my mobile, the graphics are showing differently on the actual device. 我找不到适合我手机屏幕大小的仿真器,所以我创建了一个自定义仿真器,但是不幸的是,即使它实际上是根据手机的大小而定,但图形在实际设备上的显示方式却有所不同。

  1. How to detect a 2.3 device which is not listed within the avd manager? 如何检测未在AVD管理器中列出的2.3设备?
  2. If that's not possible, what should I do to test the development directly on the mobile without having to export a .pak file every time? 如果不可能,我该怎么做才能直接在移动设备上测试开发,而不必每次都导出.pak文件?

On the phone, go to Settings -> Applications. 在电话上,转到“设置”->“应用程序”。 Enable "Unknown sources". 启用“未知来源”。

Then select "Development" and enable "USB debugging" and "Stay Awake". 然后选择“开发”并启用“ USB调试”和“保持唤醒”。

Connect the phone to your PC via USB and it should appear in the list of available devices to use for debugging. 通过USB将手机连接到PC,它应该出现在可用设备列表中,用于调试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何通过我的android应用拨打电话号码? - How can I call a phone number through my android app? 我无法使用 wifi 将手机与 android studio 连接来测试我的应用程序 - I can't connect my phone with android studio using wifi to test my app 如何在实际手机上测试开发中的 React APP? - How to test React APP in development on an actual phone? 如何在手机上测试我的应用程序? 我有Eclipse w / Android插件 - How to test my app on my phone? I have Eclipse w/ Android plug-in 如何为多个设备测试我的 android 应用程序? - How Can I test my android app for multiple devices? 如何在旧版本上测试我的android应用? - How can I test my android app on older versions? 我可以在没有服务的情况下使用Android手机测试应用程序吗 - can I use Android phone without service to test app 旋转手机时如何停止刷新Android Webview应用程序? - How can I stop my Android webview app from refreshing when I rotate my phone? 如何让Eclipse识别我的LG Phoenix手机,以便我可以调试我的Android应用程序? - How to get Eclipse to recognize my LG Phoenix phone so I can debug my android app? Android开发:当我的应用程序处于后台时,如何保持屏幕显示状态? - Android Development: How can I keep screen on when the activity of my app is at background?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM