×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    4

    How to open Contacts.cdb in pjava program?

    Hello, currently I am programming a pjava program to access addressbook in 9200 series. But in my code, when I try to
    use "FileInputStream" to open "Contacts.cdb", the system always display "java.io.FileNotFoundException: c:/system/data/Contacts.cdb". But when I use "File" to access to this file, the code works smoothly. Could anyone help me on this issue? Thank you very much!

    Part of my code:
    FileInputStream in = new FileInputStream("C:/System/Data/Contacts.cdb");
    BufferedInputStream bufIn = new BufferedInputStream(in);

    The following code is ok:
    File path = new File("C:/System/Data/Contacts.cdb");
    System.out.println("If the file can be readed:" + path.canRead());
    System.out.println("If the file can be writed:" + path.canWrite());

    Brs.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    RE: How to open Contacts.cdb in pjava program?

    Why don't you use java.pim.addressbook
    see examples here:
    http://www.symbian.com/developer/techlib/tutorials/CGroupHints.html
    Leo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×