On Jun 6, 2012, at 11:03 AM, Petr Slováček wrote: > This is what I get in application output window each time it tries to send > the data:
Less useful than I hoped. HttpResponseParser.parseHead(): https://github.com/android/platform_external_apache-http/blob/master/src/org/apache/http/impl/io/HttpResponseParser.java#L73 `sesionBuffer` is a SessionInputBuffer (interface), of unknown runtime type, and `sessionBuffer.readLine()` returned -1, causing the exception. Grepping libGoogleAnalytics.jar, I see no implementations of SessionInputBuffer, so I'll assume it's a AbstractSessionInputBuffer: https://github.com/android/platform_external_apache-http/blob/master/src/org/apache/http/impl/io/AbstractSessionInputBuffer.java#L164 This assumption may very well be wrong, but if it's right, the only way for readLine() to return -1 is for this.linebuffer.length() to be -1 (lineFromLinebuffer()), or for fillBuffer() to return -1, which could happen if the wrapped InputStream.read() returns end-of-stream. Either way, I'm not sure why that would be happening, not if your app has the INTERNET permission (which iirc you said that your app had). Could you confirm that your app has INTERNET permission, e.g. by trying to use WebClient against a url? > I had to add empty IDispatcherCallbacks interface to Additions folder of my > java binding library project otherwise it refused to compile. I'm guessing that this is due to #5143: https://bugzilla.xamarin.com/show_bug.cgi?id=5143 - Jon _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid