[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 real device). Logcat gives me the
following:

E/mono( 1446): Unhandled Exception: System.ArgumentException:
Couldn't bind to method
'GetDoInBackground_arrayLjava_lang_Object_Handler'.
E/mono( 1446):   at System.Delegate.GetCandidateMethod
(System.Type type, System.Type target, System.String method,
BindingFlags bflags, Boolean ignoreCase,
 Boolean throwOnBindFailure) [0x0] in :0
E/mono( 1446):   at System.Delegate.CreateDelegate (System.Type
type, System.Type target, System.String method, Boolean ignoreCase,
Boolean throwOnBindFailu
re) [0x0] in :0
E/mono( 1446):   at System.Delegate.CreateDelegate (System.Type
type, System.Type target, System.String method) [0x0] in :0
E/mono( 1446):   at Android.Runtime.JNIEnv.RegisterJniNatives
(IntPtr typeName_ptr, Int32 typeName_len, IntPtr jniClass, IntPtr
methods_ptr, Int32 methods_l
en) [0x0] in :0
E/mono( 1446):   at (wrapper delegate-invoke)
:invoke_intptr__this___intptr_intptr_string_string
(intptr,intptr,string,string)
E/mono( 1446):   at Android.Runtime.JNIEnv.GetMethodID (IntPtr
kls, System.String name, System.St
D/Zygote  (   33): Process 1446 exited cleanly (1)

This looks like a known bug filed at
https://bugzilla.novell.com/show_bug.cgi?id=690048 and also (later?)
at https://bugzilla.xamarin.com/show_bug.cgi?id=1945. This seems to
have come out of discussion at
http://mono-for-android.1047100.n5.nabble.com/another-Java-versus-C-how-to-td4332736.html
involving
Jonathan Pryor.

I'm confused because the bug on the xamarin bugzilla is marked as
RESOLVED FIXED, but I'm seeing
it in monodroid 4.0.4 (win7/vs2010), which seems to be the latest version.

Is this fixed, or am I seeing a regression or just doing something
wrong? Any workaround?

Thanks,

Andy Johnson
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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, and only occurs in a
release build.

My AndroidManifest.xml contains  and its build action is
Content. I've tried restarting the emulator, and verified that other
applications running on the emulator (such as the web browser) can
access the internet and the remote web server.

I'm using Mono for Android 4.0.4 on Win7x86/VS2010.

Any thoughts on causes or things to try?

Thanks,

Andy
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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), 64-bit
[2012-03-22 08:55:01.550] [Info] Installer version: 2.0.0.9
[2012-03-22 08:55:01.550] [Info] Status: in progress
[2012-03-22 08:55:01.551] [Debug] Manifest retrieval task starting.
[2012-03-22 08:55:01.551] [Info] Retrieving installation manifest.
[2012-03-22 08:55:01.551] [Info] Downloading from
'http://xamarin.com/download/installer/Windows/MonoForAndroid/InstallationManifest.xml'.
[2012-03-22 08:55:03.652] [Debug] Waiting for manifests to finish
downloading.
[2012-03-22 08:55:04.652] [Debug] Constructing detection UI.
[2012-03-22 08:55:04.652] [Debug] Manifests retrieved.
[2012-03-22 08:55:04.652] [Info] Determining list of software items to
install.
[2012-03-22 08:55:04.653] [Debug] Processing update nodes from the manifest.
[2012-03-22 08:55:04.653] [Info] Waiting for detection to finish
[2012-03-22 08:55:04.653] [Info] Detection complete
[2012-03-22 08:55:04.653] [Info] Component detection complete
[2012-03-22 08:55:04.654] [Debug] Download service starting.
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'Java JDK'
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'Android SDK'
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'GTK#'
[2012-03-22 08:55:04.655] [Debug] Creating and initializing software item
'MonoDevelop'
[2012-03-22 08:55:04.655] [Debug] Creating and initializing software item
'Mono for Android'
[2012-03-22 08:55:04.755] [Debug] Detection completed.
[2012-03-22 08:55:04.767] [Info] No software needs to be installed.
[2012-03-22 08:55:04.768] [Info] Status: successful


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Installation-fails-on-Windows-7-tp144p5585136.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 Android mailing list archive at Nabble.com.___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Andrew Johnson
Sent: Thursday, March 22, 2012 5:02 AM
To: monodroid@lists.ximian.com
Subject: [mono-android] AsyncTask<> stub generation bug

Hi,

I'm having a problem with subclassing AsyncTask<>. I think this may be
related to a known Mono for Android bug.

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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://mono-for-android.1047100.n5.nabble.com/AsyncTask-stub-generation-bug-tp5585496p5586632.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 fragment:

Properties\AndroidManifest.xml

I suspect it doesn't; if it doesn't contain the above fragment, you need to add 
it to the topmost :

 
http://schemas.microsoft.com/developer/msbuild/2003";>



Properties\AndroidManifest.xml




 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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 wondering about a Kindle 
version, I assume that is in the works, but I don't have any knowledge on that. 
 I would assume that other book sellers are getting their copies at this time 
and will soon be turning them around and shipping them out as well. I had a 
great group of people to work with.  They are all members of this mailing list. 
 Nathan Blevins, Jon Dick, John Croft, and Xamarin's own Chris Hardy.  I 
appreciate everything that they did as well as their patience.  I also 
appreciate the folks from Wrox.  Their patience and understanding can't be 
underestimated.  Jon Pryor and Jonathan Pobst were great and took everyone of 
my private emails corgially and didn't once scream at my idiocy.  Many thanks 
to Joseph Hill, Miguel, and Nat Friedman as well! If you haven't purchased a 
copy, please consider buying 8-10.  They will make great romantic gifts for 
that special occassion. Link: 
http://www.amazon.com/Professional-Android-Programming-Mono-NET/dp/1118026438/ref=sr_1_1?ie=UTF8&qid=1331508444&sr=8-1
 Now, I return you to your development efforts and will limit my next set of 
emails to the dumb questions that you are used to out of me. Wally  
  ___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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);
> if (!File.Exists(external + "\\myDir"))
> {
>   System.IO.Directory.CreateDirectory(external + "\\myDir");
> }

The above will not work like you want it to work. It only compiles because 
`anything + "string"` is equivalent to `anything.ToString() + "string"`, so:

string dir = external.ToString() + "\\myDir";
if (!File.Exists (dir)) ...

"Fortunately", Java.IO.File.ToString() returns File.AbsolutePath.

Unfortunately, File.AbsolutePath doesn't append a "/" for directories. The 
result is that `external + "\\myDir` is something like: 
/mnt/sdcard/Android/data/Scratch.ExternalStorage/files\mydir

Note that '\' isn't a directory separator char on Linux, it is in fact a 
perfectly valid filename character, so you'll be trying to create the directory 
"files\myDir".

Oddly, though, this works for me on the Xoom.

$ adb shell ls /mnt/sdcard/Android/data/Scratch.ExternalStorage
files
files\mydir

So I'm not sure why it fails for you, but it's certainly "weird", and further 
proof that "\\" should be avoided at all costs. Please use Path.Combine(), as 
jpobst suggested:

var dir = Path.Combine (external.AbsolutePath, "myDir");
if (!File.Exists (dir)) ...

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 
interface directly. So you invoke on the UI thread:

Task.Factory.StartNew(() => {
// ...
Android.App.Application.SynchronizationContext.Post(() => { /* 
update UI element here */ });
});

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 McClure wrote:

> 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 wondering about a 
> Kindle version, I assume that is in the works, but I don't have any knowledge 
> on that.  I would assume that other book sellers are getting their copies at 
> this time and will soon be turning them around and shipping them out as well.
>  
> I had a great group of people to work with.  They are all members of this 
> mailing list.  Nathan Blevins, Jon Dick, John Croft, and Xamarin's own Chris 
> Hardy.  I appreciate everything that they did as well as their patience.  I 
> also appreciate the folks from Wrox.  Their patience and understanding can't 
> be underestimated.  Jon Pryor and Jonathan Pobst were great and took everyone 
> of my private emails corgially and didn't once scream at my idiocy.  Many 
> thanks to Joseph Hill, Miguel, and Nat Friedman as well!
>  
> If you haven't purchased a copy, please consider buying 8-10.  They will make 
> great romantic gifts for that special occassion.
>  
> Link: 
> http://www.amazon.com/Professional-Android-Programming-Mono-NET/dp/1118026438/ref=sr_1_1?ie=UTF8&qid=1331508444&sr=8-1
>  
> Now, I return you to your development efforts and will limit my next set of 
> emails to the dumb questions that you are used to out of me.
>  
> Wally
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 checked that it wasn't already
present.

I'd be grateful for any suggestions.

Andy


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/NameResolutionFailure-in-release-build-only-tp5585824p5586900.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 your bugzilla? And is it currently unresolved?

Thanks,

Andy


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/AsyncTask-stub-generation-bug-tp5585496p5586916.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 project. It's very 
weird

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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!
> 
> 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 McClure wrote:
> 
> > 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 wondering about a 
> > Kindle version, I assume that is in the works, but I don't have any 
> > knowledge on that.  I would assume that other book sellers are getting 
> > their copies at this time and will soon be turning them around and shipping 
> > them out as well.
> >  
> > I had a great group of people to work with.  They are all members of this 
> > mailing list.  Nathan Blevins, Jon Dick, John Croft, and Xamarin's own 
> > Chris Hardy.  I appreciate everything that they did as well as their 
> > patience.  I also appreciate the folks from Wrox.  Their patience and 
> > understanding can't be underestimated.  Jon Pryor and Jonathan Pobst were 
> > great and took everyone of my private emails corgially and didn't once 
> > scream at my idiocy.  Many thanks to Joseph Hill, Miguel, and Nat Friedman 
> > as well!
> >  
> > If you haven't purchased a copy, please consider buying 8-10.  They will 
> > make great romantic gifts for that special occassion.
> >  
> > Link: 
> > http://www.amazon.com/Professional-Android-Programming-Mono-NET/dp/1118026438/ref=sr_1_1?ie=UTF8&qid=1331508444&sr=8-1
> >  
> > Now, I return you to your development efforts and will limit my next set of 
> > emails to the dumb questions that you are used to out of me.
> >  
> > Wally
> > ___
> > Monodroid mailing list
> > Monodroid@lists.ximian.com
> > 
> > UNSUBSCRIBE INFORMATION:
> > http://lists.ximian.com/mailman/listinfo/monodroid
> 
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
> 
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
  ___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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, Rectangle, Size
classes (supplied by OpenTK)
without changes? Will be these classes accepted by emulator?
Could you show any example of code how I can use System.Drawing classes from
OpenTK?  

Thank you


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/namespace-System-Drawing-in-Xamarin-API-tp5578365p5587073.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 context: 
http://mono-for-android.1047100.n5.nabble.com/profiling-support-in-monodroid-tp5564284p5587112.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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, Point, Rectangle, 
etc.). Unfortunately, System.Drawing.Graphics is not currently provided in Mono 
for Android.

OpenTK.dll provides the Point and Rectangle types for methods such as 
OpenTK.Graphics.ES20.GL.Viewport(Rectangle):


http://androidapi.xamarin.com/index.aspx?link=M%3aOpenTK.Graphics.ES20.GL.Viewport(System.Drawing.Rectangle)

System.Drawing.Graphics is not currently exposed, so anything using that type 
will need to be rewritten atop either OpenTK or Android.Graphics, or you'll 
need to write your own System.Drawing.Graphics type which is implemented atop 
OpenTK or Android.Graphics.

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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/mailman/listinfo/monodroid


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 (but not the original manifest). It
compiles okay but doesn't deploy. Same error.

I noticed that when I add an Android Manifest file as above, its build
action defaults to Content. You suggested it should be None. I'm not sure
what the difference is - in None definitely correct?

The error message suggests an xml parsing error - e.g. that it is
encountering something like 
in the project file. I've checked the .cshproj file by eye and with an xml
validator and it doesn't find a problem.

The new project file doesn't build no matter what I try. I still have my
original project, but I'm struggling to think of anything else to try.

Andy


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/NameResolutionFailure-in-release-build-only-tp5585824p5587298.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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://lists.ximian.com/mailman/listinfo/monodroid


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 for instructions on how to install the software manually 
- sorry for the trouble, but it's the only way out for the time being


best,

marek



