Re: [mono-android] MonoDroid 4 Can NOT Packaging Successfully

2011-12-08 Thread cb
I checked again and find the real reason for this is because the path of the solutions contains space char or any other non-ASCII chars. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/MonoDroid-4-Can-NOT-Packaging-Successfully-tp5060714p5060845.html Sent from the M

[mono-android] MonoDroid 4 Can NOT Packaging Successfully

2011-12-08 Thread cb
After have installed the OS of my PC for 4 times, finally I find and confirmed this bug. Envirement: Win7 x64 + VS 2010 1. I have a virtual PC with MonoDroid 4 installed, and everything goes well. 2. For my real PC, "Hello Word" demo can work correctlly. 3. Create a solution with two project one is

Re: [mono-android] System.IO.DirectoryInfo.EnumerateFiles() not working on external directory

2011-12-08 Thread Atsushi Eno
Hello, I also experienced the same EnumerateFiles() issue when I was using mfa in my app. I workarounded it by using GetFiles() instead, which somehow worked. https://github.com/atsushieno/falplayer-android/blob/master/MainActivity.cs#L53 Interestingly, when I tried directory listing using dire

[mono-android] Xamarin Mobile API Preview 0.2

2011-12-08 Thread Eric Maupin
Today we are releasing the next preview of the Xamarin.Mobile library. This version contains our cross-platform Contacts APIs for both Mono for Android and MonoTouch (Windows Phone 7 will be added in a future release). This version of the cross-platform contacts API is read-only. We expect an upco

Re: [mono-android] System.IO.DirectoryInfo.EnumerateFiles() not working on external directory

