Sending a local image from Android (Google Glass) to an online Python script? -



Sending a local image from Android (Google Glass) to an online Python script? -

i've started coding google glass. while have experience java, i'm totally new android development how server-type stuff works. need send photo taken google glass python script someone's hosting online , retrieve outputted json file script. on computer, if go url of python script image url, seems work (http://blahblah.com/cgi-bin/blahblah.py?url=http://blahblah.com/blah.jpg gives info json). how can glass / android? tried using httpurlconnection , posting info couldn't found connection.

thanks!!

it turns out problem was doing in main activity, while android apps require urlconnections established in thread. solved making separate asynctask handle upload.

android python google-glass image-uploading

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -