Hi, I began to investigate your comment and found that as of version 10 of Android there are more severe restrictions on the information of the device.
However they mention in the documentation https://developer.android.com/about/versions/10/privacy/changes#non-resettable-device-ids that there is a way to access such information. Is there a way to do this in codenameone? It is also possible to know when the cell phone is turned off, the battery level or when the gps is turned off? Thanks El miércoles, 21 de julio de 2021 a las 21:10:11 UTC-5, Shai Almog escribió: > Hi, > as far as I know Android also ended support for IMEI access without vendor > permissions. This only worked on older devices. > > On Wednesday, July 21, 2021 at 9:42:57 AM UTC+3 [email protected] wrote: > >> Hi, >> >> How do I get the IMEI number? >> >> I only need it on Android, I tried with >> "Display.getInstance().getMsisdn() ", but this does not work. >> >> Thanks >> > -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/2d03fbb3-f638-411c-ac9f-e5814bb75bf9n%40googlegroups.com.
