File tree Expand file tree Collapse file tree
src/org/kvdeveloper/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -145,11 +145,11 @@ android.minapi = 23
145145android.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:
Original file line number Diff line number Diff line change 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
1717else :
1818 install_dir = os .path .expanduser ("~/Applications/site-packages" )
Original file line number Diff line number Diff line change 22from jnius import autoclass
33from android .runnable import run_on_ui_thread # type: ignore
44
5- ApplicationActivity = autoclass ("org.kvdeveloper.client.ApplicationActivity " )
5+ ApplicationActivity = autoclass ("org.kivy.android.PythonActivity " )
66ClientActivity = autoclass ("org.kvdeveloper.client.ClientActivity" )
77Intent = autoclass ("android.content.Intent" )
88Uri = autoclass ("android.net.Uri" )
Original file line number Diff line number Diff line change 55import android .util .Log ;
66import 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." );
You can’t perform that action at this time.
0 commit comments