LAMW Android 6.0 Blank UI after resume lazarus / 43-Android ---------------------------------------------------------------------- maxx · 2017-09-19 16:32 Hello! Applications created in LAMW start and work perfectly (Android 6.0 Xiaomi Redmi 4X). Many thanks to the jmpessoa for your titanic work! But when I exit the application by pressing the [home] button, and go back by pressing the [menu] buttons, there is nothing on the screen, only title application visible.. The old phone Motorolla Razr XT910 (Android 4.4) everything all right, with the same programms. It looks something like this: ---------------------------------------------------------------------- jmpessoa · 2017-09-19 16:41 Hi Maxx, Please,  try some others demos.... "AppDemo1" is hard to debug... ---------------------------------------------------------------------- c4p · 2017-09-19 16:47 Go into the AndroidManifest.xml file (in the root of your project) and change the option under 'application' android:launchMode="standard" to: android:launchMode="SingleTask" Hopefully that will sort it. Had the same issue here on Android 5.0.1, not had the issue return since. ---------------------------------------------------------------------- maxx · 2017-09-19 17:19 Quote from: jmpessoa on September 19, 2017, 06:41:57 pm Hi Maxx, Please,  try some others demos.... "AppDemo1" is hard to debug... I tried build several progs, and even build my own simplest "Hello- World" with one big button and ShowMessage(..) on click handler. The result is absolutely the same. ---------------------------------------------------------------------- maxx · 2017-09-19 17:23 Quote from: c4p on September 19, 2017, 06:47:21 pmGo into the AndroidManifest.xml file (in the root of your project) and change the option under 'application' android:launchMode="standard" to: android:launchMode="SingleTask" Hopefully that will sort it. Had the same issue here on Android 5.0.1, not had the issue return since. Sorry. Tried did not help.. ---------------------------------------------------------------------- c4p · 2017-09-19 17:34 ---------------------------------------------------------------------- maxx · 2017-09-21 06:03 I fixed this problem! As I suspected the problem was in a damn MIUI8.xx. Help advice from xda-developers I disable memory optimization and animation scale effects: Memory Settings To enable Developer Options : Settings App > About Phone > MIUI Version > Keep on tapping till it is enabled. • Settings App > Additional Settings > Developer Options - Window Animation Scale: Off - Transition Animation Scale: Off - Animator Animation Scale: Off - Don't Keep Activities : Disabled - Background Process Limit : Standard Limit - Memory Optimization : Off Now switch lamw apps works without errors!