I know there is Jython and there is android SDK. and I know how to use PIL in a PC.
I would like to create an Android app that runs this code from here:
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?