简体   繁体   English

在没有 USB 的真实设备上测试 android 应用程序

[英]Testing an android app on real device without USB

I have made an app in Android studio with a button, which sends notification with OneSignal API when it's clicked and I have a question about the app.我在 Android 工作室中制作了一个带有按钮的应用程序,该按钮在单击时通过 OneSignal API 发送通知,并且我对该应用程序有疑问。 First of all, my app is working fine when I connect my real phone via usb and the button is working perfectly.首先,当我通过 usb 连接我的真实手机并且按钮工作正常时,我的应用程序运行良好。 However, I want to use the app from my phone without a connection via usb and also, I want to send my app to one of my friends to test it.但是,我想在没有通过 usb 连接的情况下使用手机上的应用程序,而且我想将我的应用程序发送给我的一位朋友进行测试。 I tried to build the app and I sent it to my phone but it didn't work.我尝试构建应用程序并将其发送到我的手机,但它不起作用。 I hope you can help me with this problem.我希望你能帮助我解决这个问题。 Thank you in advance!先感谢您!

If you want to debug your Android APP without a USB cable I think you can debug it using the same wifi, if you want your friend to try it in his/her mobile phone go to Build->Generate APK (don't click "generate signed APK").如果你想在没有 USB 数据线的情况下调试你的 Android APP 我想你可以使用相同的 wifi 调试它,如果你想让你的朋友在他/她的手机上尝试它 Z34D1F91FB2E514B8576FAB1A75A89A6生成签名的 APK")。 this way your friend can install this app in his mobile phone and can test it.这样你的朋友就可以在他的手机上安装这个应用程序并进行测试。

if this isn't helping provide us more information.如果这无助于为我们提供更多信息。

Well, I want to try the app in one of my friend's mobile phone without having the same wifi.好吧,我想在我朋友的一部手机上试用该应用程序,而无需使用相同的 wifi。 That is, I want to share my app to other phones.也就是说,我想将我的应用程序分享给其他手机。 I built the app like you said and I sent it via email to my friend's phone.我按照您所说的那样构建了应用程序,并通过 email 将其发送到我朋友的手机。 I see that notification is sent but it isn't appearing on his phone.我看到通知已发送,但没有出现在他的手机上。 Can we help me with this problem?我们可以帮我解决这个问题吗?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM