Re: [mono-android] Bluetooth stream problems

2011-11-07 Thread Igor Russkih
I've submitted a ticket on this: http://bugzilla.xamarin.com/show_bug.cgi?id=1927 Igor On Sun, Nov 6, 2011 at 6:59 AM, Igor Russkih wrote: > >> We're wondering why you need polling access to the stream. >> InputStream.available() is documented as not being very useful: >> >> > I'm not sure

Re: [mono-android] Bluetooth stream problems

2011-11-05 Thread Igor Russkih
> > > We're wondering why you need polling access to the stream. > InputStream.available() is documented as not being very useful: > > I'm not sure why android's version of javadoc includes this passage. But from common sense - the available() method's efficiency depends etirely on the underlying i

Re: [mono-android] Bluetooth stream problems

2011-11-05 Thread Jonathan Pryor
On Nov 3, 2011, at 1:01 AM, Igor Russkih wrote: > As I see Java's InputStream from BluetoothSocket is indirectly mapped into > System.IO.Stream > > How then I can use java's is.available() to detect if there is any data in > the stream? There is no direct mapping for such a logic in the > Syste

Re: [mono-android] Bluetooth stream problems

2011-11-04 Thread Igor Russkih
Is there any official response/docs on this? The issue is quite important since it doesn't allow to do seamless porting of our framework to MD and thus makes the purchased license quite useless... As a generalized question of the below - how to do 'polling' style of working with Input/output strea

[mono-android] Bluetooth stream problems

2011-11-02 Thread Igor Russkih
Hello, We are trying to use BT connectivity via MD, As I see Java's InputStream from BluetoothSocket is indirectly mapped into System.IO.Stream How then I can use java's is.available() to detect if there is any data in the stream? There is no direct mapping for such a logic in the System.IO.Stre