Can you access SIM contacts from J2ME?

Hi, I am developing a mobile application where I need to access the phone book of users, contacts on the SIM card and phone.

Is it possible?

+1
source share
3 answers

It depends on the handset, some only allow you to access phone contacts, some make both a phone and a sim. Make sure you PIMList over all the PIMList provided by PIM.listPIMLists() , often this method returns two lists, one of which will be a telephone, the other will be a sim.

+3
source

Yes it is possible. Check out this discussion on the Nokia forum. Here it will be described in detail how to get contacts from the phone and SIM.

+1
source

You can access your contacts using the following API

JSR 75: optional packages for the J2METM platform

http://www.jcp.org/en/jsr/detail?id=75

This is an optional package and may not be for all mobile devices.

You can check the following URL for sample programs

Use the following code to check if the device supports PIM or not:

 String currentVersion = System.getProperty("microedition.pim.version" ) 

if the device is not supported, it will return null .

0
source

Source: https://habr.com/ru/post/1383820/


All Articles