Minecraft / Blogs

How to make apps for android right on your phone!

  • 3
  • 1
  • comment9
  • playlist_add
  • share
  • more_horiz
avatar kogan007
Level 30 : Artisan Dragonborn
19
Hello planet minecrafters! I bet a lot of you have wanted to make android apps before! Well then here is a simple tutorial for you to start on your way with something much easier then making the java equivalent.

Personally, I hate java. I find python very simplistic and love its commands. There is so much possibility without about 4x more lines of coding.
Anyway, you want style, functionality, and for it to be easy!
Steps:

No big downloads! Just download QPython for android and hop on to it!

How to make your first app(After Qpython's downloaded):

Create a new file in qpython. Name it Somename.py
Then open up text editor and mess around. I recommend you learn python, which can take only a couple days to learn.

Further on,
QPython contains a awesome module named kivy for making graphical user interfaces. You can make games, educational tools, and more. 
Here is an example app that you can run and edit.
[code]
import kivy
from kivy.app import app
from kivy.uix.button import Button
from kivy.lang import Builder

Builder.load_string("""
<test>:[/code]    Button:
        text: "Hi!"
        on_release: root.do_something()
""")
class test(GridLayout):
    import androidhelper
    droid = androidhelper.Android()
    def do_something(self):
        droid.dialogCreateAlert("Hi!!!!")
class apprun(App):
    def build(self):
        return test()
apprun().run()


Now run this code, and you have your very first android app! I will later be showing more tutorials, including how to compile this so other people can download it!
Read the kivy documentation at http://kivy.org
read python docs at http://python.org

Tags

Comments : 9

star Login or register to post a comment.

Show Comments

1 - 9 of 9

Does this work on an Windows computer?
  • kogan007
  • Level 30
  • Artisan Dragonborn
  • April 4, 2014, 6:06 am
It can, but you need python and you need kivy. You can look at the documentations of both of them. Although kivy is mainly for UI, its what makes the app look good. Its best for apps though, not programs. Just look at kivy.org
But seriously do i need kivy or python for windows?
What you just said made me want to look at the dictionary lol
  • kogan007
  • Level 30
  • Artisan Dragonborn
  • April 4, 2014, 7:56 am
You need python, kivy is optional. Although, I prefer using both becausekivy makes the apps look really cool, because python only has ASCII display
Meh just gonna use kivy but it only shows 64 bit for python i have 32 bit only
  • kogan007
  • Level 30
  • Artisan Dragonborn
  • April 5, 2014, 6:51 am
You need python to use kivy......
MEh okay im just learning oython language now kivy can wait
  • kogan007
  • Level 30
  • Artisan Dragonborn
  • April 6, 2014, 12:29 pm
Awesome!

1 - 9 of 9

Show Comments

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome