Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python - Does Kivy implements activities in the Android apps?

As we all know, when developing an Android app in native Java, we use activities. I was wondering that, in developing Android apps in Python(with Kivy), does Kivy implements activities for the apps in itself or not? because I don't see any activity implementation on the sample codes.

If it doesn't implement activities, Do we lose performance or any functionality in the application compared to coding in native Java?

like image 732
Alireza Fallah Avatar asked Oct 20 '22 15:10

Alireza Fallah


1 Answers

Simply put, you can use Activities (starting them using pyjnius), but not really define them, at least, it's not usually the way one work with kivy.

Kivy doesn't adjust its way of working for targetted platform, it uses its own systems, and make them work there. For what i know the advantages of separating Activities on android is just a way to make your code more neatly organized, and doesn't imply performance changes. It can allow you to start your app in various ways (from a share, for example) but you can do that with p4a/buildozer too, by dispatching messages about the intent, if you need to. With kivy, you'll organise your code like you would do for any python project, using modules.

like image 117
Tshirtman Avatar answered Oct 22 '22 06:10

Tshirtman