Is possible call another app in android from kivy python?

875 views
Skip to first unread message

Victor Sued

unread,
Nov 23, 2016, 10:52:32 AM11/23/16
to Kivy users support
Hi guys,
Is possible call another app from my app kivy python after compiled and installed in android?
I find in google example code for java.

http://stackoverflow.com/questions/4674391/calling-an-app-from-another-app

Is possible in kivy python?

Alexander Taylor

unread,
Nov 23, 2016, 5:31:10 PM11/23/16
to Kivy users support

Victor Sued

unread,
Nov 23, 2016, 11:29:27 PM11/23/16
to Kivy users support
I tried,
    def call_App(self):
        if platform() == 'android':
            PythonActivity = autoclass('org.renpy.android.PythonActivity')  # request the Kivy activity instance
            Intent = autoclass('android.content.Intent')  # get the Android Intend class
            intent = Intent()
            intent.setComponent(new ComponentName('com.navikey', 'com.navikey.seven_ways'))
            currentActivity = cast('android.app.Activity', PythonActivity.mActivity)
            currentActivity.startActivity(intent)

and kv file root.call_App(), not working...

Alexander Taylor

unread,
Nov 24, 2016, 2:37:34 PM11/24/16
to Kivy users support
I'm not familiar with what you need to do to get calling working, but you can probably debug as normal using adb logcat (https://kivy.org/docs/guide/android.html#debugging-your-application-on-the-android-platform).
Reply all
Reply to author
Forward
0 new messages