Recent

Author Topic: LAMW - AppShareFileDemo1 and AppBluetoothDemo1 crashes on Android 11  (Read 421 times)

freris

  • New Member
  • *
  • Posts: 48
  • A Retired hobbist programmer from Greece
Hi to All !

I have tried the AppShareFileDemo1, and  AppBluetoothDemo1 apps crash when I select share file or send file.

I am on Android 11 and Samsung Galaxy A10 phone not rooted.
Also i have Location and Bluetooth open and I have given the necessary permissions.

I have the latest LAMW version, LazAndroid 2.0, Ndk = r17c and jdk1.8.0_211,

Any suggestions ?

Thank you
« Last Edit: July 03, 2022, 01:09:10 pm by freris »
As I get older, the more I learn !!

jmpessoa

  • Hero Member
  • *****
  • Posts: 2127
Re: LAMW - AppShareFileDemo1 and AppBluetoothDemo1 crashes on Android 11
« Reply #1 on: July 05, 2022, 07:51:44 pm »
Hi, freris!

regrettably, Android has become increasingly restrictive to access  phones folder .....

and in fact there is now a new paradigm and you can try it testing demo "AppPublicFoldersAccessDemo1"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

freris

  • New Member
  • *
  • Posts: 48
  • A Retired hobbist programmer from Greece
Re: LAMW - AppShareFileDemo1 and AppBluetoothDemo1 crashes on Android 11
« Reply #2 on: July 05, 2022, 09:04:46 pm »
Hi jmpessoa!

Thank you very much.

Tomorrow  I will try to use intent to send file to bluetooth!

Have a nice day!
As I get older, the more I learn !!

freris

  • New Member
  • *
  • Posts: 48
  • A Retired hobbist programmer from Greece
Re: LAMW - AppShareFileDemo1 and AppBluetoothDemo1 crashes on Android 11
« Reply #3 on: July 06, 2022, 04:29:15 pm »
Hi again jmpessoa!

I tryed today your advise and yes i can send files from Android to Raspberry PI.

Thank you for your advise!

Have a nice day!

As I get older, the more I learn !!

 

TinyPortal © 2005-2018