[mono-android] "leave the following resource extensions uncompressed"

2011-12-14 Thread warren burch
in the Application properties tab does not appear to work. I have an XNB which is over 1Mb (problems uncompressing on Android 2.1) I wish for aapt to not compress XNB files. In the edit control on the project Application properties page called 'Leave the following resource extensions uncompressed"

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

2011-12-14 Thread DocM
Thanks Jon. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/UnauthorizedAccessException-after-upgrading-to-ver-4-0-tp5065129p5073883.html Sent from the Mono for Android mailing list archive at Nabble.com. ___ Monodroid mai

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

2011-12-14 Thread DocM
The 'NullReferenceException' error in serialization almost always means there is a constructor missing somewhere in the object graph. If you are deserializing an object it is probably worthwhile to go through the member objects and check they all have explicit constructors. -- View this message in

[mono-android] OpenFileOutput Exception Mono 4.0

2011-12-14 Thread Susanne
Hey everybody, I'm working with a XMLSerializer and need to use the OpenFileOutput function within the Context. Since Mono 4.0 I always get an exception (System.NullReferenceException) here, which was not thrown in the old version. I think in the old version the file was created automatically,

Re: [mono-android] Samples that works with the latest Monodroid release

2011-12-14 Thread davthomas
Just tried emulators for API levels 14 GLTriangle20 does not work, same problem. Perhaps I did something wrong, any feedback from other users? Using the latest Mono 4.0.1. Thanks. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Samples-that-works-with-the-latest-Mon

Re: [mono-android] HTTPS Communication fails after update to 4.0

2011-12-14 Thread subsembly
Hi, I am testing with an LG Optimus One and an LG Optimus 2X (both with Gingerbread). The error occurs, for example, when accessing the PayPal NVP API at "https://api-3t.paypal.com/nvp";. I am using HttpWebRequest via WebRequest.Create(sUrl). Thank's for your support. -- View this message in c

Re: [mono-android] Populate Spinner from DataTable

2011-12-14 Thread troadie
This might help. I am having trouble returning a datatable from a web service could you post some code to help me? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Populate-Spinner-from-DataTable-tp4370301p5074271.html Sent from the Mono for Android mailing list arc

Re: [mono-android] Populate Spinner from DataTable

