[英]Run your app in Android Studio by connecting it to Actual Device or through APK
Is it better to test your application via USB (directly connecting your phone to the Android Studio) or by downloading the APK version of your app.通过 USB(直接将您的手机连接到 Android Studio)或通过下载您的应用程序的 APK 版本来测试您的应用程序更好。 I've been using emulator and it's really time consuming because it keeps lagging on my laptop.
我一直在使用模拟器,它真的很耗时,因为它在我的笔记本电脑上一直滞后。 I wanna know which is faster and safer?
我想知道哪个更快更安全?
Connecting your phone via USB is always a more reliable and faster option (even if u don't consider the time it takes to copy and paste your APK file from pc to phone) You can also do a activity restart rather than restarting whole app this way通过 USB 连接您的手机始终是一个更可靠和更快的选择(即使您不考虑将 APK 文件从 pc 复制并粘贴到手机所需的时间)您也可以重新启动活动而不是重新启动整个应用程序方法
which is less time consuming.
这样比较省时。 You can even specify a certain activity to launch for testing.
您甚至可以指定要启动的特定活动以进行测试。 It also provides lots of Monitoring options like device monitoring, Network Monitoring, Database Inspection, Layout Inspection and so on.
它还提供了许多监控选项,如设备监控、网络监控、数据库检查、布局检查等。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.