Commit d50bd085 authored by Philipp Auersperg's avatar Philipp Auersperg

client compat with android 7 and 8

parent 86e95597
......@@ -136,7 +136,10 @@ class MainActivity : AppCompatActivity() {
println("======================================pythonHome:"+ "$prefix/files/app")
println("======================================pythonPath:"+"$prefix/files/app:$prefix/files/app/lib")
return startService(intent) //android < 8
// return startForegroundService(intent) //android 8
if(Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
return startService(intent) //android < 8
} else {
return startForegroundService(intent) //android 8
}
}
}
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