Skip to main content
Participant
December 15, 2016
Question

AIR 24 - Android 6.0.1 context loss after displaying native dialog

  • December 15, 2016
  • 4 replies
  • 2252 views

Hi,

After updating to AIR 24, we're getting context losses on Android 6.0.1 whenever any native dialog is displayed. It only happens when fullScreen is set to true and it didn't happen with previous versions of AIR SDK. This really blocks us from using the newest version of AIR SDK. Does anyone know if there's anything we could do with this?

This topic has been closed for replies.

4 replies

Inspiring
March 17, 2017

This feature is now broken in AIR SDK 25 Release version on iOS. When I want to use custom embedded font on IOS the app quits unexpectedly.

Everything was working great on AIR SDK 25.0.108 Beta except for the strange top padding on Android when using embedded font in text input

pravishtis
Adobe Employee
Adobe Employee
March 20, 2017

Hi,

We tried running Custom fonts on StageText using AIRSDK 25.0.0.134 on iOS 10.2 but we didn't face any issues at our end. Can you please specify whether the mentioned problem is specific to any situation ?

Thanks,

Adobe AIR Engineering

Inspiring
March 20, 2017

Hi pravishtis,

I tried to run it on iPhone 7 Plus on iOS 10.2.1. It is hard to give any data because the app just crash. I tried to debug it on device (iPhone 7 Plus) but no error is thrown it just quits.

I will try to run it on more devices including Android as well and I will get back to you.

Thanks,

Caslav

Inspiring
February 16, 2017

Hi,

I have tested AIR SDK 25 Beta on many android devices (Samsung, LG, Huawei, Xiaomi) and it seams that context loss bug is fixed and everything works great.

Thank you very much.

Regards,

Caslav

Participating Frequently
December 20, 2016

Same issue over here, after upgrade to AIR SDK 24, I got my app context loss every time it open a native dialog, such as volume, or alert, preloader,... and sometime it crashed the app as well.

But when I set <fullScreen>false</fullScreen> in the XML Manifest, everything work just fine. But I don't think it's a solution, since I want my app to be fullscreen.

Please, do investigate on it.

Thanks,

chris.campbell
Community Manager
Community Manager
December 20, 2016

Thank you for the report.  We are investigating.

Chris

Inspiring
December 20, 2016

Hi Guys,

For me with SDK 24 and Android (LG Nexus 5) every time I click on text input i get context loss and black screen for a second or two and after that it recovers.

Also with sdk 24 I am no longer able to debug application directly to device (Android) with Flash Builder 4.6 on Windows 10 while I was able to do it just fine with sdk 23.

One more thing with sdk 24 I am not able to use custom embedded fonts for for android while it is working just fine on iOS.

For android I always get error 105 saying that fontPath is invalid value while the value is correct even when I use absolute url.

Regards,

Caslav

pravishtis
Adobe Employee
Adobe Employee
December 16, 2016

Hi,

Could you please share some more details like a sample project so that we can investigate further.

Thanks,

Pravishti | Adobe AIR Engineering

p_rybackiAuthor
Participant
December 16, 2016

HI,

Here's simple project to reproduce the issue.

https://www.dropbox.com/s/e9l8lxm0e7dnqhp/ContextLoss.zip?dl=0

This app requires context3D and randomizes screen color whenever context3D is recreated. When you tap on the screen it opens google website. And on Android 6.0.1 when app is builded with AIR 24, the screen will change color every time a system dialog to chose browser will pop up. It doesn't happen on Android versions 5.x and 4.x and doesn't happen at all with AIR 23. Also when I change fullscreen to false everything is fine too.

You need to have at least two browsers installed on the device and default one not selected to make system dialog pop up.

Here's a link how you can clear you defaults.

How to Easily Select Your Default Apps in Android 6.0 Marshmallow