Skip to content

Commit 8170aeb

Browse files
committed
fixes for service_only
1 parent 1223337 commit 8170aeb

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pythonforandroid/bootstraps/service_only/build/templates/Service.tmpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class Service{{ name|capitalize }} extends PythonService {
1717
* {@inheritDoc}
1818
*/
1919
@Override
20-
public int getStartType() {
20+
public int startType() {
2121
return START_STICKY;
2222
}
2323
{% endif %}

pythonforandroid/recipes/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def prebuild_arch(self, arch):
3838
bootstrap = bootstrap_name = ctx_bootstrap
3939

4040
is_sdl2 = bootstrap_name in ('sdl2', 'sdl2python3', 'sdl2_gradle')
41-
is_webview = bootstrap_name in ('webview',)
41+
is_webview = bootstrap_name in ('webview','service_only',)
4242

4343
if is_sdl2 or is_webview:
4444
if is_sdl2:

testapps/setup_testapp_service.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
'blacklist-requirements': 'openssl,sqlite3',
88
'android-api': 27,
99
'ndk-api': 21,
10-
'ndk-dir': '/home/asandy/android/crystax-ndk-10.3.2',
10+
'sdk-dir':'/opt/android/android-sdk/',
11+
'ndk-dir':'/opt/android/android-ndk-r17c/',
1112
'dist-name': 'testapp_service',
1213
'ndk-version': '10.3.2',
1314
'bootstrap': 'service_only',

0 commit comments

Comments
 (0)