bugfix
This commit is contained in:
parent
624c237b53
commit
89e84240e0
12
kivyblocks/serviceControl.py
Normal file
12
kivyblocks/serviceControl.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
from jnius import autoclass
|
||||||
|
|
||||||
|
def startService(className):
|
||||||
|
# service = autoclass('your.service.name.ClassName')
|
||||||
|
service = autoclass(className)
|
||||||
|
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||||
|
service.start(mActivity)
|
||||||
|
|
||||||
|
def stopService(className):
|
||||||
|
service = autoclass(className)
|
||||||
|
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
|
||||||
|
service.stop(mActivity)
|
@ -32,7 +32,9 @@ class VPlayer(FloatLayout):
|
|||||||
stoped_play = BooleanProperty(False)
|
stoped_play = BooleanProperty(False)
|
||||||
paused_play = BooleanProperty(False)
|
paused_play = BooleanProperty(False)
|
||||||
|
|
||||||
def __init__(self,vfile=None,loop=False,
|
def __init__(self,vfile=None,
|
||||||
|
playlist=None,
|
||||||
|
loop=False,
|
||||||
openfile_img=None,
|
openfile_img=None,
|
||||||
exit_img = None,
|
exit_img = None,
|
||||||
pause_img = None,
|
pause_img = None,
|
||||||
|
Loading…
Reference in New Issue
Block a user