[mono-android] Tow mapviews

Sayed Arian Kooshesh kooshesh at gmail.com
Mon Jun 11 18:58:10 UTC 2012


not sure of your questions but if you are looking for a thread.. I
would use background worker (unless there is a known problem) and use
a handler to update your ui thread. If you feel it's more complicated
than that, send over your code so I can try it.

if you are just looking for a solution to do work in another thread,
here is a small example:


public ienumerable<object> getItems()   <--- your function should use
yield return. You can process a list as you get it, not a whole list
at a time. (consider which is faster and less memory consumptive)





System.ComponentModel,backgroundworker bg = new ...Backgroundworker();
  <--- not gonna babysit you through how to use this. Make sure you
catch errors and finished, too.

Handler hndler = new Handler () ;  <--- this will make sure you don't
have any cross thread problems updating your ui from another thread/


If this doesn't apply to your problem please send the code.









On Sun, Jun 10, 2012 at 6:41 AM, Sloot <wouter at freed.nl> wrote:
> Hello,
>
> I'm working on an Monodroid app which uses two mapviews. The first mapview
> is for showing all kind of POI's and Polygons (water) and the second Mapview
> is used for inserting a new POI by clicking on the that Mapview. My problem
> is (and it's a known problem for Android) that the Mapviews behave strange.
> The solution which I've found is to open the second screen (with the second
> Mapview) in a new process. Can anybode tell me how this has to be done in
> Monodroid?
>
>
>
> When I fill in the AndroidManifest it doesn't work out:
>  <activity name="nl.test.ActivityPOINew" android:process="nl.test.p2" >
> ...and also [Activity(Label = "ActivityPOINew", Theme =
> "@style/CustomTheme", Process = "nl.test.p2", NoHistory = true,
> ScreenOrientation = ScreenOrientation.Portrait)] is not resulting...
>
> Can anybody help me further?
>
> Kindly regards,
> Wouter Slotegraaf
>
>
> --
> View this message in context: http://mono-for-android.1047100.n5.nabble.com/Tow-mapviews-tp5710266.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid at 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


More information about the Monodroid mailing list