Motorola HANDSET C381P User Manual
Page 53
11
Phonebook Access API
53
buffer = new String("BEGIN:VCARD\r\nN:;" + new String(name) +
"\r\nTEL;TYPE=WORK:1\r\nEND:VCARD\r\n");
int num =
PhoneBookRecord.fromVFormat((InputStream)(new
ByteArrayInputStream(buffer.getBytes())),
PhoneBookRecord.PHONE_MEMORY);
Sample of code for calling of ‘toVFormat(OutputStream out, int
index, int outFormat, int sortOrder)’ method:
int index = 1;
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
PhoneBookRecord.toVFormat(outStream, index,
PhoneBookRecord.VCARD_3_0,
PhoneBookRecord.SORT_BY_NAME);
System.out.println("***** Contents of the output stream: *****");
System.out.print(new String(outStream.toByteArray()));
Code Sample 6 Phonebook API
See also other documents in the category Motorola Mobile Phones:
- RAZR V3 (110 pages)
- C118 (60 pages)
- C330 (166 pages)
- C139 (26 pages)
- C139 (174 pages)
- T720i (112 pages)
- C380 (97 pages)
- C156 (106 pages)
- C350 (30 pages)
- C550 (110 pages)
- V80 (108 pages)
- C155 (120 pages)
- C650 (124 pages)
- E398 (120 pages)
- TimePort 280 (188 pages)
- C200 (96 pages)
- E365 (6 pages)
- W510 (115 pages)
- V60C (190 pages)
- ST 7760 (117 pages)
- CD 160 (56 pages)
- StarTac85 (76 pages)
- Bluetooth (84 pages)
- V8088 (59 pages)
- Series M (80 pages)
- C332 (86 pages)
- V2088 (80 pages)
- P8088 (84 pages)
- Talkabout 191 (100 pages)
- Timeport 260 (108 pages)
- M3288 (76 pages)
- Timeport 250 (128 pages)
- V51 (102 pages)
- Talkabout 189 (125 pages)
- C115 (82 pages)
- StarTac70 (80 pages)
- Talkabout 192 (100 pages)
- i2000 (122 pages)
- i2000 (58 pages)
- Talkabout 720i (85 pages)
- i1000 (80 pages)
- A780 (182 pages)
- BRUTE I686 (118 pages)
- DROID 2 (70 pages)
- 68000202951-A (2 pages)