jsr75

Can't access/read SIM phonebook in Nokia

為{幸葍}努か 提交于 2019-12-09 18:47:55
问题 am trying to access both the Phone's phonebook and SIM phonenook on Nokia 5130c-2 XpressMusic. The app runs without errors but it only returns the numbers from the phone's Phonebook. When I list the available phonebooks using this code String[] all_contact_lists=PIM.getInstance().listPIMLists(PIM.CONTACT_LIST); it gives me both the Phonebook and SIM card lists. i.e 1. Phone 2. SIM I have tried explicitly reading from the SIM card using this code but it still returns nothing(even though I have

Can't access/read SIM phonebook in Nokia

不想你离开。 提交于 2019-12-04 10:24:40
am trying to access both the Phone's phonebook and SIM phonenook on Nokia 5130c-2 XpressMusic. The app runs without errors but it only returns the numbers from the phone's Phonebook. When I list the available phonebooks using this code String[] all_contact_lists=PIM.getInstance().listPIMLists(PIM.CONTACT_LIST); it gives me both the Phonebook and SIM card lists. i.e 1. Phone 2. SIM I have tried explicitly reading from the SIM card using this code but it still returns nothing(even though I have numbers saved in the SIM card.) Code: ContactList clist = (ContactList) PIM.getInstance().openPIMList

J2ME/Blackberry - how to read/write text file?

女生的网名这么多〃 提交于 2019-11-27 19:30:16
please give me a sample code for read/write text file in blackberry application. Maksym Gontar My code snippet for string read/write files: private String readTextFile(String fName) { String result = null; FileConnection fconn = null; DataInputStream is = null; try { fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE); is = fconn.openDataInputStream(); byte[] data = IOUtilities.streamToBytes(is); result = new String(data); } catch (IOException e) { System.out.println(e.getMessage()); } finally { try { if (null != is) is.close(); if (null != fconn) fconn.close(); } catch

J2ME/Blackberry - how to read/write text file?

痴心易碎 提交于 2019-11-26 19:54:54
问题 please give me a sample code for read/write text file in blackberry application. 回答1: My code snippet for string read/write files: private String readTextFile(String fName) { String result = null; FileConnection fconn = null; DataInputStream is = null; try { fconn = (FileConnection) Connector.open(fName, Connector.READ_WRITE); is = fconn.openDataInputStream(); byte[] data = IOUtilities.streamToBytes(is); result = new String(data); } catch (IOException e) { System.out.println(e.getMessage());