Hi guys,
I also had the same problem with the applications in android 12, I tried on a real device the "debug" version worked correctly and the "release" version died horribly. After many tests with LAMW I discovered the bug:
This line of code generated the error:
//InitInheritedComponent(Self, TAndroidWidget {TAndroidForm});
InitInheritedComponent(Self, jForm {Need for Android 12});
Another particularity of Google Play is that you cannot create "CreateForm" anywhere, only the "begin ... end" of the "Project source" but when the operating system is updated, your application will stop working.
//Example
begin
gApp:= jApp.Create(nil);
gApp.Title:= 'LAMW JNI Android Bridges Library';
gjAppName:= 'org.lamw.doubleflashfree';
gjClassName:= 'org/lamw/doubleflashfree/Controls';
gApp.AppName:=gjAppName;
gApp.ClassName:=gjClassName;
gApp.Initialize;
gapp.CreateForm(TfrmTools, frmTools);
gapp.CreateForm(TfrmScreen, frmScreen);
gapp.CreateForm(TfrmTime, frmTime);
gapp.CreateForm(TfrmParty, frmParty);
gapp.CreateForm(TfrmSOS, frmSOS);
gapp.CreateForm(TfrmConfig, frmConfig);
gapp.CreateForm(TfrmQR, frmQR);
gapp.CreateForm(TfrmZoom, frmZoom);
gapp.CreateForm(TfrmPro, frmPro);
gApp.CreateForm(TfrmSplash, frmSplash);
end.
I have also improved certain things such as compatibility with mipmap so that in Android 12 it loads the icons correctly.
Multidex support to avoid problems with the 64k limit.
Greetings.