[mono-android] SqliteDataAdapter Fill method support

2011-12-12 Thread Venky
I have a whole host of data access layer code written like below: DataSet ds = new DataSet("Result"); using (SqliteConnection conn = new SqliteConnection(dbPath)) { conn.Open(); SqliteCommand cmd = new SqliteCommand(); cmd.Connection = conn; cmd.CommandTex

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
The document section of TextToSpeech for Mono is still empty in a few part, please verify that the TextToSpeech section is working.  Thanks http://androidapi.xamarin.com/?link=T:Android.Speech.Tts.TextToSpeech.IOnInitListener/* From: Jonathan Pryor-2 [via Mono

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
Dear Jonathan, I have provided the OnInit(int) method                     String myText1 = "Did you sleep well?";                     String myText2 = "I hope so, because it's time to wake up.";                     mTts.Speak(myText1, QueueMode.Flush, null);                     mTts.Speak(myTex

Re: [mono-android] Monodroid Digest, Vol 17, Issue 63

2011-12-12 Thread Sohrab Farajian
elated, but I can't say > that for sure. Also, a simple test app doesn't seem to be an option because > the thread apparently needs to be heavily bogged down to see the problem. > > Anyone got any ideas? > -Aaron > -- next part -- > An HTML

Re: [mono-android] System.NotSupportedException with ArrayAdapter of custom object

2011-12-12 Thread Jared Barneck
>> I am getting this error too. The documentation states this should work. >> http://docs.monodroid.net/index.aspx?link=T%3aAndroid.Widget.ArrayAdapter >> >> I have created a very simple sample project that duplicates this issue. >> http://www.rhyous.com/wp-content/uploads/2011/12/TestCustomObjec

Re: [mono-android] Thread Exceptions Without Stacktrace

2011-12-12 Thread Aaron Knabb
Well I'll give it a try when 4.0.1 comes out. I'm trying to create an example app now. No luck so far. -Aaron On Mon, Dec 12, 2011 at 8:25 PM, Jonathan Pryor wrote: > On Dec 12, 2011, at 5:11 PM, Aaron Knabb wrote: > > I've seen several similar issues on this topic, but the only solution > see

Re: [mono-android] How to reference and use a android library project apk

2011-12-12 Thread Jonathan Pryor
On Dec 9, 2011, at 5:25 PM, klimaye wrote: > I am looking at > > http://code.google.com/p/android-section-list/ > > as a sectioned listview implementation. > > How would one reference the generated apk (output of library project) with > monodroid? > > Would I use JNI ? For a library of that s

Re: [mono-android] Android application Crash unexpectedly on device using release version

2011-12-12 Thread Jonathan Pryor
On Dec 8, 2011, at 5:36 AM, pankaj1606 wrote: > but I am getting the following error on device (android version 2.2), > > *The application has stopped unexpectedly. Please try again.* Unfortunately, we need more information than this. Please provide the relevant Android Debug Log output:

Re: [mono-android] Android application crashing on device

2011-12-12 Thread Jonathan Pryor
On Dec 8, 2011, at 6:28 AM, Amitabh Mishra wrote: > After installation, when we run the application, we are getting the following > error on device (android version 2.2). The problem is that the shared runtime can't be found: E/AndroidRuntime( 4936): java.lang.RuntimeException: Unable to

Re: [mono-android] Mono for Android 4 - Constructor injection causes packaging failure.

2011-12-12 Thread Jonathan Pryor
On Dec 8, 2011, at 6:04 AM, SpiritMachine wrote: > This looks similar too some other packaging issues outstanding that might > have to do with generics and/or abstract classes. No, it has to do with faulty constructor lookup algorithms. :-) This is fixed in the 4.0.1 release. - Jon __

Re: [mono-android] Thread Exceptions Without Stacktrace

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 5:11 PM, Aaron Knabb wrote: > I've seen several similar issues on this topic, but the only solution seems > to be "wait for the next version." I am running the latest 4.0 build, but I > keep seeing the following problem: We have a 4.0.1 release coming out Real Soon Now, which

Re: [mono-android] Supported architectures? armeabi-v7a

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 5:24 PM, Vladimir Dimitrov wrote: > So does this mean that we should always enable armeabi-v7a in cases when we > use a lot of multi threading and floating point operations? Maybe. Depends on the app. :-) > I guess the trade off in this case is that if we include both there w

Re: [mono-android] Supported architectures? armeabi-v7a

2011-12-12 Thread Vladimir Dimitrov
So does this mean that we should always enable armeabi-v7a in cases when we use a lot of multi threading and floating point operations? I guess the trade off in this case is that if we include both there will be a bigger .apk as a result? Anything else? - Vladimir -Original Message- From

[mono-android] Thread Exceptions Without Stacktrace

2011-12-12 Thread Aaron Knabb
I've seen several similar issues on this topic, but the only solution seems to be "wait for the next version." I am running the latest 4.0 build, but I keep seeing the following problem: I have a worker thread that is randomly crashing and taking down the whole app with it. I don't get any excepti

