Category : android

import kivymd from kivymd.app import MDApp from kivymd.uix.label import MDLabel from kivymd.uix.button import MDRectangleFlatButton from kivy.uix.screenmanager import ScreenManager, Screen class myapp(MDApp): def build(self): self.sm=ScreenManager() self.s1=Screen() self.s2=Screen(name =’self.s2′) lab=MDLabel(text=’hi’) but= MDRectangleFlatButton(text=’wow’,size_hint=(0.2,0.058),pos_hint={‘center_x’:0.5},on_release=self.but()) self.sm.add_widget(s1) self.sm.add_widget(s2) self.s1.add_widget(lab) self.s1.add_widget(but) self.s2.add_widget(lab) return sm def but(self): self.sm.current= ‘self.s2’ myapp().run() I added a name for the screen but it gives me no screen ..

Read more

I am trying to making GPS logger for android with buildozer. and I can do with making basic background service by "from jnius import autoclass". However, its background file doesn’t work because of Permission. (foreground service is OK) Could you please help me to know proper way to giving android permission to background service? main.py(part) ..

Read more