Hey guys, I had hoped to find a great place to get information on converting Python to Java, either using Jython or some other program.
I dont know Java. I wrote this script in python and I'm wanting to be able to make it work for Android/iOS. There doesnt seem to be an easy way to do this without distributing the python file directly (using sl4a). I use these imports:
import string import random
Does anyone have advice on where to start etc? This is essentially a farming robot that automates farming in a game we play online. If anyone wants to see the code or can translate to Java easily please let me know. I have started the Java translation but fear I'm getting in way over my head with Java. Thanks guys take care.
J Hicks wrote: I wrote this script in python and I'm wanting to be able to make it work for Android/iOS.
Android and iOS are very different ecosystems. Programming in iOS is usually done with Objective-C. Android programmers use a customized version of Java. If you want to target both OS's, you'll either have to write two versions of your app or use a cross-platform development tool like Appcelerator.
As for translating a Python program to Java, they use very different programming paradigms so there will not be a 1:1 match for functionality (especially given your mobile requirement, which adds another API in the mix). I honestly don't think you can hope to translate the app without getting knowledgeable about Java and Android.