Python For Android?

Has anyone played with this?

I don’t have a Hexy yet, but I was wondering if anyone had tried using it yet to see what gaps may exist?

code.google.com/p/python-for-android/

Hadn’t seen such a thing existing, if I’m honest. My initial thought would be that the PoMoCo GUI wouldn’t fit on most device screens, so there would have to be some modification there at least. My plans were to sort out my control issues through Python on my laptop then write up some native Android code, but this is a long way off.

It will fit on some tablets, the nexus 7 is 1280x800 or so, and the nexus 10 has some obscene resolution. The questions are whether or not the the code uses anything that won’t work on the android, and how small the buttons are :wink:

I tried it with python for android but did not work for unknown reason. Dont really know if the python for android works in the same way as normal python.

First thing why you would not be able to controll hexy is there is no psyserial on the android version.

Here’s one project that does serial using P4A.

house4hack.co.za/wiki/index.php/ … ing_Python

I’ve ordered the bluetooth hexy, and I know that will have it’s own set of issues :wink: I did find a library for Bluetooth, if needed.

code.google.com/p/pybluez/source … es/simple/

Apparently there are two competing Python for Android projects.

groups.google.com/forum/?fromgr … VYO-tLRPMJ

THIS WILL NOT WORK! I was really hopping to create an Android controller for my Hexy. Unfortunately, after getting PoMoCo running on my Linux Mint system, it became clear that PoMoCo requires the python-tk package in order to run.

Python for Android specifically DOES NOT SUPPORT python-tk and thus will most likely not be able to run on Py4A anytime in the near future. THis limitation of Py4A is specifically discussed in the module section of the Py4A Wiki.

I haven’t delved too deep into the actual PoMoCo code so somebody with more Python experience than me will have to comment on if it’s possible to alter PoMoCo to not use the python-tk package.

Looks like a disappointment for now though. :confused:

Thanks for trying.

I see the post you’re talking about, it does say that TK isn’t supported on P4A, and probably won’t be.

Darn, I was hoping that it was simply that nobody had really tried :frowning: . Looks like a rewrite almost from scratch to support the android platform.

Yeah, it probably won’t work beacuse of TK, but the good news is that everything is seperated out. The GUI is stand-alone in its own file, so it shouldn’t be that difficult to change it for android’s needs

i might have some good news for the OP. I’ve been working in my spare time on an Android app for driving Hexy. I’ve started this past weekend and now have my Motorola Xoom (running Jelly Bean) talking to my Hexy over bluetooth. I’m currently implementing the movements from PoMoCo and a basic UI to drive those movements. I hope to announce something on these forums by Sunday.

I noticed you can run ubuntu on a nexus7, which I have. I’m going to see if I can get pomoco to run on that.