Sunday, 15 August 2010

android - Sony Camera Remote API Sample Giving IOException -



android - Sony Camera Remote API Sample Giving IOException -

been trying utilize sony photographic camera api , i've been experimenting remote api sample app.

this app seems work well, i've notice when launching photographic camera activity live view i'm getting ioexception:

06-20 12:58:46.696: w/simpleliveviewsurfaceview(8216): ioexception while fetching: null

this seems originating readbytes method in simpleliveviewslicer line of code:

int readlen = in.read(buffer, 0, trialreadlen);

this can reproduced launching samplecameraactivty , pressing go cameraremotesample activity , launching samplecameraactivity clicking on url again.

it doesn't happen every time , plenty problem.

anyone on sony photographic camera team seen this? seems inputstream getting corrupted somehow.

as post says:

android httpurlconnection eofexception

there issue android httpurlconnection. throws eofexception in case surfaces ioexception.

my solution utilize different http lib. in case used okhttp guys @ square:

http://square.github.io/okhttp/

android api sdk camera sony

No comments:

Post a Comment