Obsolete
Status Update
Comments
so...@gmail.com <so...@gmail.com> #2
Argh....with this bug there is absolutely no way to determine if the user has changed changed the panning of the map....I need a way to determine this so that i can allow the user to reset the map to it's original view. Please fix this ASAP.
ch...@gmail.com <ch...@gmail.com> #3
I have another example regarding the problematic accuracy of moveCamera/animateCamera.
When you use CameraUpdateFactory.newLatLngBounds(), moveCamera and animateCamera result in different values in map.getProjection().getVisibleRegion().latLngBounds.
LatLngBounds bounds = new LatLngBounds(new LatLng(40.70798493778415, -74.01434069136418), new LatLng(40.72072004852845, -73.99760391411343));
if (animate) {
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0),
} else {
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
}
map.getProjection().getVisibleRegion().latLngBounds :
after animateCamera -
LatLngBounds{southwest=lat/lng: (40.70711197865251,-74.01539381593466), northeast=lat/lng: (40.72159253556309,-73.99655096232891)}
after moveCamera -
LatLngBounds{southwest=lat/lng: (40.70798500292429,-74.01539381593466), northeast=lat/lng: (40.72071968970514,-73.99655096232891)}
This is pretty important for my design as im calculating a search radius (Vincenty’s formula) by the bounds of the map. appreciate if you could confirm the accuracy of those 2 APIs.
When you use CameraUpdateFactory.newLatLngBounds(), moveCamera and animateCamera result in different values in map.getProjection().getVisibleRegion().latLngBounds.
LatLngBounds bounds = new LatLngBounds(new LatLng(40.70798493778415, -74.01434069136418), new LatLng(40.72072004852845, -73.99760391411343));
if (animate) {
map.animateCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0),
} else {
map.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds, 0));
}
map.getProjection().getVisibleRegion().latLngBounds :
after animateCamera -
LatLngBounds{southwest=lat/lng: (40.70711197865251,-74.01539381593466), northeast=lat/lng: (40.72159253556309,-73.99655096232891)}
after moveCamera -
LatLngBounds{southwest=lat/lng: (40.70798500292429,-74.01539381593466), northeast=lat/lng: (40.72071968970514,-73.99655096232891)}
This is pretty important for my design as im calculating a search radius (Vincenty’s formula) by the bounds of the map. appreciate if you could confirm the accuracy of those 2 APIs.
Description
I have question on CTS R12.
Last night, I ran CTS(R12) on my test phone, and get the failed message.
Although I want solve this failed issue I can't find that file(MediaStore_Video_ThumbnailsTest.java).
And it is failed even Nexus-S(2.3.4).
So, I wonder that
1. Can I get the file that name of MediaStore_Video_ThumbnailsTest.java ?
2. Is any pre-condition of this test?
The failed messages are below.
---------------------------------------------------------------------
start java package android.provider.cts.MediaStore_Video_ThumbnailsTest
==============================================================
Test java package contained in test package android.provider: android.provider.cts.MediaStore_Video_ThumbnailsTest
android.provider.cts.MediaStore_Video_ThumbnailsTest#testAndroidTestCaseSetupProperly...(pass)
android.provider.cts.MediaStore_Video_ThumbnailsTest#testGetContentUri...(pass)
android.provider.cts.MediaStore_Video_ThumbnailsTest#testGetThumbnail...(fail)
junit.framework.AssertionFailedError at android.provider.cts.MediaStore_Video_ThumbnailsTest.testGetThumbnail(MediaStore_Video_ThumbnailsTest.java:85)
at android.provider.cts.MediaStore_Video_ThumbnailsTest.testGetThumbnail(MediaStore_Video_ThumbnailsTest.java:85)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
at android.provider.cts.MediaStore_Video_ThumbnailsTest.testGetThumbnail(MediaStore_Video_ThumbnailsTest.java:85)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)
---------------------------------------------------------------------
thanks.