Skip to content

Commit 69b6481

Browse files
committed
2 parents 67b30c5 + 0e6b4f3 commit 69b6481

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

client/buildozer.spec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ android.minapi = 23
145145
android.accept_sdk_license = True
146146

147147
# (str) Android entry point, default is ok for Kivy-based app
148-
android.entrypoint = org.kvdeveloper.client.ApplicationActivity
148+
# android.entrypoint = org.kvdeveloper.client.ApplicationActivity
149149

150150
# (str) Full name including package path of the Java class that implements Android Activity
151151
# use that parameter together with android.entrypoint to set custom Java class instead of PythonActivity
152-
android.activity_class_name = org.kvdeveloper.client.ApplicationActivity
152+
# android.activity_class_name = org.kvdeveloper.client.ApplicationActivity
153153

154154
# (str) Extra xml to write directly inside the <manifest> element of AndroidManifest.xml
155155
# use that parameter to provide a filename from where to load your custom XML code:

client/libs/installer/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from jnius import autoclass
1111
from libs.utils import request_android_permissions, Permission
1212

13-
ApplicationActivity = autoclass("org.kvdeveloper.client.ApplicationActivity")
13+
PythonActivity = autoclass("org.kivy.android.PythonActivity")
1414

15-
install_dir = ApplicationActivity.install_dir
15+
install_dir = os.path.join(PythonActivity.mActivity.getFilesDir().getAbsolutePath(), "Applications", "site-packages")
1616

1717
else:
1818
install_dir = os.path.expanduser("~/Applications/site-packages")

client/libs/launcher/android/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from jnius import autoclass
33
from android.runnable import run_on_ui_thread # type: ignore
44

5-
ApplicationActivity = autoclass("org.kvdeveloper.client.ApplicationActivity")
5+
ApplicationActivity = autoclass("org.kivy.android.PythonActivity")
66
ClientActivity = autoclass("org.kvdeveloper.client.ClientActivity")
77
Intent = autoclass("android.content.Intent")
88
Uri = autoclass("android.net.Uri")

client/src/org/kvdeveloper/client/ClientActivity.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
import android.util.Log;
66
import android.view.KeyEvent;
77

8-
import org.kvdeveloper.client.ApplicationActivity;
8+
import org.kivy.android.PythonActivity;
99

10-
public class ClientActivity extends ApplicationActivity {
10+
public class ClientActivity extends PythonActivity {
1111
private static final String TAG = "ClientActivity";
1212

1313
@Override
@@ -21,7 +21,7 @@ public String getEntryPoint(String searchDir) {
2121
Uri uri = getIntent().getData();
2222
if (uri != null) {
2323
String path = uri.getPath();
24-
Log.i(TAG, "Launching entrypoint from URI: " + path);
24+
Log.i(TAG, "Will launch entrypoint from URI: " + path);
2525
return path;
2626
} else {
2727
Log.w(TAG, "No entrypoint URI passed.");

0 commit comments

Comments
 (0)