[mono-android] [***SPAM*** Score/Req: 05.5/5.0] Re: What´s wrong with this piece of code?

James Burton james at thetin.net
Fri Mar 11 10:45:05 EST 2011


Hey folks 

 

An initial sounding out here ... is anyone interested in the AndEngine <http://www.andengine.org/>  2D game engine ported over to monodroid?  

 

I started converting it a couple of weeks ago, without realising how big it is.  I’m probably now between a third and a half of the way through it, and I think I may be nearing a buildable version of the core engine components.  There have been many interesting challenges such as lack of support for co-variance in C#, methods in structs in the java source, static package references and methods in enums, and other such C# incompatible features, but I think I’ve got most of the major puzzles cracked now.  It’s been a great learning experience including threading, synchronisation, advanced data-structures and platform support for inheritance features, etc..  If you are not confident (or are at least ready and willing to learn) regarding translating that level of code, then best to wait for the alpha/beta release of the engine.  I’m testing my limits on these areas, but seem to be swimming so far, but I can definitely not afford to be guiding people much here.

 

Does anyone fancy joining me on this project, want to recommend the best place to host the code and project, suggest conversion tools and references, etc.?  As the source is under an LGPL license I am intending to release this code under LGPL, with my own game running on it as a demo, and hopefully to release it in time for the monodroid release.  I’ve never participated in open source development before, though I am an experienced developer professionally, so guidance on planning and running this project are welcomed as well as any assistance with the code.  FYI, I am currently managing my code within Git, so Git open source hosting would likely be the most relevant here.  I can handle a few merges if required and commented properly.

 

Anyone interested in this initial alpha/beta development please reply here, and I will try to resolve a shared repository and some sort of tracker for issues if not included in that hosting, and we can then try to nail this.  If anyone is thinking “fantastic idea” and has experience of running these projects, please feel free to liaise with me to consider taking charge of this if you’d rather, as I am happy either way so long as my name is alongside the key project notes.

 

Otherwise I hope to notify you all when it is released with a link, examples, market link to my game, etc.

 

Any takers?

 

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 <http://www.thetin.net/>  

 

Find us on Google maps here <http://www.google.co.uk/maps?f=q&hl=en&q=24-28+Hatton+Wall,+London,+EC1N+8JH&sll=51.536486,-0.106001&sspn=0.047996,0.107803&ie=UTF8&z=16&om=1&iwloc=addr> .

 

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 <mailto: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.

 

From: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Carlo Bolz
Sent: 11 March 2011 3:24 PM
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] [***SPAM*** Score/Req: 05.5/5.0] Re: What´s wrong with this piece of code?

 

Thank you Morton, that does nearly the job. But now the application closes with „Sorry, the application closes unexpected“.

 

Regards,

Carlo

 

Von: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] Im Auftrag von Morten Nilsen
Gesendet: Freitag, 11. März 2011 15:22
An: 'monodroid at lists.ximian.com'
Betreff: [***SPAM*** Score/Req: 05.5/5.0] Re: [mono-android] What´s wrong with this piece of code?

 

In that case, try this;

 

List<IDictionary<string, object>> groupData = new List<IDictionary<string, object>>();

List<IList<IDictionary<string, object>>> childData = new List<IList<IDictionary<string, object>>>();

…

Dictionary<string, object> curGroupMap = new Dictionary<string, object>();

…

groupData.Add(curGroupMap);

…

new SimpleExpandableListAdapter(this, groupData, …)

…

 

This is what I meant when I said you had to make your list agree with using interfaces.

 

  -- Cheers, Morten

 

 

From: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] On Behalf Of Carlo Bolz
Sent: Friday, March 11, 2011 2:39 PM
To: monodroid at lists.ximian.com
Subject: Re: [mono-android] What´s wrong with this piece of code?

 

Hm,

 

I am not really sure what to do.

I just want to port this example http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList3.html to monodroid.

 

The problem is that the SimpleExpandableListAdapter want the interfaces for the „groupData“ and „childData“ lists.

 

            // Now the app dies here

SimpleExpandableListAdapter expListAdapter =

                new SimpleExpandableListAdapter(

                    this, groupData as IList<IDictionary<string, object>>,

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110311/0b73f9d4/attachment-0001.html 


More information about the Monodroid mailing list