How to get the contacts list in a sony ericsson in J2Me
Question
I'm building a phone application in j2me. In it, I need to get the contacts from the phonebook. There is an API for that and the line I tried to use was
contactList = (ContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST,
PIM.READ_ONLY, name);
Apparently, it doesn't work in my phone (Sony Ericsson W705). That's why I was wondering whether there is a different API that I can access the phonebook in J2Me. If there is such an option, how can I check whether the person running the application has a sony ericsson (or nokia, samsung..)?
Solution
- Sony-Ericsson W705 supports JSR-75 (file and PIM access API) - e.g. look here
- There's no other API which supports PIM access
- You can't check dynamically does particular phone supports given API or not? Common practice is to build several versions for different phones.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow