[mono-android] Xamarin Samples - Google Maps
Miljenko Cvjetko
mcvjetko at holisticware.net
Mon Jan 23 20:53:33 UTC 2012
Hi
Great job it works great.
Some stuff to share and questions (first)
* it seem that api will change in 4.0.1+
I had 4.0.3 installed and SensorManager api is changed slightly?!
Noticed change here:
sensor_manager.RegisterListener (rotate_view,SensorType.Orientation,SensorDelay.Ui);
* what causes errors below?
It is supposed to be error with API key (sometimes there's no map
only gray background)
exiting MapView and returning stops this error
01-23 20:21:54.815 W/System.err(12494): IOException processing: 26
01-23 20:21:54.815 W/System.err(12494): java.io.IOException: Server
returned: 3
01-23 20:21:54.815 W/System.err(12494): at
android_maps_conflict_avoidance.com.google.googlenav.map.BaseTileRequest.readResponseData(BaseTileRequest.java:115)
01-23 20:21:54.820 W/System.err(12494): at
android_maps_conflict_avoidance.com.google.googlenav.map.MapService$MapTileRequest.readResponseData(MapService.java:1473)
01-23 20:21:54.820 W/System.err(12494): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.processDataRequest(DataRequestDispatcher.java:1117)
01-23 20:21:54.825 W/System.err(12494): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher.serviceRequests(DataRequestDispatcher.java:994)
01-23 20:21:54.825 W/System.err(12494): at
android_maps_conflict_avoidance.com.google.googlenav.datarequest.DataRequestDispatcher$DispatcherServer.run(DataRequestDispatcher.java:1702)
01-23 20:21:54.825 W/System.err(12494): at
java.lang.Thread.run(Thread.java:1019)
* occasional flickering in Compass
is probably due to threshold for rotation or error obtained from google?
I guess I should play with ROTATE_THRESHOLD
* some optimization suggestions in RotateView
wouldn't
int childLeft = (width - childWidth) / 2;
be slightly faster as:
int childLeft = (width - childWidth) >> 1;
regards
mel
--
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: mcvjetko at holisticware.net
w: http://www.holisticware.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120123/9424b019/attachment.html>
More information about the Monodroid
mailing list