简体   繁体   English

Kivy可以在kivy.launcher中将信息发布到服务器,但是对apk文件(相同代码)无用。 一些建议?

[英]Kivy can post info to server in kivy.launcher,but useless from apk file(same code). some suggestions?

I wrote a small app with kivy, its functionality is very simple, In the UI, your can type your name and tap Submit button, then my app is connected to a cloud server, whenever you tap Submit, It can receive what your write in the app, it's useful in PC(I run in my terminal and I can receive what you typed in the cloud server), also in kivy.launcher(I put app.main and .kv in my android device, I also can receive information in server); 我用kivy编写了一个小应用程序,它的功能非常简单,在UI中,您可以键入您的姓名并点击Submit按钮,然后将我的应用程序连接到云服务器,只要您单击Submit,它就可以接收您写的内容该应用程序,它在PC中很有用(我在终端上运行,我可以接收您在云服务器中输入的内容),在kivy.launcher中也有用(我将app.main和.kv放入我的android设备中,我也可以接收信息在服务器中); but when I use buildozer to build it into a .apk file, it runs on my android device, but when I tap Submit button, I could't receive anything in my cloud server, both in wifi and 3g/4g, did somebody know what is wrong with my app? 但是当我使用buildozer将其构建为.apk文件时,它在我的android设备上运行,但是当我点击Submit按钮时,无论是在wifi还是3g / 4g中,我都无法在云服务器中收到任何信息,有人知道吗我的应用程式怎么了?
Thanks for your reply and suggestions. 感谢您的答复和建议。 I'm a newbie, so I can not upload img. 我是新手,因此无法上传img。

确保您的APK具有INTERNET权限(您可以在buildozer.spec中启用此权限)。

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

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