[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), 64-bit
[2012-03-22 08:55:01.550] [Info] Installer version: 2.0.0.9
[2012-03-22 08:55:01.550] [Info] Status: in progress
[2012-03-22 08:55:01.551] [Debug] Manifest retrieval task starting.
[2012-03-22 08:55:01.551] [Info] Retrieving installation manifest.
[2012-03-22 08:55:01.551] [Info] Downloading from
'http://xamarin.com/download/installer/Windows/MonoForAndroid/InstallationManifest.xml'.
[2012-03-22 08:55:03.652] [Debug] Waiting for manifests to finish
downloading.
[2012-03-22 08:55:04.652] [Debug] Constructing detection UI.
[2012-03-22 08:55:04.652] [Debug] Manifests retrieved.
[2012-03-22 08:55:04.652] [Info] Determining list of software items to
install.
[2012-03-22 08:55:04.653] [Debug] Processing update nodes from the manifest.
[2012-03-22 08:55:04.653] [Info] Waiting for detection to finish
[2012-03-22 08:55:04.653] [Info] Detection complete
[2012-03-22 08:55:04.653] [Info] Component detection complete
[2012-03-22 08:55:04.654] [Debug] Download service starting.
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'Java JDK'
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'Android SDK'
[2012-03-22 08:55:04.654] [Debug] Creating and initializing software item
'GTK#'
[2012-03-22 08:55:04.655] [Debug] Creating and initializing software item
'MonoDevelop'
[2012-03-22 08:55:04.655] [Debug] Creating and initializing software item
'Mono for Android'
[2012-03-22 08:55:04.755] [Debug] Detection completed.
[2012-03-22 08:55:04.767] [Info] No software needs to be installed.
[2012-03-22 08:55:04.768] [Info] Status: successful


--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Installation-fails-on-Windows-7-tp144p5585136.html
Sent from the Mono for Android mailing list archive at Nabble.com.
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid



___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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. Same error.

Can you provide your Properties\AndroidManifest.xml file?

By any chance does your AndroidManifest.xml contain a 
//application/@android:name attribute, and does your project also have a class 
with an [Application] custom attribute?

> I noticed that when I add an Android Manifest file as above, its build action 
> defaults to Content.

That's very strange, as when I create the AndroidManifest.xml file via the 
Project Properties > Android Manifest "tab", AndroidManifest.xml has the Build 
action of None.

> The new project file doesn't build no matter what I try. I still have my 
> original project, but I'm struggling to think of anything else to try.

You might also try filing a bug and attaching the project so that we can 
further investigate.

Thanks,
 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 some profiling.

Aside: a Build action of Content is useless. It means ~nothing in Mono for 
Android; don't use it.

For "generic" data, I'd be inclined to prefer a build action of 
EmbeddedResource, as this will be portable and reusable elsewhere (WP7, .NET). 
Assets and "raw" resources are specific to Mono for Android.

However, I don't know what the performance implications are. It would be useful 
if someone could profile Assets (Assets\Foo.dat and AndroidAsset build action) 
vs. raw resources (Resources\raw\Foo.dat and AndroidResource build action) vs. 
EmbeddedResource. :-)

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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 override DoInBackground():

protected override Java.Lang.Object DoInBackground (params 
Java.Lang.Object[] native_parms)
{
return base.DoInBackground (native_parms);
}

 - Jon

___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


[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!
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid


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) {
switch (resultCode) {
case Result.Canceled: break;
case Result.FirstUser:break;
case Result.Ok:
   var theNumber = data.GetIntExtra("TheNumber", 1); // default will be 1
   Toast.MakeText(this, String.Format("Do something with this number {0}",
theNumber),
ToastLength.Short).Show();
break;
default:break;
}
}
}

* in *twoActivity*

private void _list_ItemClick(object sender, ItemEventArgs e) {
   var aNumber =
((YourListAdapter)_list.Adapter).GetNumber(e.Position); // your
code may vary
   Intent.PutExtra("TheNumber", aNumber);
   SetResult(Result.Ok, Intent);
   Finish(); // goes back to the caller (oneActivity)
}




On Fri, Mar 23, 2012 at 11:13 AM, james smoot  wrote:

> 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!
>
>
>
>
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
___
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid