[TIMOB-13991] Android: Google maps v2 module Android 2.3.x map blur issue
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2013-10-17T18:30:36.000+0000 |
Affected Version/s | Release 3.1.0 |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 API |
Components | Android |
Labels | google, map, module, triage, v2 |
Reporter | jason hu |
Assignee | Ingo Muschenetz |
Created | 2013-03-04T04:12:29.000+0000 |
Updated | 2017-03-30T20:53:58.000+0000 |
Description
I tested the new map in galaxy note 2 with 4.1.2, the map shows correctly, when I tried it in nexus S with 2.3.6, the map is blurred, even though it still reacts to click and zoom. I also tried it with Motorola Atrix 4G, it has the same blur issue
Additional details
Map Module 2.1.0 on TiSDK 3.1.0.GAScreenshot
https://github.com/douma/android/blob/master/device-2013-05-07-113122.pngdevice logs
https://github.com/douma/android/blob/master/android_2.3.3_maps_log.txttiapp.xml
https://github.com/douma/android/blob/master/tiapp.xmlTo reproduce
To reproduce just require Map module and attempt to display a map object.
var mapObject = require("ti.map");
var map = mapObject.createView({
width:Ti.UI.FILL,
height:Ti.UI.FILL,
annotations:annotations,
userLocation:true,
regionFit:true,
mapType:mapObject.NORMAL_TYPE
});
Reproducible on
Samsung galaxy S2 and most of Android 2.3.3 devicesNot reproducible on
Droid Razr 2.3.5 It works fine on Android > 4.Attachments
File | Date | Size |
---|---|---|
modal_on_4.0.4.png | 2013-06-13T23:48:25.000+0000 | 30551 |
modal_on2.3.4.png | 2013-06-13T23:48:25.000+0000 | 497182 |
modal_on4.2.2.png | 2013-06-13T23:48:25.000+0000 | 1964550 |
Hello Jason, would you mind providing a test case that shows this bug so that we may further review the problem? We need test cases in order to ensure we are reproducing the same problem that you are experiencing. This will lead to a much quicker resolution time. Any questions on how to report a JIRA can be answered here: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Thank you Carter
even a dummy empty map will show as blurred on the 2.3.6 device. All I did was trying your own sample code in your just released module's doc. I don't see a real need for me to paste that sample here. The original doc is at http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_Android
Thanks jason, will review.
I can confirm this issue. Works fine on android 4, but shows blurry map on android 2. Please see this topic on the forum, with an image: http://developer.appcelerator.com/question/151960/android-google-maps-v2-shows-blurry-image-on-android-233 This issue is very urgent, since 40% of the users use Android < 4 and Google does not support google maps v1 anymore for new apps.
Is there any news on this?
[Moved to Description]
Confirmed on Samsung Galaxy S 1.
Any news for this bug ? I have this bug on my Samsung Galaxy S2 and i should publish the app :s I used sdk 3.1 and maps V2, android version 2.3.4 thanks
This is really critical as Michael Willian said. I had the same problem here.
Cannot reproduce the issue on Galaxy SII (2.3.6) and HTC Incredible (2.3.4) using 3.1.0 GA and map 2.1.0. Here is the test case I used:
I ran the test case with and without WIFI enabled. Sometimes the map was blurry when I moved the map around, but after a while it became clear. It may be due to the network speed.
I tested on a Motorola Defy Plus MB526 with Android 2.3.5 and the map was always blurry. After this, I updated to Android 4.1.2 in the same device and the map worked fine. Please, try to test on other devices.
I tested it with my own maps setup with the following devices: - Galaxy SII (2.3.6) - HTC Incredible (2.3.4) - Nexus One (2.2.2) I couldn't reproduce it either. On Wi-Fi, the maps are crystal clear. Some notes about my setup: - Built latest ti.map module with Ti SDK 3.1 and Android API 10 from https://github.com/appcelerator/titanium_modules - Enabled "Google Maps Android API v2" and "Google Maps API v2" services and created "Key for Android apps (with certificates)" at https://code.google.com/apis/console/ - Published app with Android SDK 2.3.3 - Tested with Ti SDK 3.1 GA and latest 3.1.1 CI There are a few other reporters watching this issue - please verify the devices you used to reproduce the issue. We unfortunately don't have a Motorola Defy Plus at hand.
Tried all 2.x devices I could get my hands on, couldn't get the blur. I will try to investigate if it's network or something else, as the map does blur on slower devices as it loads. Could network bandwidth be a factor in this? It seems not in Jônatas' case. Checked with: HTC Incredible 2 (2.3.4) Droid (2.2.3) Galaxy s II (2.3.6)
I just noticed one thing different in Daniel's post. For V1, I had to publish it with "Google Android sdk 2.3.3", but Daniel mentioned "Published app with Android SDK 2.3.3". I will give it a shot later on my google nexus 2.3.6
Confirmed blurred ti.map on Samsung GT-I5800 (2.2) and HUAWEI-U8850 (2.3.5) using Ti SDK 3.1 GA. One interesting thing is if locking the phone with the app in front and the unlocking it again, the map is crystal clear for a split second - then it is blurred again.
I also tested on a LG Optimus Net Dual P698F with Android 2.3.4, using Ti SDK 3.1 GA and the map was blur too. As Martin said, it happens this thing when we lock and unlock the phone.
With my production developer key I am getting empty grey map views when trying to package. I refreshed my key and tried the new one, but this still failed. We will continue to investigate. Are others building for device or packaging then installing?
Is it possible to use the google map v1 in 3.1.0GA sdk? Not sure how to get the v1 module and its compatibility with 3.1.0GA sdk. If that's possible, I can just use v1 with the old android devices.
Jason, this is not possible since you cannot create a map v1 key for new apps any more. If you already have a v1 key, then you are still able to use it, to my knowledge also in 3.1.0GA. 3.1.0GA does not support v2 maps by default through Ti.MAP.createView, although it says so in the release info.
Any new for this bug ?
i solved this bug in my phone. the window that contains my map was modal. now, it is not and the map is clear :)
Bravo Zahal. This is the key. We are able to reproduce. More detail to follow.
Thanks Zahal, I used Droid3 Android version:2.3.4 and was able to reproduse the issue by adding modal window.
cool :) im curious to see if the bug was due to that on all phones...
I included screenshots for different devices with modal window added.
Closing issue as won't fix. "modal" property won't be supported with map v2.
Map v2 uses SurfaceView to render the map. Based on the [doc](http://developer.android.com/reference/android/view/SurfaceView.html), {quote} The surface is Z ordered so that it is behind the window holding its SurfaceView; the SurfaceView punches a hole in its window to allow its surface to be displayed. {quote} the map is rendered behind the window. The "modal" property of the window uses the flag [FLAG_BLUR_BEHIND](http://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_BLUR_BEHIND). The effect of this flag is similar to adding a blurring filter so everything behind the window will be blurred. Therefore, when adding a map to a modal window, the map which is behind the window will also become blurred.
@Ping, what an amazing feature... who ever came up with it...
this kind of explained why taking away "modal" property made the blurry go away
Closing ticket as "Won't Fix". There has been no update for a while. If there is any problem, please open a new ticket.