Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android app crashs when importing kivy_garden using buildozer #10

Open
PumaFPV opened this issue Nov 26, 2020 · 2 comments
Open

Android app crashs when importing kivy_garden using buildozer #10

PumaFPV opened this issue Nov 26, 2020 · 2 comments

Comments

@PumaFPV
Copy link

PumaFPV commented Nov 26, 2020

Hello, i'm trying to make an android app that generates a qrcode depending on a string. Once i build the app and run it on my phone it crashs. If i dont import kivy_garden the app runs (without qrcode functionnality of course)

Here is the code
`from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.image import Image
from kivy_garden.qrcode import QRCodeWidget
from datetime import datetime

class MyApp(App):
def build(self):

    date   = str(datetime.today())
    annee  = date[0:4]
    mois   = date[5:7]
    jour   = date[8:10]
    heure  = date[11:13]
    minute = date[14:16]
    heure = int(heure) - 1
    date = jour + '/' + mois + '/' + annee
    heure = str(heure) + 'h' + str(minute)
    nom = 'Nom: ; Prenom:  Naissance: ; '
    adresse = 'Adresse: ;'
    motif = ' Motifs:sport_animaux;'
    #sortie = 'Sortie:' + date
    #input_data = 'Cree le: 24/11/2020 a 10h00;Nom: ;Prenom: ;Naissance: Sortie: 24/11/2020 a 19:47;Motifs: sport_animaux;'
    input_data = 'Cree le: ' + date + ' a ' + heure + '; ' + nom + adresse + 'Sortie: ' + date + ' a ' + heure + motif
    label1 = Label(text='test')
    label2 = Label(text=date)
    layout = BoxLayout(orientation='vertical')
    layout.add_widget(label1)
    layout.add_widget(label2)
    qrcode = QRCodeWidget(data=input_data)
    #layout.add_widget(qrcode)
    return layout

if name == 'main':
MyApp().run()

`

did anyone had the same problem?

PS: this script works fine on both of my machines running win10 and ubuntu 20.04

@AndiEcker
Copy link
Contributor

AndiEcker commented Nov 26, 2020 via email

@AndiEcker
Copy link
Contributor

AndiEcker commented Jan 31, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants