Author Topic: Question:How to Convert .py to .apk  (Read 6403 times)

0 Members and 1 Guest are viewing this topic.

Offline Clone

  • Peasant
  • *
  • Posts: 50
  • Cookies: 2
  • Always trying to find the value of x
    • View Profile
Question:How to Convert .py to .apk
« on: 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.
One who walks the line between light and dark, with no ties to either side. No morals or emotions clouding their judgment,able to accomplish tasks and solve problems in the most efficient and logical way.

Offline Corrupted_Fear

  • Knight
  • **
  • Posts: 336
  • Cookies: 34
  • Is dangerous to go alone! Take this! @xxxx[{:::::>
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #1 on: 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, 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.

by | Angel | Devil |

"Welcome to le trove that is my home. Welcome to EvilZone." -- DeepCopy

Offline Clone

  • Peasant
  • *
  • Posts: 50
  • Cookies: 2
  • Always trying to find the value of x
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #2 on: 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
« Last Edit: March 02, 2014, 08:24:13 pm by Clone »
One who walks the line between light and dark, with no ties to either side. No morals or emotions clouding their judgment,able to accomplish tasks and solve problems in the most efficient and logical way.

Offline iTpHo3NiX

  • EZ's Pirate Captain
  • Administrator
  • Titan
  • *
  • Posts: 2920
  • Cookies: 328
    • View Profile
    • EvilZone
Re: Question:How to Convert .py to .apk
« Reply #3 on: 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++
[09:27] (+lenoch) iTpHo3NiX can even manipulate me to suck dick
[09:27] (+lenoch) oh no that's voluntary
[09:27] (+lenoch) sorry

Offline vezzy

  • Royal Highness
  • ****
  • Posts: 771
  • Cookies: 172
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #4 on: March 02, 2014, 09:15:59 pm »
PhoneGap works too, especially considering you can target multiple mobile platforms at once.
Quote from: Dippy hippy
Just brushing though. I will be semi active mainly came to find a HQ botnet, like THOR or just any p2p botnet

Offline Clone

  • Peasant
  • *
  • Posts: 50
  • Cookies: 2
  • Always trying to find the value of x
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #5 on: 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
One who walks the line between light and dark, with no ties to either side. No morals or emotions clouding their judgment,able to accomplish tasks and solve problems in the most efficient and logical way.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Question:How to Convert .py to .apk
« Reply #6 on: 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.

Offline Corrupted_Fear

  • Knight
  • **
  • Posts: 336
  • Cookies: 34
  • Is dangerous to go alone! Take this! @xxxx[{:::::>
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #7 on: 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.).

by | Angel | Devil |

"Welcome to le trove that is my home. Welcome to EvilZone." -- DeepCopy

Offline Clone

  • Peasant
  • *
  • Posts: 50
  • Cookies: 2
  • Always trying to find the value of x
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #8 on: March 08, 2014, 11:31:14 pm »
I guess I have no option but to learn java  :'(
One who walks the line between light and dark, with no ties to either side. No morals or emotions clouding their judgment,able to accomplish tasks and solve problems in the most efficient and logical way.

Offline Corrupted_Fear

  • Knight
  • **
  • Posts: 336
  • Cookies: 34
  • Is dangerous to go alone! Take this! @xxxx[{:::::>
    • View Profile
Re: Question:How to Convert .py to .apk
« Reply #9 on: 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 ;)

by | Angel | Devil |

"Welcome to le trove that is my home. Welcome to EvilZone." -- DeepCopy