How to use kivy to open default Android apps?

心不动则不痛 提交于 2021-01-21 11:31:26

问题


I am currently developing an app for Android, and I would like to make it so that when the user clicks on a button within the app, they are redirected to the default Android clock app, where they can set up reminders for themselves. Is there any way that Kivy can access those default apps?


回答1:


You probably need to construct an appropriate intent, as described at e.g. Intent to launch the clock application on android , but you can do this from Python via pyjnius instead of by writing java code directly. I have an example that you might find useful here, which creates an intent using pyjnius, but in this case for sending an email rather than opening an app.



来源:https://stackoverflow.com/questions/43403562/how-to-use-kivy-to-open-default-android-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!