Recent

Author Topic: LAMW Android 6.0 Blank UI after resume  (Read 3023 times)

maxx

  • New Member
  • *
  • Posts: 12
LAMW Android 6.0 Blank UI after resume
« on: September 19, 2017, 06:32:41 pm »
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

  • Hero Member
  • *****
  • Posts: 2297
Re: LAMW Android 6.0 Blank UI after resume
« Reply #1 on: September 19, 2017, 06:41:57 pm »

Hi Maxx,

Please,  try some others demos.... "AppDemo1" is hard to debug... %)
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

c4p

  • Full Member
  • ***
  • Posts: 157
Re: LAMW Android 6.0 Blank UI after resume
« Reply #2 on: September 19, 2017, 06:47:21 pm »
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.
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

maxx

  • New Member
  • *
  • Posts: 12
Re: LAMW Android 6.0 Blank UI after resume
« Reply #3 on: September 19, 2017, 07:19:39 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

  • New Member
  • *
  • Posts: 12
Re: LAMW Android 6.0 Blank UI after resume
« Reply #4 on: September 19, 2017, 07:23:26 pm »
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.
Sorry. Tried did not help..

c4p

  • Full Member
  • ***
  • Posts: 157
Re: LAMW Android 6.0 Blank UI after resume
« Reply #5 on: September 19, 2017, 07:34:18 pm »
 :(
Lazarus 2.0.12 r64642/FPC 3.2.0 LAMW v0.8.6.4 on Windows 10+Linux Mint 21.2, projects mainly built using AppCompat and Gradle v8.5

maxx

  • New Member
  • *
  • Posts: 12
Re: LAMW Android 6.0 Blank UI after resume
« Reply #6 on: September 21, 2017, 08:03:14 am »
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! ;D

 

TinyPortal © 2005-2018