Recent

Author Topic: LAMW - jWindowManager not work in Android 7+ [SOLVED]  (Read 1029 times)

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
LAMW - jWindowManager not work in Android 7+ [SOLVED]
« on: August 21, 2020, 06:53:07 pm »
The AppWindowManagerDemo1 not work in an android device with Android 7+, any one can confirm or help with this problem?
« Last Edit: August 22, 2020, 11:54:31 pm by Segator »
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW - jWindowManager not work in Android 7+
« Reply #1 on: August 21, 2020, 07:49:19 pm »

I am trying some solution...
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: LAMW - jWindowManager not work in Android 7+
« Reply #2 on: August 22, 2020, 11:53:53 pm »
I confirm that with the last github changes jWindowManager run well in Android 10, congratulations!, but i see a regretion in the SetFocusable implementation, my last change look more ugly because i evited use the boolean parameters and divide it in 2 java method SetFocusable and SetNotFocusable because when i use the boolean parameter the app crash, maybe for some error in my pascal wrapper function, so now the app crash when i call SetFocusable function, @jmpessoa can you make a revision in that function?, thanks a lot.
« Last Edit: August 22, 2020, 11:55:32 pm by Segator »
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2296
Re: LAMW - jWindowManager not work in Android 7+ [SOLVED]
« Reply #3 on: August 23, 2020, 01:24:43 am »

Please, put here your java code for SetViewNotFocusable and  SetViewFocusable ...

Thank you!
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: LAMW - jWindowManager not work in Android 7+ [SOLVED]
« Reply #4 on: August 23, 2020, 01:36:59 pm »
i see the fix in github for windowmanager.pas, it's better, more elegante, thanks to you!
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

 

TinyPortal © 2005-2018