Recent

Author Topic: [LAMW] jTelephonyManager is not working properly  (Read 3129 times)

Agmcz

  • New Member
  • *
  • Posts: 37
[LAMW] jTelephonyManager is not working properly
« on: November 19, 2021, 12:30:30 am »
Hi all

Component jTelephonyManager is not working properly
always the same result "GSM"

Code: Pascal  [Select][+][-]
  1. jTelephonyManager1.GetIMEI
  2. jTelephonyManager1.GetLine1Number
  3.  

Agmcz

  • New Member
  • *
  • Posts: 37
Re: [LAMW] jTelephonyManager is not working properly
« Reply #1 on: November 19, 2021, 04:21:43 pm »
more...

jTelephonyManager1.GetNetworkType: always the same result "0"

Can you solve this problem!

Agmcz

  • New Member
  • *
  • Posts: 37
Re: [LAMW] jTelephonyManager is not working properly
« Reply #2 on: November 19, 2021, 04:37:50 pm »
After testing on Android 5.1 and Android 11
I note that it is compatible with Android 5.1
- Test on  Android 5.1: jTelephonyManager1.GetIMEI Working
- Test on  Android 11: jTelephonyManager1.GetIMEI Not working
Why is it not working on Android 11

jmpessoa

  • Hero Member
  • *****
  • Posts: 2111
Re: [LAMW] jTelephonyManager is not working properly
« Reply #3 on: November 19, 2021, 07:42:07 pm »

Hi, Agmcz!

I will try some solution!


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

Insid3Code

  • New member
  • *
  • Posts: 5
Re: [LAMW] jTelephonyManager is not working properly
« Reply #4 on: November 22, 2021, 12:08:32 pm »
Quote
- Test on  Android 11: jTelephonyManager1.GetIMEI Not working
Quote
I will try some solution!

It's about Privacy changes in Android release...

https://developer.android.com/about/versions/10/privacy/changes#data-ids

 

TinyPortal © 2005-2018