...
ps; The problem with the image streams I was having seemed to be related to different Readers and InputStreams using the Socket Input Stream. I was reading the first line using a Reader object and the byte buffer using a DataInputStream. Changed the first line read to use the same DataInputStream and seem to be OK at the moment.
Darren
haha...I had a similar experience when creating the UnOrbiter.NET (touch orbiter for .NET framework).
The problem manifested itself in a different way, but it was essentially the same problem. I used one object(StreamReader) to read the first line (it has support for ReadLine method) to get the image size and another(Stream) to grab the rest of the stream. I didn't pay close attention to what the StreamReader was doing to the buffer. Lesson learned
This shortcut cost me some headaches, for sure, so I feel your pain.
Yeah, sounds very similar. It was starting to drive me nuts - especially the fact that how something so simple could not be working.
Anyway, got some more time on the Android orbiter last night. Managed to tidy up a bit of code and preferences is working from the menu button.
I also added the code for the 'ANYNEWS?' check. This does not work on my server at all but I have looked at the ProxyOrbiter source and it should work where the functionality is present. Still need to look at it from a threadsafe point of view but the functionality is basically there.
What is the best way to get this to some people to test? Also, should this source go into the main linuxmce svn repo?
As a first version it should be functional. The main thing that I would like to add however is the ability to zoom in and out. I am using it on my phone which is probably the smallest android screen available (HTC Tattoo) and it is usable but would benefit from a zoom ability. This can wait till a second version though.