Код: Выделить всё
# (str) XML file to include as an intent filters in tag
android.manifest.intent_filters = intent_filters.xml
Код: Выделить всё
Код: Выделить всё
from jnius import autoclass
..
def on_start(self):
# Register for the intent when app is started
activity = autoclass('org.kivy.android.PythonActivity').mActivity
intent = activity.getIntent()
data = intent.getData()
# Check if the app was launched with a specific URL scheme
if data:
self.user_label.text = f'Hello from outside> {data.getScheme()}'
Код: Выделить всё
test_app://set_intro_text?data="opened from chrome"
Подробнее здесь: https://stackoverflow.com/questions/789 ... is-in-kivy
Мобильная версия