Re: [mono-android] PostSharp 2.1 and Mono for Android

2012-08-24 Thread Matthew Leibowitz
Hi all, Just some new from the PostSharp guys: > Mono is only unofficially supported (you'll see in the support agreement > that it is not supported). From the next version of PostSharp, we will > completely stop testing our product with Mono (Mono testing currently is > very weak anyway), so the

[mono-android] Handle incoming SMS

2012-08-24 Thread Александр
How can i handle and read incoming SMS message? On android. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Handle-incoming-SMS-tp5711524.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodr

Re: [mono-android] PostSharp 2.1 and Mono for Android

2012-08-24 Thread Miha Markic
Yep, perhaps if enough people requested PS support for M4A we could change Gael's mind. Miha From: monodroid-boun...@lists.ximian.com [mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Matthew Leibowitz Sent: Friday, August 24, 2012 9:18 AM To: Discussions related to Mono for Android; mon

Re: [mono-android] PostSharp 2.1 and Mono for Android

2012-08-24 Thread Matthew Leibowitz
Just remember to use the SharpCrafters forum for your comments: http://support.sharpcrafters.com/discussions/suggestions/7-mono-for-android-monotouch-support Gael doesn't use this one :) On Fri, Aug 24, 2012 at 9:31 AM, Miha Markic wrote: > Yep, perhaps if enough people requested PS support

Re: [mono-android] Portable rest client

2012-08-24 Thread Matthew Leibowitz
Awesome! Think of no more linked files ! On Fri, Aug 24, 2012 at 1:11 AM, Goncalo Oliveira wrote: > i think that would be great. I'll try contacting him to see if he's open > to it. > > Goncalo Oliveira > Sent from my Windows Phone > -- > From: Matthew Leibowitz > Sent

Re: [mono-android] Unsafe code support

2012-08-24 Thread Miljenko Cvjetko
Hi If we look into https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.Sockets/Socket.cs method: public int IOControl (IOControlCode ioControlCode, byte[] optionInValue, byte[] optionOutValue) is on line 1448 not 1446. So it means Socket.cs is a little bit changed by X

Re: [mono-android] Handle incoming SMS

2012-08-24 Thread Tomasz Cielecki
You have to create a broadcast receiver which does this. I made a quick sample for you from some of the old threads on the list. ChrisNTR was so kind to help someone else before with this and made this gist: https://gist.github.com/cc8eec0c5b35fffc05cb The full BroadcastReceiver can be seen below

[mono-android] GPS

2012-08-24 Thread Domanet
Hi All, I’m requesting updates by using .RequestLocationUpdates (LocationManager.GpsProvider,2, 0, this); This works perfectly and I get the updates every 20 seconds or so. My issue is on some devices the accuracy is 64+ feet where as I really need anything less than 16. What is the best wa

Re: [mono-android] GPS

2012-08-24 Thread Tomasz Cielecki
There is an example here: http://stackoverflow.com/questions/1993016/android-how-to-keep-gps-active-until-more-accurate-location-is-provided Otherwise consider using Xamarin.Mobile: http://xamarin.com/mobileapi, it has a nice GeoLocation implementation where you can set your Desired Accuracy and h

[mono-android] Object Reference not set... after GC_EXPLICIT on bound object

2012-08-24 Thread James Lavery
Hi all, I've created a Java Bindings Library, which binds the Sybase Ultralite Android library so that I can use it in Mono For Android. This is up and running and has been working well - until now! What we've found is that as soon as a GC_EXPLICIT is triggered, we're getting "Object reference no

Re: [mono-android] GPS

2012-08-24 Thread Domanet
Thanks. My problems is that I’m doing that already but with 20 seconds and it keeps returning about 64 feet. I guess my only choice is to lower the time and keep the GPS on all the time. If a call .RequestLocationUpdates more than once is that a problem? Can I call .RequestLocationUpdates with

Re: [mono-android] GPS

2012-08-24 Thread Goncalo Oliveira
I believe that you'll have to lower the time and keep GPS on all time. There are also great differences in hardware; for example, I am doing a gps fix every 60 seconds, and having different accuracy values on a Samsung Galaxy Note and a ZTE china something. Surprisingly, the average values for the

Re: [mono-android] Object Reference not set... after GC_EXPLICIT on bound object

2012-08-24 Thread Jonathan Pryor
On Aug 24, 2012, at 9:15 AM, James Lavery wrote: > What we've found is that as soon as a GC_EXPLICIT is triggered, we're getting > "Object reference not set to an instance of an object" errors and the system > crashes. You mention GC_EXPLICIT, then show code that's calling Close(). I'm slightly

Re: [mono-android] jni error with 4.2.4 on jellybean

2012-08-24 Thread Jonathan Pryor
On Aug 23, 2012, at 5:49 PM, mcleodia wrote: > In that case, if the stacktrace in question is the point of failure, then, > looking at the error message, something must be disposing of the > windowManager object or its DefaultDisplay property. Right. If you have an easily reproducible test case

Re: [mono-android] Object Reference not set... after GC_EXPLICIT on bound object

2012-08-24 Thread James Lavery
Jonathan, Thanks for the reply. Yes, I mention GC_EXPLICIT and then don't show it. Stupid me - copied one line too low in the output. Here it is properly: ResultSetConnection does /not/ subclass Java.Lang.Object. It is a plain C# object. ResultSet, PreparedStatement and Connection are supplied

Re: [mono-android] Unsafe code support

2012-08-24 Thread Jonathan Pryor
On Aug 24, 2012, at 3:51 AM, Miljenko Cvjetko wrote: > If we look into > https://github.com/mono/mono/blob/master/mcs/class/System/System.Net.Sockets/Socket.cs Wrong branch; Mono for Android is based on Mono 2.10, not master: https://github.com/mono/mono/blob/mono-2-10/mcs/class/System/

[mono-android] USB Communication, Interpreting Endpoints

2012-08-24 Thread girth
I posted the same question over at StackOverflow ( http://stackoverflow.com/q/12111417/202967 http://stackoverflow.com/q/12111417/202967 ), but I thought this forum might be a more appropriate audience. Basically, I noticed when trying to establish communication to a device as a USB host that one

Re: [mono-android] Object Reference not set... after GC_EXPLICIT on bound object

2012-08-24 Thread Jonathan Pryor
On Aug 24, 2012, at 11:03 AM, James Lavery wrote: > ResultSetConnection does /not/ subclass Java.Lang.Object. It is a plain C# > object. A plain C# object with a finalizer [0]. You must be VERY CAREFUL when implementing finalizers: http://msdn.microsoft.com/en-us/library/b1yfkh5e(VS.1

Re: [mono-android] GPS

2012-08-24 Thread Domanet
Thanks, Are you requesting the updates in a background thread? Else what is the effect on the main thread with all those GPS updates? I'm using a Galaxy and getting 64m normally unless it's kept on the HTC one x was mostly 8m... I guess it comes down to the GPS driver on the device. I was hopi

Re: [mono-android] Object Reference not set... after GC_EXPLICIT on bound object

2012-08-24 Thread James Lavery
Jon, Yes - the problem was the fact that I was using a Finalizer when I didn't need to at all. All I needed to do was call ResultSetConnection.Close() in a finally {} block, and for Close() to just call ResultSet.Close(), PreparedStatement.Close() and Connection.Release() with no explicit Dispose(

Re: [mono-android] GPS

2012-08-24 Thread Goncalo Oliveira
I'm using a service to request the GPS updates, and then broadcasting the outcome. On 24 August 2012 16:37, Domanet wrote: > Thanks, > > Are you requesting the updates in a background thread? > > Else what is the effect on the main thread with all those GPS updates? > > I'm using a Galaxy and ge

Re: [mono-android] cannot convert from 'lambda expression' to 'System.Action'

2012-08-24 Thread Maximilian Wilson
On Sat, Aug 18, 2012 at 9:03 PM, Sayed Arian Kooshesh wrote: > youdon't need to wrap the action > > you can just do () => {} ; > > Most of the time, yes. In some cases the implicit conversion fails, though as I mentioned I don't remember the specific cases where I've hit this. (I think when the

[mono-android] How to keep tabs at the bottom of the screen?

2012-08-24 Thread dickies
Hi - New to Mono for Android and have been following this tutorial: http://docs.xamarin.com/android/tutorials/User_Interface/tab_layout All good, until I added a ListView onto one of the Activities that gets loaded on a tab. When I added an ItemClick event onto the ListView and used StartActivity