[mono-android] Bug on 1.9.2

2011-11-07 Thread gabriel.b...@gmail.com
Log of a bug when I try to open one solution with 1.9.2 intalled Exception Type: System.NullReferenceException Exception Message: Object reference not set to an instance of an object. Exception Stack Trace:at MonoTools.Engine.MonoToolsSession.OnDebuggerException(Exception ex) at Mono.Debugg

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] MVVM framework

2011-11-07 Thread Emiel Metselaar
Richard Interesting. Do you already have some thoughts on how to implement the bindings, reflection seems expensive. I have played around with the func and action delegates to do some form of binding, but ofcourse this does not work from an axml file... Emiel On Mon, Nov 7, 2011 at 9:50 PM, Rich

Re: [mono-android] Using the New Compatibility Packages and TabActivity Deprication

2011-11-07 Thread gabriel.b...@gmail.com
There are any news in this subject? 2011/8/16 Jonathan Pryor > On Aug 16, 2011, at 3:38 PM, jondavidjohn wrote: > > By Deprication issues I mean that it seems to be a pretty high priority > to get Fragments involved as the previous TabActivity pattern is now > depricated... > > > > is this at al

Re: [mono-android] Getting the name of a spinner

2011-11-07 Thread Tomasz Cielecki
In the activity where you have the spinners. You could go around by doing something like this: Spinner spinner = FindViewById(Resource.Id.bodyCondSpinner); Or if you are inside the event handler. The sender should be the spinner: Spinner spinner = sender as Spinner if (spinner.Id = Reso

Re: [mono-android] [MonoDevelop] MacOSX Lion + MonoDevelop 2.8.2 + Mono for Android not installed

2011-11-07 Thread Miljenko Cvjetko
Good Morning Alan On 11/8/11 2:36 AM, Alan wrote: > Hi, > > The code to figure out if the dialog should display or not boils down > to this check: > > if (!File.Exists > ("/Developer/MonoAndroid/usr/lib/mandroid/Mono.Android.DebugRuntime-debug.apk")) > throw new UserException ("Mono for andr

Re: [mono-android] Is it possible to use java.util.concurrent.CountDownLatch in Mono for Android?

2011-11-07 Thread Builder
Thanks for answer. Can you direct me to some example how to use Android.Runtime.JNIEnv? Peter -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Is-it-possible-to-use-java-util-concurrent-CountDownLatch-in-Mono-for-Android-tp4972444p4973465.html Sent from the Mono for

[mono-android] TableRow problem

2011-11-07 Thread Paul Johnson
Hi, I have three table rows. The first two contains text and an edit box. The third contains text, an edit box and a check box. The rows are set up like this                      There are two problems I'm having. The two with the text a

Re: [mono-android] Getting the name of a spinner

2011-11-07 Thread Paul Johnson
Hi, On 7 November 2011 23:28, Tomasz Cielecki wrote: > Isn't it possible to get the id of a spinner? Set an id for each them? > As in Yes, but how do I then get that id name back? Paul ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSC

Re: [mono-android] 1.9.2

2011-11-07 Thread Wally McClure
Thanks. I'll take a look at your sample. I'm actually looking at the new sample at https://github.com/xamarin/monodroid-samples/tree/master/MapsDemo. This example is less than a week old. Wally Date: Tue, 8 Nov 2011 00:46:20 +0100 From: tom...@ostebaronen.dk To: monodroid@lists.ximian.com S

Re: [mono-android] Sharing code between iOS, Android and Windows Phone

2011-11-07 Thread Steven Pack
Thanks all. Sharing the code, not the binary. Got it. Makes sense. Thanks for the detailed samples and write-ups. Very helpful. Steve From: Miljenko Cvjetko Organization: HolisticWare Reply-To: Date: Tue, 08 Nov 2011 00:01:21 +0100 To: Discussions related to Mono for Android Cc: Steven

Re: [mono-android] 1.9.2

2011-11-07 Thread Tomasz Cielecki
I think the sample in the monodroid-samples is a bit outdated. In 1.9.2 there were made bindings for the map. I have made a small sample utilizing this which can be found here: https://github.com/Cheesebaron/MonoDroid.GoogleMapsDemo As for VS crashing I get that sometimes as well. Mainly with my S

[mono-android] 1.9.2

2011-11-07 Thread Wally McClure
I'm not sure if its just me or not, but I am seeing two big things over the past week with m4a 1.9.2: Visual Studio seems to be crashing on me a number of times. It doesn't happen during every session, but I've noticed much more with the 1.9 series.I've downloaded and tried to run the maps dem

Re: [mono-android] Getting the name of a spinner

2011-11-07 Thread Tomasz Cielecki
Isn't it possible to get the id of a spinner? Set an id for each them? On Tue, Nov 8, 2011 at 12:03 AM, Paul Johnson wrote: > Hi, > I have 4 spinners on a single tab. The ItemEvent event shoves them all to a > single method for processing. > Is there a simple way in that event to get the name of

Re: [mono-android] Calling arbitrary web services

2011-11-07 Thread Elan Hasson
Tim, Have you looked into JSON? On Mon, Nov 7, 2011 at 4:45 PM, Tim Kelly wrote: > ** > > It cost me and my team weeks because we didn't notice the issues until we > went live. The overhead and cost of web services is documented all over > Google (no one particular place) as I recall. There s

Re: [mono-android] Calling arbitrary web services

2011-11-07 Thread Glen Hassell
1200 baud... Whoever decided not compress the stream, over looking performance was missing insight into GZip and implementation with practically 'any' web server, that is IF you elected to use HTTP... there are options and this is a messaging format, not really designed for massive binary transfer

[mono-android] Getting the name of a spinner

2011-11-07 Thread Paul Johnson
Hi, I have 4 spinners on a single tab. The ItemEvent event shoves them all to a single method for processing. Is there a simple way in that event to get the name of the spinner? On a standard winform, I'd use Spinner spin = (Spinner) sender; switch (sender.Name) { /// } but I can't see anything

Re: [mono-android] Sharing code between iOS, Android and Windows Phone

2011-11-07 Thread Miljenko Cvjetko
Hi On 2011.11.07 08:16, Steven Pack wrote: Hi All, I'm using Xamarin, specifically because I'd like to share as much code as possible between the platforms. I've noticed I can only reference library projects that target "Mono for Android x.x". I'd hoped to be able to simply create a Mono cla

Re: [mono-android] Calling arbitrary web services

2011-11-07 Thread Tim Kelly
It cost me and my team weeks because we didn't notice the issues until we went live. The overhead and cost of web services is documented all over Google (no one particular place) as I recall. There seemed to be more written about it on the Java side. So, after spending some time to isolate th

Re: [mono-android] Is it possible to use java.util.concurrent.CountDownLatch in Mono for Android?

2011-11-07 Thread Jonathan Pryor
On Nov 7, 2011, at 4:08 PM, Builder wrote: > I need to use java.util.concurrent.CountDownLatch in order to synchronize > java.lang.Thread-s. Seems that java.util.concurrent namespace is not ported > to Mono for Android yet, but java.lang.Thread is. Is it possible to use > somehow CountDownLatch in

Re: [mono-android] How to convert byte[] to Java.Lang.Object ?

2011-11-07 Thread Jonathan Pryor
On Nov 7, 2011, at 3:56 PM, Builder wrote: > Thanks for answer. But JniHandleOwnership is available only in 1.9.2 > (preview), right? I'm using Mono for Android version 1.2 (official version). > How do I make it in 1.2? Drop the JniHandleOwnership parameter. The Java.Lang.Object(IntPtr) constructo

Re: [mono-android] Android Compatibility Package

2011-11-07 Thread and192
Thanks both of you for your answers. I think the best course of action for me now is to have two builds, one targeting API Level <3.0 and one targeting >=3.0, with shared code where possible. I'll keep an eye out for the changes coming in 2.2. Many thanks, Andy -- View this message in context:

[mono-android] Is it possible to use java.util.concurrent.CountDownLatch in Mono for Android?

2011-11-07 Thread Builder
Hello, I need to use java.util.concurrent.CountDownLatch in order to synchronize java.lang.Thread-s. Seems that java.util.concurrent namespace is not ported to Mono for Android yet, but java.lang.Thread is. Is it possible to use somehow CountDownLatch in Mono for Android? Best Regards, Peter --

Re: [mono-android] How to convert byte[] to Java.Lang.Object ?

2011-11-07 Thread Builder
Thanks for answer. But JniHandleOwnership is available only in 1.9.2 (preview), right? I'm using Mono for Android version 1.2 (official version). How do I make it in 1.2? Peter -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/How-to-convert-byte-to-Java-Lang-Object-

[mono-android] MVVM framework

2011-11-07 Thread Richard Wilburn
Hi all, A friend and I are looking at making a MVVM framework that will enable monodroid (and eventually iphone too) to have bindings like silverlight etc. We have started some modelling work on this, based off of what we have learned from a hack migration of this poorly modeled project: http://w

Re: [mono-android] Mono for Android 1.9.2 Preview Released

2011-11-07 Thread Jonathan Pryor
On Oct 31, 2011, at 6:39 AM, sound wrote: > In previous versions I have used JNIEnv::GetObjectRefType() to identify > object type and remove it. Android.Runtime.JObjectRefType is internal, so > how i can implement this functionality now? It was removed because it doesn't work: http://deve

Re: [mono-android] How to convert byte[] to Java.Lang.Object ?

2011-11-07 Thread Jonathan Pryor
On Nov 7, 2011, at 5:42 AM, Builder wrote: > But when I compile this, I get error Argument 4: cannot convert from > 'byte[]' to 'Java.Lang.Object'. How do I convert byte[] to Java.Lang.Object. > Please, help me, because I'm beginner in Monodroid. At this time, you need to do: new Java.Lan

Re: [mono-android] After update to 1.9.2 my VS periodically dies when trying to debug

2011-11-07 Thread Jonathan Pobst
I'm not sure what's causing this, but I have tried to guard against the NRE for the next release. Jonathan On 11/7/2011 8:14 AM, Paul Johnson wrote: > Hi, > > On 3 November 2011 10:07, sound > wrote: > > Exception Type: System.NullReferenceException > Excep

Re: [mono-android] Handling certificates - A short HowTo, please

2011-11-07 Thread moelski
Hi ! Some more Details about our problem ... We have a certification path: We have to import the certificates into the android. So we exported them as "DER encoded binary x.509 (.CER)" and renamed them to ...CRT. No we where able to copy the certificates to the SD card of the android device a

Re: [mono-android] After update to 1.9.2 my VS periodically dies when trying to debug

2011-11-07 Thread Paul Johnson
Hi, On 3 November 2011 10:07, sound wrote: > Exception Type: System.NullReferenceException > Exception Message: Object reference not set to an instance of an object. > Exception Stack Trace:at > MonoTools.Engine.MonoToolsSession.OnDebuggerException(Exception ex) > at Mono.Debugging.Client.

Re: [mono-android] Handling certificates - A short HowTo, please

2011-11-07 Thread moelski
Hi ! your answers are good for testing. But that solves not my problems in using certificates. Espacially from MonoAndroid ... Greetings Dominik -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Handling-certificates-A-short-HowTo-please-tp4970939p4971151.html

Re: [mono-android] Sharing code between iOS, Android and Windows Phone

2011-11-07 Thread Greg Shackles
I have a post here that talks about how to share code via linked files: http://www.gregshackles.com/2010/12/shared-libraries-for-windows-phone-7-monodroid-and-beyond/ On Mon, Nov 7, 2011 at 2:16 AM, Steven Pack wrote: > Hi All, > > I'm using Xamarin, specifically because I'd like to share as much

Re: [mono-android] Handling certificates - A short HowTo, please

2011-11-07 Thread Glen Hassell
*Settings > Security > Install from SDCard* * * https://market.android.com/details?id=com.metaworldsolutions.froyo.android.email Free... :) On Mon, Nov 7, 2011 at 10:41 PM, moelski wrote: > Hi ! > > I have an application which communicates with a web services. And this > works > great. > > But

[mono-android] Handling certificates - A short HowTo, please

2011-11-07 Thread moelski
Hi ! I have an application which communicates with a web services. And this works great. But now I must use a secure SSL connection. So I changed my service URL to https and changed the Port to the SSL Port. In addition I inserted a ServicePointManager.ServerCertificateValidationCallback = d

[mono-android] How to convert byte[] to Java.Lang.Object ?

2011-11-07 Thread Builder
Hello, I want to implement OnPreviewFrame method from Android.Hardware.Camera.IPreviewCallback interface. My implementation looks like this: public void OnPreviewFrame(byte[] data, Android.Hardware.Camera camera) { Handler thePreviewHandler = previewHandler;

Re: [mono-android] Hello world opens but then just closes?

2011-11-07 Thread Tomasz Cielecki
Hello Charles, Have you tried looking in the log generated by the phone? You can get that by either running adb logcat from a command line or look at the specific device from DDMS, both tools are in the android SDK. I also think that there is a option for saving the log to the desktop in the sett

Re: [mono-android] Sharing code between iOS, Android and Windows Phone

2011-11-07 Thread Tomasz Cielecki
What I do is to make a solution for each platform, and have a "master" solution with all the code that can be shared between the apps. This is mostly business logic as how to receive data from our servers, most of the domain model and so forth. This master project has its files linked into the spec

Re: [mono-android] Sharing code between iOS, Android and Windows Phone

2011-11-07 Thread Emiel Metselaar
>How does one go about sharing code? You have given the answer yourself, you share the code (not the assembly). So create a project file per platform, which allows you to place the platform specific references and if necessary add platform specific compiler constants + ifdefs. On Mon, Nov 7, 20