comparison cagou/core/cagou_main.py @ 240:f555b10712d7

misc: fixed Android namespace
author Goffi <goffi@goffi.org>
date Sat, 06 Oct 2018 09:48:52 +0200
parents ab523cc967bb
children 5bd94bc08f5c
comparison
equal deleted inserted replaced
239:a2af4c1e9c6f 240:f555b10712d7
351 if bridge_name == 'embedded': 351 if bridge_name == 'embedded':
352 from sat.core import sat_main 352 from sat.core import sat_main
353 self.sat = sat_main.SAT() 353 self.sat = sat_main.SAT()
354 if sys.platform == 'android': 354 if sys.platform == 'android':
355 from jnius import autoclass 355 from jnius import autoclass
356 service = autoclass('org.salutatoi.cagou.cagou.ServiceBackend') 356 service = autoclass('org.salutatoi.cagou.ServiceBackend')
357 mActivity = autoclass('org.kivy.android.PythonActivity').mActivity 357 mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
358 argument = '' 358 argument = ''
359 service.start(mActivity, argument) 359 service.start(mActivity, argument)
360 self.service = service 360 self.service = service
361 361