Are you guys at Ansca aware this is not working on Android ?
.hasBackground = false is not working…
Or is it just me 
Regards,
Damir. [import]uid: 108334 topic_id: 26528 reply_id: 326528[/import]
Are you guys at Ansca aware this is not working on Android ?
.hasBackground = false is not working…
Or is it just me 
Regards,
Damir. [import]uid: 108334 topic_id: 26528 reply_id: 326528[/import]
I think it USED TO WORK
I have an app in google play which has web popups with transparent backgrounds.
Doesn’t work anymore though! [import]uid: 64174 topic_id: 26528 reply_id: 107560[/import]
It did indeed “used” to work. Hmm… I suspect it broke when we started compiling Corona with the Android 4.0.3 SDK. I think I know what it is. This might be an easy fix… [import]uid: 32256 topic_id: 26528 reply_id: 107615[/import]
Okay, it turns out that this was an Android 4.x bug only. I just fixed it now. The fix will be in daily build #819, which should be made available tomorrow. Thank you for informing us about this issue. [import]uid: 32256 topic_id: 26528 reply_id: 107618[/import]
Cool! Thanks for the Quick Fix!
I came across this some time back but felt too lazy to file a bug report.
I really should start filing bug reports promptly.
[import]uid: 64174 topic_id: 26528 reply_id: 107619[/import]
It is really great to see such quick response and fix.
Thumbs up! [import]uid: 108334 topic_id: 26528 reply_id: 107653[/import]
Happy to help! Oh and yes please send us a bug report when you see new issues pop up. We want to take care of them all before release. Thanks!
So, just to confirm, did the newest daily build solve your web popup problems? [import]uid: 32256 topic_id: 26528 reply_id: 107927[/import]
Yes, it did fix it. Thnx!
One question:
is there a event triggered when the webpop closes ?
What I need is to know if the user closed it with the Android back button.
Regards,
Damir. [import]uid: 108334 topic_id: 26528 reply_id: 108118[/import]
Damir,
There is not an event when the web popup closes, but that said, web popups cannot close themselves. You have to close them by doing one of the following:
You can find documentation about this here…
http://developer.anscamobile.com/content/web-popups
Does this help? [import]uid: 32256 topic_id: 26528 reply_id: 108353[/import]
I know about the two methods but there is a third way to close it which makes me problems:
if the user presses Android BACK button.
I can’t listen to the onKeyEvent because it is not triggered while the webpopup is open.
So there is no way I know the webpop closed
[import]uid: 108334 topic_id: 26528 reply_id: 108392[/import]
Oh right. I forgot about that method. If you want, you can prevent the Back key from closing the web popup. You can do so by setting via a table setting that you feed into the [lua]native.showWebPopup()[/lua] function. Just set [lua]options.autoCancel[/lua] to [lua]false[/lua]. That is if you consider this an acceptable work-around. You can find more details about this option via the link below…
http://developer.anscamobile.com/reference/index/nativeshowwebpopup
[import]uid: 32256 topic_id: 26528 reply_id: 108394[/import]
Thank you very much Joshua.
The autoCancel = false works great.
[import]uid: 108334 topic_id: 26528 reply_id: 108398[/import]
Unfortunately on the tablet Prestigio Multipad (Android 2.3.1) the
background is not transparent.
Now this is a big problem because I can’t use it if I am not sure it works on all Android devices (I have white font and if the background is white it is totally unreadable).
Help! [import]uid: 108334 topic_id: 26528 reply_id: 108622[/import]
Ughh… the lack of consistency between Android devices is killing me.
I can’t fix this issue unless I can reproduce it on my end. Do you have another Android 2.3 device that you can test with? Also, if the web page itself sets the background color explicitly, then the background of the web view will not be transparent, but that is the correct behavior. So you might want to check that. Any clues that you can provide would be a big help. [import]uid: 32256 topic_id: 26528 reply_id: 108730[/import]
Hi Joshua,
yes the Android fragmentation is what I am really afraid of.
I have tested the same APK on 3 tablets (4.03,3.21, 2.31) and 2 phones (2.2) and only on the 2.31 tablet the background is not transparent 
[import]uid: 108334 topic_id: 26528 reply_id: 108737[/import]
Would you mind running sample app “Interface\WebOverlay” that is included with the Corona SDK on your misbehaving tablet device please? That sample app displays a transparent web popup too with a local HTML file. This is to test for differences between your Corona project and the project I’m testing with. [import]uid: 32256 topic_id: 26528 reply_id: 108758[/import]
Hi Joshua,
have tried the example and the result is same as in my game.
The background is not transparent on the Prestigio tablet 
[import]uid: 108334 topic_id: 26528 reply_id: 108865[/import]
I just tried testing this on a Honeycomb tablet and it works fine for me. So it is not an Android 3.x issue either. So far I don’t know how to reproduce this issue.
I did a quick Internet search and discovered some people say that the background color gets reset when loading new web pages. I’ve never seen this for myself on any of my Android devices, but perhaps your Prestigio device is one of them.
http://stackoverflow.com/a/9157611
I don’t have time to look into this issue further this week, but would you mind reminding me next week please? I would have to attempt a “blind fix” as suggested by the above link and have you test it out since I have no means of verifying it for myself. Thanks! [import]uid: 32256 topic_id: 26528 reply_id: 109398[/import]