question

Zsolt Bertalan avatar image
Zsolt Bertalan asked

How can I get a handle on leaked ClickableWebViewToast?

If I quit my game while the init Toast is shown, I have the following error: 10-28 14:35:56.919: E/WindowManager(9236): Activity com.babestudios.blq.activities.LqMainActivity_ has leaked window com.amazon.ags.html5.overlay.toasts.ClickableWebViewToast{417915e0 V.E...C. ......ID 0,0-960,219} that was originally added here 10-28 14:35:56.919: E/WindowManager(9236): android.view.WindowLeaked: Activity com.babestudios.blq.activities.LqMainActivity_ has leaked window com.amazon.ags.html5.overlay.toasts.ClickableWebViewToast{417915e0 V.E...C. ......ID 0,0-960,219} that was originally added here I understand that I should finish this dialog in onPause(), but how can I get a handle to it?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Bipin@Amazon avatar image
Bipin@Amazon answered
Toast-cancel Close the view if it's showing, or don't show it if it isn't showing yet. You do not normally have to call this. Normally view will disappear on its own after the appropriate duration. http://developer.android.com/reference/android/widget/Toast.html#cancel()
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Zsolt Bertalan avatar image
Zsolt Bertalan answered
I know how to cancel a dialog or toast. As I said the dialog is started by the SDK and I don't have a handle to it.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Zsolt Bertalan avatar image
Zsolt Bertalan answered
Does this mean that it's official that the Amazon GameCircle SDK is leaking the resources (or even causing crashes) ?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Babestudios, Thank you for writing to us. I have forwarded this to the appropriate team. I will update this thread after getting response from them.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.