Commit 23d43ac4 authored by Philipp Auersperg's avatar Philipp Auersperg

startet jetz unter 7 und 8 hartcodiert

parent 67f4e948
......@@ -8,8 +8,8 @@ android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.androidrpcclient"
// minSdkVersion 19
minSdkVersion 26
minSdkVersion 19
// minSdkVersion 26
targetSdkVersion 28
versionCode 1
versionName "1.0"
......
......@@ -79,17 +79,25 @@ class MainActivity : AppCompatActivity() {
// intent.setAction("org.bd.pureservice.ServiceSchas");
intent.setComponent(cn)
intent.putExtra("androidPrivate", "/data/user/0/org.bd.pureservice/files/app")
intent.putExtra("androidArgument", "/data/user/0/org.bd.pureservice/files/app")
// intent.putExtra("androidPrivate", "/data/user/0/org.bd.pureservice/files/app")
// intent.putExtra("androidArgument", "/data/user/0/org.bd.pureservice/files/app")
// intent.putExtra("serviceEntrypoint","servp3.py")
// intent.putExtra("pythonName","schas")
// intent.putExtra("pythonHome","/data/user/0/org.bd.pureservice/files/app")
// intent.putExtra("pythonPath", "/data/user/0/org.bd.pureservice/files/app:/data/user/0/org.bd.pureservice/files/app/lib")
// intent.putExtra("pythonServiceArgument", "test argument ok")
intent.putExtra("androidPrivate", "/data/data/org.bd.pureservice/files/app")
intent.putExtra("androidArgument", "/data/data/org.bd.pureservice/files/app")
intent.putExtra("serviceEntrypoint","servp3.py")
intent.putExtra("pythonName","schas")
intent.putExtra("pythonHome","/data/user/0/org.bd.pureservice/files/app")
intent.putExtra("pythonPath", "/data/user/0/org.bd.pureservice/files/app:/data/user/0/org.bd.pureservice/files/app/lib")
intent.putExtra("pythonHome","/data/data/org.bd.pureservice/files/app")
intent.putExtra("pythonPath", "/data/data/org.bd.pureservice/files/app:/data/data/org.bd.pureservice/files/app/lib")
intent.putExtra("pythonServiceArgument", "test argument ok")
try{
// val res=startService(intent)
val res=startForegroundService(intent)
val res=startService(intent)
// val res=startForegroundService(intent)
} catch (e: Exception) {
txtStatus.text = "Exception"
txtMessage.text = e.toString()
......
......@@ -19,7 +19,7 @@ print("before loading service class")
service = autoclass('org.bd.pureservice.ServiceSchas')
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
argument = 'test argument ok'
print('before start')
print('------before start')
service.start(mActivity, argument)
print('after start')
print('------after start')
# time.sleep(100)
......@@ -19,7 +19,7 @@ print("before loading service class")
service = autoclass('org.bd.pureservice.ServiceSchas')
mActivity = autoclass('org.kivy.android.PythonActivity').mActivity
argument = 'test argument ok'
print('before start')
print('------before start')
service.start(mActivity, argument)
print('after start')
print('------after start')
# time.sleep(100)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment