Skip to content

Commit 9e8bb37

Browse files
authored
Merge pull request kivy#1371 from AndreMiras/feature/ticket1049_fix_android_service_crash
Sets default service pythonName, fixes kivy#1049
2 parents 37f0b5c + 0981808 commit 9e8bb37

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pythonforandroid/bootstraps/pygame/build/src/org/renpy/android/PythonActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ public static void start_service(String serviceTitle, String serviceDescription,
351351
String filesDirectory = PythonActivity.mActivity.mPath.getAbsolutePath();
352352
serviceIntent.putExtra("androidPrivate", argument);
353353
serviceIntent.putExtra("androidArgument", filesDirectory);
354+
serviceIntent.putExtra("pythonName", "python");
354355
serviceIntent.putExtra("pythonHome", argument);
355356
serviceIntent.putExtra("pythonPath", argument + ":" + filesDirectory + "/lib");
356357
serviceIntent.putExtra("serviceTitle", serviceTitle);

pythonforandroid/bootstraps/sdl2/build/src/main/java/org/kivy/android/PythonActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ public static void start_service(String serviceTitle, String serviceDescription,
350350
serviceIntent.putExtra("androidPrivate", argument);
351351
serviceIntent.putExtra("androidArgument", app_root_dir);
352352
serviceIntent.putExtra("serviceEntrypoint", "service/main.pyo");
353+
serviceIntent.putExtra("pythonName", "python");
353354
serviceIntent.putExtra("pythonHome", app_root_dir);
354355
serviceIntent.putExtra("pythonPath", app_root_dir + ":" + app_root_dir + "/lib");
355356
serviceIntent.putExtra("serviceTitle", serviceTitle);

pythonforandroid/bootstraps/webview/build/src/org/kivy/android/PythonActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,7 @@ public static void start_service(String serviceTitle, String serviceDescription,
405405
serviceIntent.putExtra("androidPrivate", argument);
406406
serviceIntent.putExtra("androidArgument", argument);
407407
serviceIntent.putExtra("serviceEntrypoint", "service/main.pyo");
408+
serviceIntent.putExtra("pythonName", "python");
408409
serviceIntent.putExtra("pythonHome", argument);
409410
serviceIntent.putExtra("pythonPath", argument + ":" + filesDirectory + "/lib");
410411
serviceIntent.putExtra("serviceTitle", serviceTitle);

0 commit comments

Comments
 (0)