Re: [mono-android] System.NotSupportedException with ArrayAdapter of custom object

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 1:38 AM, Rhyous wrote: > I am getting this error too. The documentation states this should work. > http://docs.monodroid.net/index.aspx?link=T%3aAndroid.Widget.ArrayAdapter > > I have created a very simple sample project that duplicates this issue. > http://www.rhyous.com/wp-co

Re: [mono-android] [MonoTouch] Xamarin Mobile API Preview 0.2

2011-12-12 Thread Miljenko Cvjetko
Hi Eric On 2011.12.12 20:42, Eric Maupin wrote: > Hi Miljenko, > > Can you try turning off Fast Deployment? (Project properties -> Mono > Android Options -> Use Fast Deployment (debug mode only) First thing tomorrow in the morning. Devices are by other guys on testing... regards mel -- Miljen

Re: [mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 3:32 PM, davthomas wrote: > Monodroid version > > public class TestAct:Activity,TextToSpeech.OnInitListener public class TestAct : Activity, TextToSpeech.IOnInitListener { You'll also need to provide the OnInit(int) method: http://androidapi.xamarin.com/?li

[mono-android] How to Initialize text-to-speech for monodroid

2011-12-12 Thread davthomas
Below is an attempt to port java example code on initializing Text to speech engine. How to do that in monodroid >>> mTts = new TextToSpeech(this, this //TextToSpeech.OnInitListener ); thanks public class TestAct ext

Re: [mono-android] Saving a log file and attaching to an e-mail

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 12:17 PM, Neal Culiner wrote: > Anyone see anything wrong with what I’m doing? No. What API level and device are you having problems on? The following nearly identical code works for me: var recips = new string[] { "em...@example.com" }; string MessageBody = "

Re: [mono-android] Java.Lang.NoClassDefFoundError: android.text.IInputFilter

2011-12-12 Thread NCSoftware
I think I'm bitten by this same bug in MfA 4.0. I just posted bug 2466. My app is fine in DEBUG mode (no linking) but in release (sdk only) I'm having a problem with ListPreference and possibly my public static DBHelper class that has a bunch of static methods with sources for lists, etc. Any up

Re: [mono-android] Supported architectures? armeabi-v7a

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 2:49 PM, Neal Culiner wrote: > Should I have both armeabi and aremabi-v7a checked in the application > properties? I can’t find anything in the MD docs to advise me. The largest differences are in hardware floating point support and SMP (multi-CPU) support. armeabi supports

Re: [mono-android] Running devices

2011-12-12 Thread Andy Weston
Thanks Jon, you pointed me in the right direction. I needed to update my usb driver to the Google driver found in the sdk. Found the steps here ... http://www.androidauthority.com/how-to-root-the-amazon-kindle-fire-36015/ (but I didn't do the rooting) The device showed up right away. Thanks --And

[mono-android] Supported architectures? armeabi-v7a

2011-12-12 Thread Neal Culiner
Should I have both armeabi and aremabi-v7a checked in the application properties? I can't find anything in the MD docs to advise me. Thx, Neal Culiner NC Software, Inc. http://www.nc-software.com/ ___ Monod

Re: [mono-android] [MonoTouch] Xamarin Mobile API Preview 0.2

2011-12-12 Thread Eric Maupin
Hi Miljenko, Can you try turning off Fast Deployment? (Project properties -> Mono Android Options -> Use Fast Deployment (debug mode only) 2011/12/12 Miljenko Cvjetko > Hi Eric > > > On 2011.12.09 17:07, Eric Maupin wrote: > > Hi Miljenko, > > As Mike said, I sent the email individually to ea

Re: [mono-android] Running devices

2011-12-12 Thread Jonathan Pryor
On Dec 12, 2011, at 1:57 PM, Andy Weston wrote: > If I run "adb devices" from the command line, the list is empty. `adb kill-server`, then `adb start-server` If that doesn't help, perhaps this will? http://www.androidcentral.com/how-enable-adb-your-kindle-fire-windows Thanks, - Jon __

[mono-android] Running devices

2011-12-12 Thread Andy Weston
I'm trying to debug a hello world app on my Kindle Fire but when I deploy, I'm not seeing the device in the list of running devices. If I run "adb devices" from the command line, the list is empty. USB appears to be working, I see the device as drive f: and I can copy files there. WiFi appears to

Re: [mono-android] SimpleCursorAdapter & Managed Query

2011-12-12 Thread Jonathan Pryor
On Dec 10, 2011, at 12:13 AM, Nathan Blevins wrote: > I had simple example that worked a few interations before the latest drop of > Mono for Android. Basically, I have a class that queries the Booksmarks > content provider and then adds those to a Simple Cursor Adapter. ... > Whenever I attempt

Re: [mono-android] UnauthorizedAccessException after upgrading to ver 4.0

2011-12-12 Thread Jonathan Pryor
On Dec 10, 2011, at 5:24 PM, DocM wrote: > I'm getting the following error when I run my app: > > System.UnauthorizedAccessException: Access to the path > "/data/data/mfaFieldMetrix.mfaFieldMetrix/files/fieldmetrix.db3" is denied. This is a bug: http://bugzilla.xamarin.com/show_bug.cgi?id=2440

[mono-android] Saving a log file and attaching to an e-mail

2011-12-12 Thread Neal Culiner
Hello MfA devs, I have a routine just like I use in MonoTouch (and works) that writes info such as exception to a log file. private static void WriteToLog(string msg) { #if DEBUG Android.Util.Log.Info("LOGBOOK PRO", msg); #endif

Re: [mono-android] System.NotSupportedException with ArrayAdapter of custom object

2011-12-12 Thread Tomasz Cielecki
I do not think all classes derive from Java.Lang.Object... Maybe someone else should enlighten us? On Mon, Dec 12, 2011 at 5:27 PM, milop wrote: > Hi, Tomasz. Thanks for replying. > > Sure I can do that, but I'd like to know what changed from version 1.2 to > version 4.0 that causes the same, pre

Re: [mono-android] System.NotSupportedException with ArrayAdapter of custom object

2011-12-12 Thread milop
Hi, Tomasz. Thanks for replying. Sure I can do that, but I'd like to know what changed from version 1.2 to version 4.0 that causes the same, previously acceptable, code to now fail. I didn't have to implement it before. And, shouldn't everything in MonoDroid implicitly derive from Java.Lang.Objec

Re: [mono-android] MapView exception

2011-12-12 Thread Tomasz Cielecki
The zoom will work as slow as your Internet connection on your mobile phone. There is a property called MaxZoomLevel on the MapView you might want to look at... On Fri, Dec 9, 2011 at 9:56 AM, laurar81 wrote: > Tanks Jonathan. > The MapView mapView = FindViewById(Resource.Id.mapview1) Cast > wor

Re: [mono-android] Backwards compatibility? (Android.App.Application)

2011-12-12 Thread gramlin
*sigh* Didn't see that it was a completely different error than before... -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Backwards-compatibility-Android-App-Application-tp5065556p5068236.html Sent from the Mono for Android mailing list archive at Nabble.com. _

Re: [mono-android] Backwards compatibility? (Android.App.Application)

2011-12-12 Thread gramlin
Thanks DocM.. That gets it through compilation, though in the emulator it crashes straight away; I/mono-stdout( 825): [AppDelegate] deserialize2:3389.849 I/mono-stdout( 825): [Conf] LoadWhatsOn I/mono-stdout( 825): [AppDelegate] deserialize2+unpack:3956.776 I/MonoDroid( 825): UNHANDLED EXCEPTI

[mono-android] Backwards compatibility? (Android.App.Application)

2011-12-12 Thread gramlin
I am pretty new to monodroid compared to monotouch which I've been using for quite some time, so bear with me if this is a somewhat stupid/newbie question. I've been trying to compile older sample code and projects with latest versions of monodroid, but end up with problems like; "The type `And

Re: [mono-android] Mono for Android 4 - Constructor injection causes packaging failure.

2011-12-12 Thread SpiritMachine
This looks similar too some other packaging issues outstanding that might have to do with generics and/or abstract classes. More info; this is what my ProcessLogin class inherits from: public abstract class AsyncCommand : AsyncTask, IContextSetter, ICallbackSetter { protected

[mono-android] Android application Crash unexpectedly on device using release version

2011-12-12 Thread pankaj1606
I have purchased mono for android. I have build the android application in release version, but I am getting the following error on device (android version 2.2), *The application has stopped unexpectedly. Please try again.* Android version 2.2 IDE : Visual Studio 2010 -- View this message

Re: [mono-android] MapView exception

2011-12-12 Thread laurar81
Tanks Jonathan. The MapView mapView = FindViewById(Resource.Id.mapview1) Cast work!!! I take this opportunity to ask you: Map zoom is so slow! The streets become black. is there a way to set highest level zoom? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/MapView

Re: [mono-android] MapView exception

2011-12-12 Thread laurar81
Example https://github.com/Cheesebaron/MonoDroid.GoogleMapsDemo/blob/master/MapActivity.cs does not work in MyItemizedOverlay. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/MapView-exception-tp5054906p5061114.html Sent from the Mono for Android mailing list archiv

[mono-android] Fwd: FW: Issue 223 in droiddraw: Command line option to load layout

2011-12-12 Thread Miljenko Cvjetko
Hi Just FYI I have filled nice-to-have for DroidDraw: command line opts for loading .axml files (for VS integration) It seems this will come out in next release!! greetings mel Original Message Subject:FW: Issue 223 in droiddraw: Command line option to load layout

Re: [mono-android] System.NotSupportedException with ArrayAdapter of custom object

2011-12-12 Thread Tomasz Cielecki
The exception says ArrayAdapter expects a Java.Lang.Object, which means your object should implement it. The object you receive is a serialized object which you then deserialize and use? If you can't change that on the server side I guess you would have to wrap it up inside a helper class of some