2011-12-14 Thread milop
Troadie, Consume it like you would normally: Add a web reference to your project, call it MyWebService: using (MyWebService ws = new MyWebService()) { DataTable dt = ws.SomeFunction(); // Now use the datatable. } Does this

[mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Our current apk size is around 5 MB, thought most of that must be mono as during debug the app size is less than 1 MB. Wanted to know if there were plans to reduce the apk size even further. Also, is there a certain legitimate boundary beyond which the apk size cannot be reduced further since we

Re: [mono-android] Populate Spinner from DataTable

2011-12-14 Thread troadie
Thanks for the help, the code you have posted is exactly what I was doing but I was returning a strongly typed DataTable which it didn't seem to like, I've now changed it and the error has gone but I will also now return a DataSet as you have suggested. Thanks again. -- View this message in conte

Re: [mono-android] Populate Spinner from DataTable

2011-12-14 Thread troadie
I've just noticed I can't see a link in my first reply to you, I must have forgot to add it, the link is http://www.katr.com/article_android_spinner01.php http://www.katr.com/article_android_spinner01.php hope it helps. -- View this message in context: http://mono-for-android.1047100.n5.nabble.

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

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 3:42 AM, DocM wrote: > If you are deserializing an object it is probably worthwhile to go through > the member objects and check they all have explicit constructors. An explicit constructor won't prevent the linker from removing it. A [Preserve] attribute on an explicit const

Re: [mono-android] Samples that works with the latest Monodroid release

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 5:34 AM, davthomas wrote: > Just tried emulators for API levels 14 > GLTriangle20 does not work, same problem. >From my previous message: AndroidGameView/OpenGL is also known to be _really_ flaky on the API level. Let me elaborate: AndroidGameView is known to not wor

Re: [mono-android] "leave the following resource extensions uncompressed"

2011-12-14 Thread Jonathan Pobst
Looks like a typo crept into one of our changes. If you open up your .csproj and find this line: .log Copy/paste and change it to: .log Then reopen and rebuild your project and it should work. This will be fixed for the next release. I apologize for the inconvenience, Jonathan On 12/14/201

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 9:00 AM, klimaye wrote: > Our current apk size is around 5 MB, thought most of that must be mono as > during debug the app size is less than 1 MB. > > Wanted to know if there were plans to reduce the apk size even further. 4.0 introduced an improved linker over 1.2.0, decreas

[mono-android] Tutorials problem

2011-12-14 Thread Tom
I cannot run this sample http://docs.xamarin.com/android/tutorials/User_Interface/form_elements/edit_text Error CS0079: The event 'Android.Views.View.KeyPress' can only appear on the left hand side of += or -= (CS0079) (CustomButton) How to resolve this ? thanks. -- View this message in context

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Tom Opgenorth
Just curious, with the the fact that devices are getting more and more memory, how many people still see the APK size as an issue going forward? On Wed, Dec 14, 2011 at 08:59, Jonathan Pryor wrote: > On Dec 14, 2011, at 9:00 AM, klimaye wrote: > > Our current apk size is around 5 MB, thought mos

Re: [mono-android] Tutorials problem

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 10:56 AM, Tom wrote: > I cannot run this sample > http://docs.xamarin.com/android/tutorials/User_Interface/form_elements/edit_text > > Error CS0079: The event 'Android.Views.View.KeyPress' can only appear on the > left hand side of += or -= (CS0079) (CustomButton) Sorry, that

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 11:37 AM, Tom Opgenorth wrote: > Just curious, with the the fact that devices are getting more and more > memory, how many people still see the APK size as an issue going forward? You need to care somewhat, as there is a maximum .apk size of 50MB for deployment via the Androi

Re: [mono-android] "leave the following resource extensions uncompressed"

2011-12-14 Thread warren burch
That did the trick. Thanks Jon Sent from my Windows Phone -- From: Jonathan Pobst [via Mono for Android] Sent: 12/14/2011 7:54 AM To: warren burch Subject: Re: "leave the following resource extensions uncompressed" Looks like a typo crept into one of our changes. If y

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, I checked my options and On the app I have Linking set to SDK and User assemblies. On the mono class library : I also have it set to the above. Here is the split from bin/release: a. APK size : 5.4 MB b. class lib (dll) size : 51 kb c. app (dll) size

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Tom Opgenorth
Yup, have N1 myself (for the time being anyway) so well aware of that and the market limits. But looking forward, as I see devices getting "bigger", I wonder if people will be as concerned about APK size. On my ADP1 I used to be down right fanatical about it, on my N1 less so (especially with th

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Jonathan Pobst
The .apk is simply a zip file. Rename your .apk to .zip, and you can see exactly what's inside it. Jonathan On 12/14/2011 11:06 AM, klimaye wrote: > Jon, > > I checked my options and > > On the app I have Linking set to > > SDK and User assemblies. > > On the mono class library : I also have

[mono-android] Sending information to a MySQL server from an android app

2011-12-14 Thread Paul F. Johnson
Hi, I'm shortly going to *try* and develop an application for a company that will send information to a MySQL server as well as receive information requested from the server. Normally on a C# app I can either use ADO.NET standard connectors or Connector.NET from the MySQL bods. Are either of thes

Re: [mono-android] OpenFileOutput Exception Mono 4.0

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 4:32 AM, Susanne wrote: > I'm working with a XMLSerializer and need to use the OpenFileOutput function > within the Context. > > Since Mono 4.0 I always get an exception (System.NullReferenceException) > here, which was not thrown in the old version. Are you running this on

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 12:06 PM, klimaye wrote: > Here is the split from bin/release: > > a. APK size : 5.4 MB > b. class lib (dll) size : 51 kb > c. app (dll) size: 179 kb > d. Newtonsoft.Json.Monodroid.dll size: 358KB Which version of Mono for Android is this? Th

Re: [mono-android] Sending information to a MySQL server from an android app

2011-12-14 Thread Tom Opgenorth
Probably not the answer you want to hear, but the general advice on this sort of stuff is to use a web service or some sort of RESTful service to handle these concerns, as opposed to talking to the DB directly. That said, I'd be curious to hear if Connector.NET would work. :) On Wed, Dec 14, 201

[mono-android] Third party assemblies not found wehn deploying

2011-12-14 Thread eshy
Hi, I created two projects, a core project where I make server calls and the android app project which refernces the core project. In the core project, I reRestSharp and Newtonsoft.Json (monodroid versions of both) Everything builds fine but when I tried to deploy to a device, I get the following

Re: [mono-android] Sending information to a MySQL server from an android app

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 12:19 PM, Paul F. Johnson wrote: > Normally on a C# app I can either use ADO.NET standard connectors or > Connector.NET from the MySQL bods. Are either of these available for > monodroid or will I need to port Connector.NET so I can send/receive to > the server? You'll need to

Re: [mono-android] Third party assemblies not found wehn deploying

2011-12-14 Thread Jonathan Pobst
You will need to reference reRestSharp and Newtonsoft.Json in the app project as well, or else they do not end up in the final build. Jonathan On 12/14/2011 11:11 AM, eshy wrote: > Hi, > > I created two projects, a core project where I make server calls and the > android app project which refer

[mono-android] armeabi-v7a..is it being included?

2011-12-14 Thread Neal Culiner
I checked this option (and the other one, basic armeabi) but did not see my .apk size grow so I'm not sure it's packaging both in 4.0.1. How do I know? Neal Culiner NC Software, Inc. http://www.nc-software.com/ ___

Re: [mono-android] armeabi-v7a..is it being included?

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 1:08 PM, Neal Culiner wrote: > I checked this option (and the other one, basic armeabi) but did not see my > .apk size grow so I’m not sure it’s packaging both in 4.0.1. How do I know? Run `unzip -l your.apk`, it should contain the file lib/armeabi-v7a/libmonodroid.so. You

Re: [mono-android] Sending information to a MySQL server from an android app

2011-12-14 Thread Vladimir Dimitrov
Hello, Most of the people here will advise you to stay away from the connector. But at that point I have used the compact framework version of it without any problems. It has no specific dependences (mscorlib, System and System.Data) and works fine for me. Just make sure you add -linkskip (http://

Re: [mono-android] HTTPS Communication fails after update to 4.0

2011-12-14 Thread Jonathan Pryor
On Dec 14, 2011, at 5:52 AM, subsembly wrote: > I am testing with an LG Optimus One and an LG Optimus 2X (both with > Gingerbread). The error occurs, for example, when accessing the PayPal NVP > API at "https://api-3t.paypal.com/nvp";. As a sanity test, are you able to connect to that url from the

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread steven_pack
I definitely care about the size. It makes the app look bloated and it takes a long time to download. You have to remember the quality of networks varies wildly around the world too - I'm in Australia and it's not uncommon for me to be waiting for downloads over GPRS when I'm in a 3G deadzone. If

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, I am on 4.0.1. Here is the split I unziped the .apk and looked at the individual folders. Here is what I noticed. In my references I have the following dlls Mono.Android Mono.Data.Sqlite mscorlib Newtonsoft.Json.Monodroid System System.Core System.Data System.Json System.Xml System.Xml.lin

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread Jonathan Pobst
The 2.9 MB is the minimum for a hello world type application, which is what you see in your first list. Each additional feature you use will push this number up. In your second list, you have added code that uses more assemblies past the baseline: - Mono.Data.Sqlite - System.Data - System.Xml.L

Re: [mono-android] Application Size upon deployment

2011-12-14 Thread klimaye
Jon, Thanks for the response. I need to interact with the sqlite db, so I don't see how I can do without the System.Data and System.Data.Sqlite. The only part I can see where I could possibly make a change is the json parsing. The Newtonsoft dll requires System.xml as a dependency it seems. Wo

Re: [mono-android] Third party assemblies not found wehn deploying

2011-12-14 Thread eshy
That's what i thought based on the exception, so I added the references to both projects but I'm still getting the same exception. I'll try to add the actual source projects and reference them, maybe it's a compilation issue with restsharp.monodroid -- View this message in context: http://mono-fo

[mono-android] Bluetooth Chat sample

2011-12-14 Thread Frank Schmidberger
Hi, is there any chance that someone at Xamarin will migrate the Bluetooth Chat example that can be found at http://developer.android.com to monodroid? I did some experimenting in Java based on that example and it would help me a lot to get started with an app I plan to to do with monodroid havin