Re: [mono-android] sharing code between mono touch and mono for android

2012-01-30 Thread Dean Cleaver
Mine's a little strange to explain but I will try:

I've opted to use nibless in iPhone, and likewise I add controls in code on 
Android too. So I have a framework library for each OS that can 
"AddLabelAndText" which adds a label indented by x, y wide with a gap of x to a 
textbox that's z wide - I'm sure you get the idea. This framework also has 
inherited versions of views/activities as well as buttons etc to provide common 
functions.

In each device project I link to a common file - say "LoginScreen.cs". It will 
inherit from "BaseScreen", and each project will have a "BaseScreen.cs" 
inheriting from its respective view/activity in the framework above. In effect, 
this now means that all code in LoginScreen calls 2 different base frameworks 
depending on the device.

So LoginScreen has protected properties for all its labels and textboxes, 
buttons etc and are created in code. I've mapped common click events to both 
versions of the framework button classes, so LoginScreen has click events for 
the buttons that handle all the logic etc.

In reality, I do inherit from LoginScreen in each project also because some 
things just cannot be done the same way (badges for example seem to be 
impossible on Android) but 95% of the actual code is common to both.

Dino

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Wally McClure
Sent: Monday, January 30, 2012 8:59 AM
To: monodroid@lists.ximian.com; monoto...@lists.ximian.com
Subject: [mono-android] sharing code between mono touch and mono for android

I've been talking with Mark Bradley about sharing code between MT and MfA 
projects.  I'm curious what are the strategies that you are using to share code 
between the two platforms.  Any thoughts/advice are appreciated.  We've each 
got a way that we're doing.  I'm using separate projects and am linking files.  
Mark is doing something a little different where he references the .dll 
directly in his MT and MfA projects.  I think both have pluses/minuses.  What 
are you doing?  Is there some macdaddy project type that we have missed that 
would allow us to share things easily?  Are we both missing something?

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

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


Re: [mono-android] How can you learn native Android faster than Monodroid?

2012-02-13 Thread Dean Cleaver
Lee,

I had the opposite experience. I had (what we thought was) 95% of my iPhone app 
written in MonoTouch, and they were hassling me about an Android version. I 
mucked around one Saturday morning, got fed up with the simulator so went out 
and bought an Android phone, purchased Mono for Android, and by Sunday night I 
had a fully functional app up and running - only missing things like Badges on 
the tabs that I can't see an equivalent for. And this was nearly a year ago 
too, so it's not the most recent and much more bug free version of MfA either.

I don't think it's anything to do with being smart or not smart enough - I'm 
wondering what roadblocks you hit? Some things took me a bit of finding, but I 
found them in the end.

Dino

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Lee Whitney
Sent: Monday, February 13, 2012 2:02 PM
To: monodroid@lists.ximian.com
Subject: [mono-android] How can you learn native Android faster than Monodroid?


All of a sudden I had 4 days to come up with a proof of concept Android app 
working on device.  Only problem is I had never touched Android development.  
In fact I had never even used an Android device before (typical crazy developer 
assignment right?).  Oh and by the way, I've never coded in Java.

So I figure my best shot was Monodroid since I have a C#/.NET background.

I spent a full day with M4A, and gave up due to roadblocks.  Spent the next day 
from scratch with only the Android SDK, and actually have all the basics of my 
app working on device.

What's wrong with this picture?  If the problem is I'm not smart enough then 
shouldn't the native option have been harder?

Lee





