[mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread Andrew Johnson
Hi, I'm having a problem with subclassing AsyncTask<>. I think this may be related to a known Mono for Android bug. I have a class that subclasses AsyncTask<> and implements RunInBackground() and OnPostExecute(). This compiles and deploys, but a release build fails at run time (on emulator or rea

[mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Andrew Johnson
I have some coden that does an HttpWebRequest to a remote web server. A debug build works correctly in the emulator, but a release build consistently throws a WebException containing the message 'NameResolutionFailure'. The exception is thrown when I call GetResponse() on the HttpWebRequest object,

Re: [mono-android] Installation fails on Windows 7

2012-03-22 Thread jessecha
Hi all, I too have the same issue. Anyone knows how to solve this? [2012-03-22 08:55:01.549] [Info] Installation ID: b2e0f4b0-b663-498b-8bc9-41d162c3ab77 [2012-03-22 08:55:01.549] [Info] Operating system: Windows 7 v6.1.7601.65536 ( (Service Pack 1); Microsoft Windows NT 6.1.7601 Service Pack 1

[mono-android] Folder for Misc Items

2012-03-22 Thread Nosh
Hi All Just want to know which folder is the best place to hold my Apps miscellaneous files such as text or XML. Also SqlLite Database Thanks -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Folder-for-Misc-Items-tp5585221p5585221.html Sent from the Mono for Androi

Re: [mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread Brannon King
I was also unable to successfully use the AsyncTask<> class. The method overrides weren't resolving correctly for me. However, the .Net task library did work fine. And I like that approach better because it's more cross-platform friendly. -Original Message- From: monodroid-boun...@lists.x

Re: [mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread andyjohnson0
Hi, I was using AsyncTask<> beccause it is safe to access the user interface in the post execute method [1]. This this also true for the .net task library classes? Andy [1] http://developer.android.com/guide/topics/fundamentals/processes-and-threads.html -- View this message in context: http:/

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 9:10 AM, Andrew Johnson wrote: > My AndroidManifest.xml contains android:name="android.permission.INTERNET" /> and its build action is Content. This is incorrect. The Build action should be None. Furthermore, edit your .csproj and confirm that it contains the following XML fr

Re: [mono-android] Testing for a network connection

2012-03-22 Thread Jonathan Pryor
On Mar 21, 2012, at 8:16 PM, Paul Johnson wrote: > The emulator in either release or debug is showing nothing untoward other > than SQLite going a bit odd... Unfortunately, I think you'll need to file a bug and attach your project. :-( - Jon ___ Mono

[mono-android] book finally shipping

2012-03-22 Thread Wally McClure
I tend to get emails every so often asking about our Mono for Android book. According to the Amazon.com web site, they have received their copies and are beginning to deliver them. If you have had a preorder for the past 10 months, you should get your copy fairly soon. If you are wonderin

Re: [mono-android] Writing to the external SD card

2012-03-22 Thread Jonathan Pryor
On Mar 21, 2012, at 8:19 PM, Paul Johnson wrote: > On closer examination, external contains nothing. Is this what it should > contain and if it isn't, does anyone have an example of how to set up a > directory on the SDCard I could have a look-see at? > > var external = GetExternalFilesDir(null)

Re: [mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 11:03 AM, andyjohnson0 wrote: > I was using AsyncTask<> beccause it is safe to access the user interface in > the post execute method [1]. This this also true for the .net task library > classes? The TPL runs on threadpool threads, so NO, it isn't safe to access the user inter

Re: [mono-android] book finally shipping

2012-03-22 Thread Dimitris Tavlikos
Great job Wally! Waiting for the Kindle version myself...! Dimitris Tavlikos Software Developer Author of "iOS Development using MonoTouch Cookbook" Email: jimi...@gmail.com Twitter: http://twitter.com/#!/dtavlikos Blog: http://software.tavlikos.com On 22 Mar 2012, at 5:22 PM, Wally McClu

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread andyjohnson0
Hi Jonathan, Thanks for the response. I changed the build action to None, unloaded the project, added the line you suggested using notepad, and re-loaded. The application compiles okay but I get a deployment error - see http://pastebin.com/rCHri1ih for the output. Before adding the line I checke

Re: [mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread andyjohnson0
Jonathan, That's what I though. Thanks for the code frag - I don't think I'd have thought of that. For now I'm using the non-generic version of AsyncTask with some extra casts. A bit messy but it works. Is is possible to say whether the problem I have encountered the same as the one described in

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 11:37 AM, andyjohnson0 wrote: > I'd be grateful for any suggestions. I have no idea what's breaking, or why. :-( I would suggest creating a new project, adding your sources to it, and trying with the new project. I'm also wondering how you managed to break the current projec

Re: [mono-android] book finally shipping

2012-03-22 Thread Wally McClure
Thanks for the kind words! This reminds me that there is a GREAT MonoTouch Cookbook that shipped back in December. Wally > From: jimi...@gmail.com > Date: Thu, 22 Mar 2012 17:32:20 +0200 > To: monodroid@lists.ximian.com > Subject: Re: [mono-android] book finally shipping > > Great job Wally!

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-22 Thread GigaNTes
Thank you. The main staff is C# developers. I tried to run our application (written on pure C#) in Xamarin environment. The classes that were not accepted are from System.Drawing namespace. I added OpenTK to project (as you adviced). But I cannot understand is it posible to use Color, Point, Rectan

Re: [mono-android] profiling support in monodroid?

2012-03-22 Thread mcleodia
Cracked it! Need to run the software media renderer on a separate machine to get a reproducible crash on mac v2.10.9. Should happen fairly quickly. Repro app, crash dumps and notes submitted as bug 4033: https://bugzilla.xamarin.com/show_bug.cgi?id=4033 Cheers Iain -- View this message in cont

Re: [mono-android] namespace System.Drawing in Xamarin API

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 12:24 PM, GigaNTes wrote: > But I cannot understand is it posible to use Color, Point, Rectangle, Size > classes (supplied by OpenTK) My guess is that what you _really_ want is System.Drawing.Graphics, which has all the methods for drawing in .NET (and in turns uses Color, Po

[mono-android] r17

2012-03-22 Thread Wally McClure
Does mfa work with r17? Anyone tried this? I was thinking of pulling the trigger on my mac. Wally ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailma

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread andyjohnson0
If I take the Properties\AndroidManifest.xml line out of the oroginal project file then it builds and deploys without error. I created a new project as you suggested, added a manifest using (project)->Properties->Android Manifest->Create Manifest, added the original source files and axml files (

Re: [mono-android] r17

2012-03-22 Thread Marek Habersack
On 2012-03-22 17:43, Wally McClure wrote: Does mfa work with r17? Anyone tried this? I was thinking of pulling the trigger on my mac. I tried it, worked fine marek ___ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http

Re: [mono-android] Installation fails on Windows 7

2012-03-22 Thread Marek Habersack
On 2012-03-22 09:55, jessecha wrote: Hi all, Hi, I too have the same issue. Anyone knows how to solve this? It's a known issue with the current version of the installer on Windows 7 64-bit. A new one is in testing and will be released soon. In the meantime, please mail supp...@xamarin.com fo

Re: [mono-android] NameResolutionFailure in release build only

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 1:25 PM, andyjohnson0 wrote: > I created a new project as you suggested, added a manifest using > (project)->Properties->Android Manifest->Create Manifest, added the > original source files and axml files (but not the original manifest). It > compiles okay but doesn't deploy. S

Re: [mono-android] Folder for Misc Items

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 5:37 AM, Nosh wrote: > Hi All Just want to know which folder is the best place to hold my Apps > miscellaneous files such as text or XML. Also SqlLite Database Thanks I don't think that we have general guidance, it's a bit of an "It depends" problem space. It could also use

Re: [mono-android] AsyncTask<> stub generation bug

2012-03-22 Thread Jonathan Pryor
On Mar 22, 2012, at 7:01 AM, Andrew Johnson wrote: > I'm having a problem with subclassing AsyncTask<>. I think this may be > related to a known Mono for Android bug. It's a bug in the linker/class library: https://bugzilla.xamarin.com/show_bug.cgi?id=4040 The workaround is to also over

[mono-android] How do you start and Activity in c#

2012-03-22 Thread james smoot
I am having a hard time getting a Activity to start in Mondroid using C# "oneActivity1" is the active Activity I want to start twoActivity which extends listActivity I want to use "Intent" so I can return a number from the list The problem is I can't find demo code in *C#* Thanks! __

Re: [mono-android] How do you start and Activity in c#

2012-03-22 Thread Craig Dunn
Hope this helps: * in *oneActivity* ** START THE NEW Activity SOMEWHERE var intent = new Intent(); intent.SetClass(this, typeof(twoActivity)); StartActivityForResult(intent, 1); AND protected override void OnActivityResult(int requestCode, ResultresultCode, Intent data) { if (requestCode == 1) {