EvilZone

Hacking and Security => Mobile Hacking => Android => : Clone March 02, 2014, 07:06:35 PM

: Question:How to Convert .py to .apk
: Clone March 02, 2014, 07:06:35 PM
Hey is there a way to package .py files made from python 4 android and SL4A to android .apk or maybe a better way to package a python made app.
: Re: Question:How to Convert .py to .apk
: Corrupted_Fear March 02, 2014, 07:47:43 PM
I think what your asking is just how to convert a python script to be able to run and install on android, which in that case is fairly easy, just install QPython (https://play.google.com/store/apps/details?id=com.hipipal.qpyplus&hl=en), and run your script from there. Now, if you didn't mean that, I'm guessing you meant writing android applications in python. Seeing as a python script is very different from an entire android application, you can't really easily convert them, as they are two different types of programs. What you can do, is write an application for android (apk), which incorporates that python code. A quick google search brought up a few results:

http://kivy.org/#home

https://github.com/kivy/python-for-android   (not actually kivy, but a part of kivy that may be useful to you)

https://ep2013.europython.eu/conference/talks/developing-android-apps-completely-in-python

and of course the QPython I mentioned above.
: Re: Question:How to Convert .py to .apk
: Clone March 02, 2014, 08:09:22 PM
Thanks  ;D I will check out the kivy sites, if i have no choice then i guess I have to do java
: Re: Question:How to Convert .py to .apk
: iTpHo3NiX March 02, 2014, 08:40:55 PM
Thanks  ;D I will check out the kivy sites, if i have no choice then i guess I have to do java

You should be using java or c++ for android development... but simple scripts can be ran on android, full applications should be java or c++
: Re: Question:How to Convert .py to .apk
: vezzy March 02, 2014, 09:15:59 PM
PhoneGap works too, especially considering you can target multiple mobile platforms at once.
: Re: Question:How to Convert .py to .apk
: Clone March 03, 2014, 03:20:13 PM
Is there a free c++ Dev kit for android I only know of C4droid.....java sucks its boring i luck motivation for it
: Re: Question:How to Convert .py to .apk
: Kulverstukas March 03, 2014, 06:14:35 PM
java sucks its boring i luck motivation for it
Then you should just quit. Python is completely different and to create not-so basic hello world stuff you will need to learn ADK, which is Java.
: Re: Question:How to Convert .py to .apk
: Corrupted_Fear March 04, 2014, 01:00:03 AM
PhoneGap works too, especially considering you can target multiple mobile platforms at once.

Highly recommend phonegap. It's actually what im working/ learning on now, in correlation with cordova. Basically able to write apps for iOS, Android, Windows phone, and whatever else as long as you have the sdk files. Oh, and it only uses standard web languages (HTML, JS, CSS), which makes it super easy. Great if your in a hurry, or designing something that isn't very graphic intensive (games, simulations, etc.).
: Re: Question:How to Convert .py to .apk
: Clone March 08, 2014, 11:31:14 PM
I guess I have no option but to learn java  :'(
: Re: Question:How to Convert .py to .apk
: Corrupted_Fear March 09, 2014, 01:53:46 AM
You say it like its a terrible thing. Java is great for small apps and web based apps. I can't say I am fluent it in it, but I've played around with it and its just as useful as python can be. Plus, knowing both python AND java is never a bad thing ;)