You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi i want write an app with kivy lib. it's works fine in linux or windows but it's didn't work in my phone
this app is going to send a requests to any website (in this case i just want to send a requests to google)
here is my code:
import urllib3
from kivymd.app import MDApp
from kivy.uix.floatlayout import FloatLayout
from kivy.lang.builder import Builder
uiHelper= """
MDFlatButton:
text: app.server()
"""
class ui(FloatLayout):
def __init__(self, **kwargs):
super(ui, self).__init__(**kwargs)
self.add_widget(Builder.load_string(uiHelper))
class MainApp(MDApp):
def build(self):
return ui()
def server(self):
http = urllib3.PoolManager()
r = http.request('GET', 'http://google.com')
return str(r.status)
app = MainApp()
app.run()
The text was updated successfully, but these errors were encountered:
samirhosseinn
changed the title
an kivy app can not send request to any website in phone
a kivy app can not send request to any website in phone
Apr 25, 2021
Description
hi i want write an app with kivy lib. it's works fine in linux or windows but it's didn't work in my phone
this app is going to send a requests to any website (in this case i just want to send a requests to google)
here is my code:
buildozer.spec
Command:
Spec file:
###logs
The text was updated successfully, but these errors were encountered: