App not working after creating apk

9 views
Skip to first unread message

mahmud al hasan

unread,
Jun 26, 2018, 2:58:40 AM6/26/18
to Kivy users support
I have created a kivy signup app with MySQL database. To send data I have used json and rest api. Now, my application works well on desktop but stops working after I create apk. 
When I press the login button it stops working. 

Here is my code for signup- 
from kivy.uix.boxlayout import BoxLayout
import requests, json, urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)

class SignupPage(BoxLayout):
    def signup(self):
        username, password = self.ids.username.text, self.ids.password.text
        info = {
            "signup": [
                {
                    "username": username,
                    "password": password
                }
            ]
        }

        # headers = {"Content-type": "application/json"}
        resp = requests.post(url, data=dict(info=json.dumps(info)), verify=False)
        if resp:
            if  username and password:
                print('Data successfully saved!')
            else:
                print('Please enter user name and password!')


Reply all
Reply to author
Forward
0 new messages