I’m getting reports from beta testers using new nexus 7’s that the screen is turning black (and some intermittent flashing) running with the latest daily builds.
I did a test with the mapView sample code on a nexus 7 (added a textfield to be displayed as well, and sure enough, it did it with that code as well.
After studying the adb logcat, I noticed an error message shortly after the map is activated in the app:
=====================
D/WebKit ( 9448): ERROR:
D/WebKit ( 9448): SQLite database failed to load from /GeolocationPermissions.d
b
D/WebKit ( 9448): Cause - unable to open database file
D/WebKit ( 9448):
D/WebKit ( 9448): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cp
p(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
V/chromium( 9448): external/chromium/net/base/bandwidth_metrics.h:96: [1014/1905
After snooping around on the internet, it appears there were some permission changes that occurred with the release of JellyBean:
=====================
public abstract void setAllowFileAccessFromFileURLs (boolean flag)
Since: API Level 16
Sets whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs. To enable the most restrictive, and therefore secure policy, this setting should be disabled. Note that the value of this setting is ignored if the value of getAllowUniversalAccessFromFileURLs() is true.
The default value is true for API level ICE_CREAM_SANDWICH_MR1 and below, and false for API level JELLY_BEAN and above.
Parameters
flag whether JavaScript running in the context of a file scheme URL should be allowed to access content from other file scheme URLs
I really don’t know if this is causing my maps to go black screen on these new nexus 7 devices, but I’ve been trying to find a workaround for hours, and ran across this info.
If this worked on the Nexus 7 (and the GPS shut off on app suspend) — I’d be in business on the android!! Any help, Corona Labs? [import]uid: 79933 topic_id: 31956 reply_id: 331956[/import]