2011-12-08 Thread HSSoftware
I tried using both .Net and Java: private void Test(String folderName) { System.IO.DirectoryInfo dirN = new System.IO.DirectoryInfo(folderName); System.IO.FileInfo[] filesN; Java.IO.File dirJ = new Java.IO.File(folderName); Java.IO.File[] fil

Re: [mono-android] System.IO.DirectoryInfo.EnumerateFiles() not working on external directory

2011-12-08 Thread Jonathan Pryor
On Dec 8, 2011, at 3:28 PM, HSSoftware wrote: > I had code working using DirectoryInfo.Enumerate files on a directory within > the internal partition on a Kindle Fire. I'm going to guess that the permissions on the directory forbid enumerating the files, which is why neither EnumerateFiles() nor

Re: [mono-android] System.IO.DirectoryInfo.EnumerateFiles() not working on external directory

2011-12-08 Thread HSSoftware
H, this doesn't work either! dirJ.ListFiles returns a zero length array. Java.IO.File dirJ; Java.IO.File[] filesJ; dirJ = new Java.IO.File(folderName); filesJ = dirJ.ListFiles(); -- View this message in context: http://mono-for-android.1047100

[mono-android] System.IO.DirectoryInfo.EnumerateFiles() not working on external directory

2011-12-08 Thread HSSoftware
I had code working using DirectoryInfo.Enumerate files on a directory within the internal partition on a Kindle Fire. We switched to using a directory in the external partition, and we do indeed have files in the directory (DDMS agrees), but EnumerateFiles indicates no files? I am going to look in

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

2011-12-08 Thread Jonathan Pryor
On Dec 7, 2011, at 4:33 PM, SpiritMachine wrote: > After upgrading to the latest MonoDroid, packaging the app fails and I get > the following in the output: This is a bug which will be fixed in the next release. Thanks, - Jon ___ Monodroid mailing li

Re: [mono-android] Using MySQL Connector

2011-12-08 Thread Jonathan Pryor
On Dec 8, 2011, at 12:09 PM, Vladimir Dimitrov wrote: > No I am using the compiled .dll, but it is a stripped down version of the > original connector which references only mscorlib, System and System.Data > versions 2.0 so I hope mono got all of this implemented long time ago. _Mono_ has, but the

Re: [mono-android] output library file for general Android app development use

2011-12-08 Thread Jonathan Pryor
On Dec 7, 2011, at 1:30 AM, lynnlu wrote: > I realize that monodroid can generate > http://docs.xamarin.com/android/advanced_topics/architecture/android_callable_wrappers > ACW which is needed for Android runtime, does that mean, it actually > generate some Java code (and maybe I can take that an

Re: [mono-android] Using MySQL Connector

2011-12-08 Thread Vladimir Dimitrov
No I am using the compiled .dll, but it is a stripped down version of the original connector which references only mscorlib, System and System.Data versions 2.0 so I hope mono got all of this implemented long time ago. Regarding linking looks like the best option so far is to set linking to SDK on

Re: [mono-android] MapView exception

2011-12-08 Thread Jonathan Pryor
On Dec 7, 2011, at 4:01 AM, laurar81 wrote: > In OnCreate find the mapview1 but the cast MapView is invalid exception: > > MapView mapView = (MapView)FindViewById(Resource.Id.mapview1) > > This is the errore message: > > Message "Cannot cast from source type to destination type." strin

Re: [mono-android] SocketError.TimedOut

2011-12-08 Thread Jonathan Pryor
On Dec 8, 2011, at 5:40 AM, tsukrov wrote: >> Or are you testing on different devices with different Android versions, > and it only fails on the Acer A500 running Android v3.2? > > Yup. My co-worker allegedly could not reproduce the bug on Xoom with 3.1. > It's easy to reproduce by me. We have

Re: [mono-android] Cannot Deply Android App from Visual Studio 2010 and MonoDevelop 2.8.4.2 to AVD

2011-12-08 Thread Andreia Gaita
Hi, On Thu, Dec 8, 2011 at 1:59 PM, Cracksoldier wrote: > Today I tried the Evaluation Version of "Mono for Android" But everytime I > try to > deploy the Test Application(just the source code of a new Projekt without > any changes) > but everytime I get this error. > > When I try do deploy the A

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

2011-12-08 Thread Jonathan Pryor
Sending a message to the monodroid@lists.ximian.com mailing list would be better. On Dec 8, 2011, at 8:08 AM, ami.mishr...@gmail.com wrote: > I am running the basic ( default monodroid application, where button count is > shown on it on successive clicks). I have pasted the logcat after mail's t

Re: [mono-android] Using MySQL Connector

2011-12-08 Thread Jonathan Pryor
On Dec 8, 2011, at 7:49 AM, Vladimir Dimitrov wrote: > I am experimenting with the mysql.data.cf.dll version of the connector which > is trimmed down version for Pocket PCs, Are you building this from source? Or using an assembly built against the Compact Framework? If you're not building from

Re: [mono-android] DatePicker events

2011-12-08 Thread Jonathan Pryor
On Dec 7, 2011, at 3:48 PM, Paul F. Johnson wrote: > I know TimePicker has it's own events, but there doesn't seem to be > anything similar for DatePicker. Is this just some omission or is it not > in the Java layer? It's not in the Java layer, as discussed previously: http://lists.ximian

Re: [mono-android] Using MySQL Connector

2011-12-08 Thread Vladimir Dimitrov
Thanks Josh, Yes in fact the Fast Deploy option when turned off stopped that exception. Now I have another problem . the -skiplink option does not stop the linker from linking the classes inside the MySql.Data.CF.dll which results in other exceptions coming from it when linking is enabled. Any

Re: [mono-android] UrlEncoding in Monodroid

2011-12-08 Thread Tomasz Cielecki
It is in System.Web.Services. On Thu, Dec 8, 2011 at 3:40 PM, klimaye wrote: > I ended up finding Java.Net.UrlEncoder to do the job. > > Interestingly, when I go to add references, I do not see System.Web as one > of the .Net options. > > -- > View this message in context: > http://mono-for-andr

Re: [mono-android] UrlEncoding in Monodroid

2011-12-08 Thread klimaye
I ended up finding Java.Net.UrlEncoder to do the job. Interestingly, when I go to add references, I do not see System.Web as one of the .Net options. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/UrlEncoding-in-Monodroid-tp5058866p5058982.html Sent from the Mono

Re: [mono-android] MonoDevelop updater problem.

2011-12-08 Thread Wally McClure
Exact same error here. I do the exact same thing to get the updates. Wally > Date: Thu, 8 Dec 2011 01:14:25 -0800 > From: jimi...@gmail.com > To: monodroid@lists.ximian.com > Subject: [mono-android] MonoDevelop updater problem. > > Since Mono for Android 4.0 was released, the MonoDevelop update

Re: [mono-android] UrlEncoding in Monodroid

2011-12-08 Thread Roy Goode
System.Web.HttpUtility is available in both MonoTouch and Mono for Android (it's just not the full namespace) http://androidapi.xamarin.com/monodoc.ashx?link=T%3aSystem.Web.HttpUtility On 8 December 2011 14:02, klimaye wrote: > Since System.Web is unavailable, how does one encode urls? > > Do fo

[mono-android] UrlEncoding in Monodroid

2011-12-08 Thread klimaye
Since System.Web is unavailable, how does one encode urls? Do folks pull in the HttpUtility class from mono library or roll their own implementation or grab from some other place? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/UrlEncoding-in-Monodroid-tp5058866p5

Re: [mono-android] Using MySQL Connector

2011-12-08 Thread Josh Handel
I would suggest putting a middle ware between your app and your DB.. Throw a simple RESTful service between your mobile device and your MySQL DB.. This will increase security, give you a clean separation of concerns and increase the performance of your mobile app by decreasing the communications

[mono-android] Cannot Deply Android App from Visual Studio 2010 and MonoDevelop 2.8.4.2 to AVD

2011-12-08 Thread Cracksoldier
Today I tried the Evaluation Version of "Mono for Android" But everytime I try to deploy the Test Application(just the source code of a new Projekt without any changes) but everytime I get this error. The code is this: Begin Code= using System;

[mono-android] Using MySQL Connector

2011-12-08 Thread Vladimir Dimitrov
Hey guys, I am trying to figure out what is the best way to connect to a MySQL server from the Mono Android app I am creating. I had mixed success before. I am experimenting with the mysql.data.cf.dll version of the connector which is trimmed down version for Pocket PCs, so it gets less depende

Re: [mono-android] Build fails with Mono 4.0

2011-12-08 Thread tsukrov
Hm. Reinstalled Mono4. Works fine now. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Build-fails-with-Mono-4-0-tp5050479p5058514.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mail

Re: [mono-android] SocketError.TimedOut

2011-12-08 Thread tsukrov
> Or are you testing on different devices with different Android versions, and it only fails on the Acer A500 running Android v3.2? Yup. My co-worker allegedly could not reproduce the bug on Xoom with 3.1. It's easy to reproduce by me. Same WLAN network, same build. Need to investigate further

[mono-android] MonoDevelop updater problem.

2011-12-08 Thread dtavlikos
Since Mono for Android 4.0 was released, the MonoDevelop updater throws an exception at startup: http://mono-for-android.1047100.n5.nabble.com/file/n5058157/md_error_2.png Here is the message log: http://mono-for-android.1047100.n5.nabble.com/file/n5058157/md_error.png The updater window seem

Re: [mono-android] MapView exception

2011-12-08 Thread Tomasz Cielecki
I suggest you to check out the MapsDemo in the samples on github: https://github.com/xamarin/monodroid-samples/tree/master/MapsDemo I am not sure if you can get the MapView like that, so an alternative method would be to instantiate it yourself, which isn't that hard. I have a sample I made for 1