[mono-android] AsyncTask issues and port of Andengine to monodroid (Andengine.net)

James Burton james at thetin.net
Tue Mar 29 10:02:00 EDT 2011


Thanks Jon, that puts a massive smile on my face (being able to skip that conversion task).  Do we have an expected release date for the next release?

Regards,

::: James Burton :::

::: TheTin - Digital Consultancy ::: 
::: 24-28 Hatton Wall :::
::: London EC1N 8JH :::
 
T + 44 (0) 20 7430 7935
F + 44 (0) 20 7430 7936 
M + 44 (0) 7764 482 246
W www.thetin.net 
 
Find us on Google maps here.
 
Thetin Limited trading as The Tin Limited | Registered in England 4237948 | Registered office: Black Bull Yard, 24-28 Hatton Wall, London, EC1N 8JH | VAT registration number 778 1046 12
 
This e-mail message is intended solely for the person to whom it is addressed and may contain confidential or privileged information. If you have received it in error, please notify postmaster at thetin.net immediately and destroy this e-mail and any attachments.
In addition, you must not disclose, copy, distribute or take any action in reliance on this e-mail or any attachments. Any views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of The Tin. E-mail may be susceptible to data corruption, interception, unauthorised amendment, viruses and unforeseen delays, and we do not accept liability for any such data corruption, interception, unauthorised amendment, viruses and delays or the consequences thereof. Accordingly, this e-mail and any attachments are opened at your own risk.


-----Original Message-----
From: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Jonathan Pryor
Sent: 29 March 2011 2:58 PM
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] AsyncTask issues and port of Andengine to monodroid (Andengine.net)

On Mar 29, 2011, at 7:20 AM, James Burton wrote:
> I've noted that the AsyncTask class is apparently currently considered unusable

Good News, Everyone!

AsyncTask will be usable for the next release. It won't be perfect, but it will at least be usable. :-)

> If someone can provide a suggestion to the best approach to substitute for this within .NET then this would be really useful

.NET already has lots of primitives for "tasks" that Mono for Android exposes, from System.Threading.ThreadPool to System.Threading.Tasks and PLinq and...  For most developers writing new code, these should be the preferred primitives, as they'll promote portability with other ECMA runtimes. :-)

However, you mention that you're porting existing Java code. That's a somewhat different kettle of fish, as migrating threading code to a different system is unlikely to be trivial. The next release should help with this; otherwise, you're looking at deeply understanding the code and using .NET's existing primitives with copious use of Activity.RunOnUiThread().

 - Jon

_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com

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




More information about the Monodroid mailing list