___
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] Trendfftrtrtuy9811766443:43888770; ())(((,.~}~~#~<<<<~~~~~~~~~~<~~~~~~~~}~~}}}}}<##<##}}}}>>~.hahfjjwjf75)$;

2012-02-16 Thread Dean Cleaver
I was thinking he sat on his phone while it was unlocked - I'll put a tenner on 
that.

Any other bets?

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Alex Soto
Sent: Thursday, February 16, 2012 8:18 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Trendfftrtrtuy9811766443:43888770; 
())(((,.~}~~#~~~<}~~}<##<##>>~.hahfjjwjf75)$;

Hey we have a little kid interested in MfA =D smart kid tho :)

Alex

Enviado desde mi iPhone

El 16/02/2012, a las 07:48 p.m., James Bentley  
escribió:

> Hfhfhfhruuruhdyfheyydrjhdh
> 6:6373$$:)26.$;$,$4&!,$(!($,$(&$&1$;$,$($$,$,'cjfhjxhgjfjvhncnfnnfcnmf
> gmgkgkjjgjghxjgjxjfjkcjhcjykmgjghkkckkfjxjhfcjfjdhxjhtdjhxjjfjhrhfkhdj
> tjfjfmfnngjfjhfhfhsuhudurhfuhfjjdjfjfjcjcjhjfjfjjfjrkrjjtjfrijfitititi
> fjfjfiufgkkfkrnjccjfjdjfjhigkfkgktjyjgrkfkjtjkjcjgjfjdjjjifjfkkgjkjgjf
> jjvkkgkgktktktmrkgjgjgjgjjjgfjfkkgogitofiffiyijtitifitjjgjtjyihtiitiji
> itifitifkgjgjgkdkfkbgjgkfkkktjgggkgktktkykgkgkgkykgkhkgkgkgkgkgkykkglg
> kgogkgkkykhkhkgkgkgkgkgkgkgogigogkgkgkgkgkkggigogiggigohkkkykgkkgkkgkg
> khkgkgkjgiiggogkkgkvkkgvkkgkkkgkgkfkfkfkfktktktkktrktktktifkkgktkgktkt
> kktyitktktktktktutkttktktikfokz&94@(@(@@(&(&(&gofkkgkkfkffuffyfuuiivkv
> igjggkhkgkggkigffiiigigigjgjgjjhfhjfhhcjfjfjjgjghjvjjgjgkgkjgkgkogogoh
> obokhlglhkhkvkykykylkyykul
>
> Sent from my iPhone
> ___
> 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] Trendfftrtrtuy9811766443:43888770; ())(((,.~}~~#~<<<<~~~~~~~~~~<~~~~~~~~}~~}}}}}<##<##}}}}>>~.hahfjjwjf75)$;

2012-02-16 Thread Dean Cleaver
Could be a virus. Or a tumour.

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jason Awbrey
Sent: Thursday, February 16, 2012 10:08 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Trendfftrtrtuy9811766443:43888770; 
())(((,.~}~~#~<<<<~~<}~~}<##<##>>~.hahfjjwjf75)$;

Cat.

or stroke
On Thu, Feb 16, 2012 at 9:06 PM, Dean Cleaver 
mailto:dean.clea...@xceptionsoftware.com>> 
wrote:
I was thinking he sat on his phone while it was unlocked - I'll put a tenner on 
that.

Any other bets?

-Original Message-
From: 
monodroid-boun...@lists.ximian.com<mailto:monodroid-boun...@lists.ximian.com> 
[mailto:monodroid-boun...@lists.ximian.com<mailto:monodroid-boun...@lists.ximian.com>]
 On Behalf Of Alex Soto
Sent: Thursday, February 16, 2012 8:18 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Trendfftrtrtuy9811766443:43888770; 
())(((,.~}~~#~<<<<~~<}~~}<##<##>>~.hahfjjwjf75)$;

Hey we have a little kid interested in MfA =D smart kid tho :)

Alex

Enviado desde mi iPhone

El 16/02/2012, a las 07:48 p.m., James Bentley 
mailto:james.bent...@live.com>> escribió:

> Hfhfhfhruuruhdyfheyydrjhdh
> 6:6373$$:)26.$;$,$4&!,$(!($,$(&$&1$;$,$($$,$,'cjfhjxhgjfjvhncnfnnfcnmf
> gmgkgkjjgjghxjgjxjfjkcjhcjykmgjghkkckkfjxjhfcjfjdhxjhtdjhxjjfjhrhfkhdj
> tjfjfmfnngjfjhfhfhsuhudurhfuhfjjdjfjfjcjcjhjfjfjjfjrkrjjtjfrijfitititi
> fjfjfiufgkkfkrnjccjfjdjfjhigkfkgktjyjgrkfkjtjkjcjgjfjdjjjifjfkkgjkjgjf
> jjvkkgkgktktktmrkgjgjgjgjjjgfjfkkgogitofiffiyijtitifitjjgjtjyihtiitiji
> itifitifkgjgjgkdkfkbgjgkfkkktjgggkgktktkykgkgkgkykgkhkgkgkgkgkgkykkglg
> kgogkgkkykhkhkgkgkgkgkgkgkgogigogkgkgkgkgkkggigogiggigohkkkykgkkgkkgkg
> khkgkgkjgiiggogkkgkvkkgvkkgkkkgkgkfkfkfkfktktktkktrktktktifkkgktkgktkt
> kktyitktktktktktutkttktktikfokz&94@(@(@@(&(&(&gofkkgkkfkffuffyfuuiivkv
> igjggkhkgkggkigffiiigigigjgjgjjhfhjfhhcjfjfjjgjghjvjjgjgkgkjgkgkogogoh
> obokhlglhkhkvkykykylkyykul
>
> Sent from my iPhone
> ___
> Monodroid mailing list
> Monodroid@lists.ximian.com<mailto:Monodroid@lists.ximian.com>
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
___
Monodroid mailing list
Monodroid@lists.ximian.com<mailto:Monodroid@lists.ximian.com>

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


[mono-android] Will this x86 emulator work for Mono for Android?

2012-05-24 Thread Dean Cleaver
http://www.androidcentral.com/intel-releases-x86-system-image-android-emulator

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

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


Re: [mono-android] Will this x86 emulator work for Mono for Android?

2012-05-24 Thread Dean Cleaver
Heh - good to know. I don't read this list much as I last did any droid 
development about a year ago, but I keep in touch as I will have to make a 
droid version of new apps soon.

Dino

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: Thursday, May 24, 2012 16:06
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Will this x86 emulator work for Mono for Android?

The x86 emulator should work, considering that we're using it. ;-)


http://blog.xamarin.com/2012/05/21/getting-started-using-mono-for-android-seminar/

 - Jon

On May 24, 2012, at 4:58 PM, Dean Cleaver wrote:

> http://www.androidcentral.com/intel-releases-x86-system-image-android-emulator
>  
> Dino
> ___
> 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] Licensing question

2011-05-11 Thread Dean Cleaver
Good question Tom - I hadn't thought of this but I am in the same boat as I 
typically develop on my desktop, but if I go on the road I work on a laptop - I 
guess I need MonoDroid installed on both, but like you never use both at the 
same time (in fact, when sitting next to my desktop, the MacBook Pro is on OS X 
for MonoTouch development, not on Windows).

Dino

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Tom Opgenorth
Sent: Wednesday, 11 May 2011 22:21
To: monodroid
Subject: [mono-android] Licensing question

This might not be the best place for this kind of question, but figured I'd ask 
here first:

Typically I'll have a couple of VM's  at any one time, my laptop, and a 
desktop.  Is there anyway I can share / use my Mono for Android license across 
these PC's / VMs?  I only ever have VS2010 running on one computer/VM at a 
time.  I'm not trying to use the same license concurrently across several 
environments.

--
http://www.opgenorth.net
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] System.TypeInitializationException: An exception was thrown by the type initializer for Java.IO.Writer

2011-06-11 Thread Dean Cleaver
I believe that means there's something wrong with your AXML.

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of satish860
Sent: Saturday, June 11, 2011 1:49 PM
To: monodroid@lists.ximian.com
Subject: [mono-android] System.TypeInitializationException: An exception was 
thrown by the type initializer for Java.IO.Writer

I have created a Custom view and Given it in the XML and i am getting this 
error System.TypeInitializationException: An exception was thrown by the type 
initializer for Java.IO.Writer Please help me in getting it done

View this message in context: System.TypeInitializationException: An exception 
was thrown by the type initializer for 
Java.IO.Writer
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] Changing a tab's image (indicator) in code

2011-06-21 Thread Dean Cleaver
Is there any way to change a tabs indicator in code? I've tried getting a 
reference to the TabSpec and calling SetIndicator but had no success.

What I am trying to do is something similar to the iPhone "badge" on a tab - I 
can't put numbers there, but I want to change to a similar image with a red 
star or circle in the corner to indicate there are new records available.

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

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


[mono-android] Maintaining state

2011-06-23 Thread Dean Cleaver
According to what I've read, if I start my app, navigate through to a different 
screen, then press the home button to run another app, when I return to my app, 
it should return to where it left off?

Currently, it's returning to the first screen, and my first activity is getting 
called (OnCreate). Have I done something wrong, or is this expected?

How can I get it to return to the screen the user left from?

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

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


Re: [mono-android] Lion and MonoTouch/MonoDroid

2011-07-20 Thread Dean Cleaver
Oops - too late.

Any real clangers I should be worried about? Thus far I've had a few problems 
debugging in the simulator (locks up occasionally) but nothing I haven't got 
around...

Dino

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Miguel de Icaza
Sent: Wednesday, July 20, 2011 2:38 PM
To: Discussions related to Mono for Android; Forums, MonoTouch
Subject: [mono-android] Lion and MonoTouch/MonoDroid

Hello,

We here at Xamarin are as excited as you are about the release of Lion. But 
unfortunately we're not quite ready to support you on Lion yet, and MonoDevelop 
doesn't work quite right. We're working around the clock to make MonoDevelop 
work perfectly on Lion, and we'll let you know as soon as it's ready.

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

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


Re: [mono-android] Can we use Android-x86 emulator?

2011-09-07 Thread Dean Cleaver
Regarding the emulator slowness, my friend said that the emulator is pretty 
quick when using Netbeans - so is there some fundamental difference in the 
interaction between the simulator and the development environment?

Dino

From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Miljenko Cvjetko
Sent: Wednesday, September 07, 2011 11:37 AM
To: monodroid@lists.ximian.com
Subject: Re: [mono-android] Can we use Android-x86 emulator?

Sorry last mail just slipped away...
one more time...

Hi again

On 2011.09.07 14:54, efontana wrote:

Well, that's too bad, that thing boots instantaneously compared to the

painful emulator, I do have a real

device, but I like to work remotely and the Emulator allows for that, except

the real one is unusable, compared to the iPhone simulator.
Even google admits it that emulator is slow.

You can

  *   speed up startup (but I don not believe this is an issue) with
 *   the use of new snapshot feature of the emulator
 *   skip the wonderfull animation with -no-boot-anim
emulator.exe -avd AndroidVirtualDeviceTestName -no-boot-anim -cpu-delay 0
  *   try speeding up emulator (unproven - we haven't seen too much 
improvements)
 *   pass arguments to qemu (last arg on CLI)
emulator.exe -avd AndroidVirtualDeviceTestName -no-boot-anim -cpu-delay 0 -qemu 
-icount auto

-icount auto
enables virtual instruction counter with 2^N clock ticks per instructionSnippet
 *   scaling down the emulator
*   on emulator, settings-display -> disable screen orientation
*   Shrink the display size to the smallest you can get away with 
(Jonathan Pryor few weeks ago)
 *   use SSD
I'm trying to write small writeup with treoubleshooting and tips&tricks, but 
time is limited

regards

mel



--

View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Can-we-use-Android-x86-emulator-tp4778369p4778412.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




--

Miljenko Cvjetko dipl.ing. ET

Direktor/CEO

Projektant rješenja/Solution Architect

Razvojni programer/Senior developer

Voditelj projekta/Project Manager



IX južna obala 13

Kajzerica Zagreb

T: 385 1 777

M: 385 91 557 447 3

F: 385 1 7779556

e: mcvje...@holisticware.net

w: www.holisticware.net
___
Monodroid mailing list
Monodroid@lists.ximian.com

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


Re: [mono-android] Being driven insane....

2011-11-27 Thread Dean Cleaver
Paul,

Not followed the rest of the thread, but this is what I often do for 
Serializable objects to be able to use them as strings:

public class Foo
{
public override string ToString()
{
return Serialize(this);
}

public static Foo Deserialize(string serializedData)
{
if (string.IsNullOrEmpty(serializedData))
return new Foo();

XmlSerializer serializer = new XmlSerializer(typeof(Foo));
StringReader reader = new StringReader(serializedData);
return (Foo)serializer.Deserialize(reader);
}

public static string Serialize(Foo foo)
{
XmlSerializer serializer = new XmlSerializer(typeof(Foo));
StringWriter writer = new 
StringWriter(System.Globalization.CultureInfo.InvariantCulture);
serializer.Serialize(writer, foo);
return writer.ToString();
}
}

Thus you can either use foo.ToString() or Foo.Serialize(foo) to get the 
serialized object in a string, and Foo.Deserialize(string) to get the class 
back. I've used this a lot in TCP-IP communications.

Dino

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Paul Johnson
Sent: Wednesday, November 23, 2011 9:21 AM
To: Discussions related to Mono for Android
Subject: [mono-android] Being driven insane

Hi,

This is driving me mad

I have a class called foo with [Serialize] above it to serialize it.

In the main tab constructor, I have

Bundle b;
b.PutSerializable("data", foo);
intent.PutExtras(b);

Should be ok, except for PutSerializable it needs to be Java.IO.ISerializable

Putting (Java.IO.ISerializable)foo doesn't cut it either.

I don't know what the difference is between a C# and Java serializable object 
is.

So you can see it in context, I've uploaded my project...
http://www.all-the-johnsons.co.uk/android/AndroidTimeOfDeath.zip

I'm trying to find a simple way to pass a class between tabs and it's annoying 
me now!

Any help would be appreciated.

Thanks

Paul
___
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] Threading with Rotation

2011-12-13 Thread Dean Cleaver
Might be time for you to leave the list. Your attitude is not wanted here.

-Original Message-
From: monodroid-boun...@lists.ximian.com 
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Sayed Arian Kooshesh
Sent: Tuesday, December 13, 2011 10:51 PM
To: Discussions related to Mono for Android
Subject: Re: [mono-android] Threading with Rotation

i'm sorry if my responses seem flamy but the majority of the work i've had 
lately is fixing code of programmers like asshole here who have no idea how to 
prgramm. How do they get jobs? I just wonder and wonder.
Do the clients go on like freelancer.com hoping to get low bid? Don't you know 
that's how you get FUCKED? I mean, at least hire some talent European (like the 
people who mange this list) or fucking stop hiring Indians who don't know how 
to program, write shiity, shitty, code, and end up on lists like this asking 
stupid ass questions about shit that the developers don't need to help then 
with. If you can't use c# how it should be, why are you using it to write an 
android app. You know it's gonna leak memory and fail... fucking shit 
programmer.

I swear to god I might just hire someone to beat the shit out of these guys. 
That might teach them to not take jobs that they can't handle.

On Tue, Dec 13, 2011 at 10:46 PM, Sayed Arian Kooshesh  
wrote:
> please stop using threads. pleas learn backgroundworker. or i will 
> find you. I will cut you open. I will eat your innards. is that threat 
> enough to make you write GOOD code? or are you forever doomed to bitch 
> on lists like this because you have problems. the problems being 
> shitty code and the solution being you STOP being a fucking 
> programmer.
>
> On Tue, Dec 13, 2011 at 9:31 PM, Jonathan Pryor  wrote:
>> On Nov 16, 2011, at 1:10 PM, emalamisura wrote:
>>> A common issue with maintaining state is handling Rotation with 
>>> multiple threads in Android.  For instance if you start a thread, 
>>> and then rotate the phone before the thread is done with its work 
>>> Android destroys the previous Activity and generates a new one.  Any 
>>> references you had to your previous activity will cause a reference 
>>> exception.
>>
>> Right. Don't do that. :-)
>>
>> I'm also not sure what scenario you're thinking of. Activities are tied to 
>> their Main thread -- it isn't safe to interact with them except via the main 
>> thread or Activity.RunOnUiThread() -- and anything associated with the 
>> Activity follows the same rules as well. This would include the 
>> LastNonConfigurationInstance value, as used at:
>>
>>        http://stackoverflow.com/a/8331994/83444
>>
>> So the primary question is this: why are multiple threads using an Activity 
>> instance? If it's to use Activity.RunOnUiThread(), use an alternative, such 
>> as a Handler instance over the MainLooper:
>>
>>        
>> http://support.xamarin.com/customer/portal/questions/34836-toast-in-s
>> ervice
>>
>>> This becomes even more difficult
>>> to handle in MonoDroid because alot of the semantics used in Java 
>>> such as using an internal static class inside your activity can't 
>>> easily be reproduced in C#
>>
>> I also don't understand this. Java's `static` nested classes are ~identical 
>> to C# nested types; it's non-`static` nested classes which differ.
>>
>> Thanks,
>>  - Jon
>>
>> ___
>> Monodroid mailing list
>> Monodroid@lists.ximian.com
>>
>> UNSUBSCRIBE INFORMATION:
>> http://lists.ximian.com/mailman/listinfo/monodroid
>
>
>
> --
> Extreme Knowledge is not something for which he programs a computer 
> but for which his computer is programming him.
>
> -Wozniak



--
Extreme Knowledge is not something for which he programs a computer but for 
which his computer is programming him.

-Wozniak
___
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