Answer the question
In order to leave comments, you need to log in
Music is played in kivy on PC, but not on adroid after compilation. What is the problem?
There is this elementary code:
Builder.load_string('''
<Start>:
FloatLayout:
Button:
text: 'Включить'
size_hint_x: .05
size_hint_y: .08
pos_hint:{'center_x': .5, 'y': .8}
on_release: root.enable()
''')
class Start(Screen):
def enable(self):
sound = SoundLoader.load('Music/music.mp3')
sound.play()
sm = ScreenManager(transition = NoTransition())
sm.add_widget(Start(name = 'one'))
class MyApp(App):
def build(self):
return sm
MyApp().run()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question