I know there is Jython and there is android SDK. and I know how to use PIL in a PC.
我知道有Jython,还有android SDK。我知道如何在PC中使用PIL。
I would like to create an Android app that runs this code from here:
我想创建一个从这里运行此代码的Android应用程序:
def roll(image, delta):
"Roll an image sideways"
xsize, ysize = image.size
delta = delta % xsize
if delta == 0: return image
part1 = image.crop((0, 0, delta, ysize))
part2 = image.crop((delta, 0, xsize, ysize))
image.paste(part2, (0, 0, xsize-delta, ysize))
image.paste(part1, (xsize-delta, 0, xsize, ysize))
return image
- How do I run python code in the Android Java application source code?
- How do I run PIL python code in the Android Java application source code? which means how to add the PIL lib to the project?
- Can I make a whole python application to android to upload on the Market?
如何在Android Java应用程序源代码中运行python代码?
如何在Android Java应用程序源代码中运行PIL python代码?这意味着如何将PIL lib添加到项目中?
我可以将整个python应用程序安装到Android上市场吗?
2 个解决方案
#1
0
You can't use Jython on Android.
你不能在Android上使用Jython。
#2
0
I am not sure Jython is the right choice, one should consider running python in his java Android application: Is there a way to run Python on Android?
我不确定Jython是否是正确的选择,应该考虑在他的java Android应用程序中运行python:有没有办法在Android上运行Python?
#1
0
You can't use Jython on Android.
你不能在Android上使用Jython。
#2
0
I am not sure Jython is the right choice, one should consider running python in his java Android application: Is there a way to run Python on Android?
我不确定Jython是否是正确的选择,应该考虑在他的java Android应用程序中运行python:有没有办法在Android上运行Python?