I can't find com.motorola.phonebook too.
Following on a thread from "development", has anyone come across any SDK containing com.motorola.phonebook? I have the 4.3, 5.2.1 and 5.4.2 SDKs and com.motorola.phonebook isn't implemented in any of the midp.zip or stubclasses.zip files. According to a post I saw elsewhere, there may exist an alternative SDK that has this class implemented, anyone seen it?
I can't find com.motorola.phonebook too.
Visit my Blog here.http://my.opera.com/eakrin
i dont think its phone book.. there is only com.motorola.phone in midp.zip ... if i am not wrong this should have the functionality thatu r looking for in phonebook ...
and this is in sdk 4.3 only.. later versions dont have it
No, com.motorola.phone contains stuff like: com/motorola/phone/Dialer.class,which is for dialing numbers. That stuff works fine. The phonebook API belongs to a different class. I have found an application that uses it, which ismotorola_3d_phonebook.zip, it doesn't work on the A780 as it needs some graphics class that isn't on it, however it does make the appropriate calls. Perhaps it can be used to derive the com.motorola.phonebook interfaces. If I decompile it Iget stuff like this:
import com.motorola.phonebook.PhoneBookException;
import com.motorola.phonebook.PhoneBookRecord;
...
if(PhoneBookRecord.isValidRingTone(i))
{
String s = PhoneBookRecord.getRingToneName(i);
...
catch(PhoneBookException phonebookexception)
{
System.out.println("Error loading ringtones list: " + phonebookexception.getMessage());
}
etc.
Tech Support @ motocoder tellme that com.motorola.phonebook class is open only DNA company and not include in any SDK.
I'm very boring with motolora about software development. all resource and API was closed. and no new software release from motorola.
Visit my Blog here.http://my.opera.com/eakrin
Yeah... I downloaded 4.1, 4.3, 4.4.2, 4.4, 5.1.2, 5.2.1, 5.3.1, 5.4.2 sdks and didn't find it.
I'm not convinced it's impossible though, I'm sure it just requires us to create a dummy library that matches the api.
By the way, I note that the 4.3 API has the following note in D cs/Device_APIs.htm
Phonebook (licensee and Vodafone only)
Ring them up again and say you're from Vodafone![]()
Hmm, just ran strings again and found this:
./sdk41/Emulator7.5/lib/KVM.dll:com/mot/tools/j2me/emulator/nat/reference/com/motorola/phonebook/PhoneBookImpl
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_add
./sdk41/Emulator7.5/lib/KVM.dllLcom/mot/tools/j2me/emulator/nat/reference/com/motorola/phonebook/PhoneBookRecord
I
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_update
./sdk41/Emulator7.5/lib/KVM.dllLcom/mot/tools/j2me/emulator/nat/reference/com/motorola/phonebook/PhoneBookRecord;I)I
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_delete
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_getRecord
./sdk41/Emulator7.5/lib/KVM.dllI)Lcom/mot/tools/j2me/emulator/nat/reference/com/motorola/phonebook/PhoneBookRecord;
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_findRecordByTelNo
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_findRecordByName
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_getNumberRecords
./sdk41/Emulator7.5/lib/KVM.dll:com_motorola_phonebook_PhoneBookRecord_getAvailableRecords
...
Perhaps that's of some use.
Ok, here's my first attempt at adding a phonebook record. I just created a skeleton class with a couple of empty methods in it, installed my app and ran it with kvm -launch 603
Start running local class
java.lang.SecurityException: com.motorola.phonebook.PhoneBookRecord.add(): Phonebook write permission denied
- com.motorola.phonebook.PhoneBookRecord.checkWritePermission(), bci=119
- com.motorola.phonebook.PhoneBookRecord.add(), bci=3
That looks good
Ok, now I copy my permfile.txt over and run it again.
Start running local class
db_client[428]B: wrong pointer 0xbfffd740 for table which have flag 1f9b48
db_client[428]:Filter Return Value: 22
device got = 0
db_client[428]B: wrong pointer 0xbfffd6e8 for table which have flag 213870
db_client[428]:Filter Return Value: 22
So, it looks like I'm getting to the phone database but am passing in bad data, perhaps because I haven't done some initialisation. Anyway, it's a start.
Wey hey! I've added a phonebook entry, a new category and requested and got the maximum name length (14).
Yoh!! amazing. which version of SDK u used?. all phonebook class methods are list in Developer guide so we can create complete phonebook class.
btw. did u see http://www.sleepycat.com/ it's about berkeleydb. native.db is use berkeleydb. sleepycat distributed java library of berkeleydb.
Visit my Blog here.http://my.opera.com/eakrin