How to develop programs for Android through Python?

10

To develop programs for Android in Python is it necessary to build a framework in such a way that the application is executable on Android phones?

I'm new to Android programmer, I'm studying and I knew Python has great portability. How can I write programs for Android in Python? Is it possible?

    
asked by anonymous 29.06.2014 / 00:19

2 answers

6

You can take a look at the Kivy framework, it is open source, developed in Python to program in Python , focused on modern applications, being multiplatform, multitoach, open source, simple and fast.

About the installation and requirements you can take a look at the answer to this question from the SOen , I will not venture to translate the answer, because my English is still poor.

For more on kivy you can refer to Documentation or the project at GitHub , there is also this talk on youtube on development of apps with Kivy .

Note: I have never done the installation or testing with Kivy I only read about it in some posts in the Python community, so I can not give more detailed information about Kivy .

    
10.07.2014 / 21:53
3

Another alternative is QPython that lets you create and run scripts on Android, it comes with a development kit that contains:

  • Console : A regular console for Python, feel free to communicate with the interpreter directly.
  • Editor : QPython has a good built-in text editor, you can write code and run it without leaving the application.
  • My QPython : Here you can find your scripts and projects.
  • System : Maintenance of libraries and components, install and uninstall them.
  • Package Index : Opens the QPyPI page in the browser that allows you to install packages listed there.

AHelloWorldinQPython:

importandroidhelperah=androidhelper.Android()response=ah.dialogGetInput("Hello", "Enter your name:")
message = 'Hello, %s!' % response.result
ah.makeToast(message)

You can find more information on the QPython wiki . On the Mobile Device Editors page, you have a list of IDE's which run on mobile devices and tablets .

    
29.06.2014 / 00:55