[TIMOB-16291] Android: Maps V2 displays black with anyDensity=false
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2014-01-28T18:12:18.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Luciano Damiani |
Assignee | Ingo Muschenetz |
Created | 2014-01-20T23:10:35.000+0000 |
Updated | 2017-03-22T23:01:37.000+0000 |
Description
Steps to Reproduce
Create a project that use Android Maps V2 and set tag anyDensity=false. SDK: 3.2.0 Android: Samsung GS 4 mini with Andorid 4.2.2 I am using all the steps of this link: http://docs.appcelerator.com/titanium/3.0/#!/guide/Google_Maps_v2_for_AndroidActual Result
When opening the app shows a black window instead the map.Expected Result
The map should open like when I use anyDensity=trueAttachments
File | Date | Size |
---|---|---|
.log | 2014-01-20T23:10:50.000+0000 | 1668068 |
diagnostic3244361413546593708.log | 2014-01-20T23:10:53.000+0000 | 15391 |
TesteAlloy.zip | 2014-01-20T23:11:54.000+0000 | 7457890 |
I can reproduce this issue with "anyDensity=False" but this flag is set to true by default and it is not recommended by Google to set it to false. http://developer.android.com/guide/topics/manifest/supports-screens-element.html android:anyDensity Indicates whether the application includes resources to accommodate any screen density. "For applications that support Android 1.6 (API level 4) and higher, this is "true" by default and you should not set it "false" unless you're absolutely certain that it's necessary for your application to work. The only time it might be necessary to disable this is if your app directly manipulates bitmaps (see the Supporting Multiple Screens document for more information)."
The issue is reproducible on latest 3.2.X, 3.2.0.GA & 3.1.3.GA SDK's.We see a black window instead of a map. Setting the "anyDensity=true" the app works as expected & we can see the map. Environment: Appc Studio : 3.2.1.201401201818 Ti SDK : 3.2.1.v20140117222448 Mac OSX : 10.8.5 Alloy : 1.3.1-beta3 CLI - 3.2.1 from github Samsung Galaxy S4 running android 4.2.2
Moving this ticket to engineering to decide if it wants to fix this issue even though it is not recommended by Google to set anyDensity to false.
As anyDensity=false is not recommended, we will not be addressing this issue.
Tested on: Mac OSX 10.9.2 Appcelerator Studio, build: 3.2.3.201404181520 Titanium SDK, build: 3.2.3.GA Titanium CLI, build: 3.2.3 Alloy: 1.3.1 Setting AnyDensity to false in the tiapp.xml causes map view to open a blank screen. Removing the AnyDensity tag resolves the issue as the map displays correctly.
Closing ticket as "Won't Fix".