Home > Backend Development > Python Tutorial > Can Python develop Android?

Can Python develop Android?

(*-*)浩
Release: 2019-11-01 15:28:57
Original
4649 people have browsed it

We use kivy to develop Android APP. Kivy is a set of open source frameworks specially used for cross-platform rapid application development. It is written in Python and Cython and has very good support for multi-touch. Not only It allows developers to quickly complete concise interactive prototype design, and also supports code reuse and deployment. It is definitely an amazing NUI framework.

Can Python develop Android?

Because it is cross-platform, you only need to write the code once to generate Android and iOS APP (recommended learning: PythonVideoTutorial)

Kivy is an open source Python library for developing mobile applications and other multi-touch applications with natural user interfaces. It can be executed on Android, iOS, Linux, OS X and Windows. Under the terms of the MIT license, Kivy is free and open source software.

The main architecture of Kivy is developed by the Kivy organization, and Python is used for Android, Kivy iOS and many other libraries are used on all platforms. In 2012, Kivy received a $5,000 grant from the Python Software Foundation to port Kivy to Python 3.3. Kivy also supports Raspberry Pi sponsored by Bountysource.

Its architecture includes all the elements for building an application, such as:

Supports many types of inputs, such as mouse, keyboard, touch user interface (TUIO) and multi-touch for specific operating systems Control events, only using the graphics library of OpenGL ES 2, and based on the vector buffer object (Vertex Buffer Object) and shaders, supporting multi-touch complex controls, an intermediate language (Kv) is used to simplify custom controls the design of.

Kivy has improved the PyMT project and is recommended for new projects.

Program Example

The following is a Hello World program example for a button:

from kivy.app import App
from kivy.uix.button import Buttonclass TestApp(App):    def build(self):        return Button(text='Hello World')
TestApp().run()
Copy after login

The above is the detailed content of Can Python develop Android?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template