Hi Jon, everybody
On 2011.08.30 22:45, Jonathan Pryor wrote:
On Aug 30, 2011, at 4:25 PM, Tomasz Cielecki wrote:
> Thanks for your answer. How will MonoDroid 1.1 compared to using
> java to create a MapView?
When we have full .jar support, you'll be able to subclass
MapActivity in C# instead of Java. Nothing else changes -- you'll
still need a device with the maps library (e.g. use the right Target
when creating the emulator), you'll still need to create/maintain a
"persistent" signing key, and you'll still need the Google Maps API
key (which is based on the signing key, which is why you need to
create/use a new key).
Bing maps is easier because Microsoft actually cared about making it
braindead easy for developers to use. Google apparently doesn't care.
(If Google did care, they wouldn't require the API key!)
Small correction MS requires key too, in order to access Big Maps API.
Snippet
/// <value>Registered ID used to access map control and Bing
maps service.</value>
internal const string Id =
"AtwzNBJm6QJgnxQ7L2O5KP5daZ2FKTihaTutC9xhtbA9wt2JhjcxRthEu6cVKmXe";
and
Snippet
/// <value>Provides credentials for the map control.</value>
private readonly CredentialsProvider _credentialsProvider = new
ApplicationIdCredentialsProvider(App.Id);
But the rest is really brain dead, cos everything is wrapped inside Map
control.
Yes maybe MS care more about their maps.
regards
mel
> Are there some examples I can look at because I find that sample a
> bit lacking. I suppose there should be a way to communicate with
> the intent launched with the map, but how?
You can use Intents to send data to the MapActivity (see e.g.
Intent.getStringExtra()), your "launching" activity can use
Activity.StartActivityForResult(), and you can then override
Activity.OnActivityResult(). OnActivityResult() will be invoked when
the launched activity finishes (and calls Activity.setResult()).
Unfortunately, we don't have a full example showing this.
Thanks, - Jon
_______________________________________________ Monodroid mailing
list Monodroid@lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
--
Miljenko Cvjetko dipl.ing. ET
Direktor/CEO
Projektant rjes(enja/Solution Architect
Razvojni programer/Senior developer
Voditelj projekta/Project Manager
IX juz(na obala 13
Kajzerica Zagreb
T: 385 1 7775555
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