Hi
I use the following code to try and open the contacts DB and count the number of contancts .
the file path is correct but:
1) the number I receive is 48 which I understand is actually 0 ( when usinf %f it is 0.00) .
2) in the file contacts.db properties there is no change in the last accessed time.
any idea why it doesn't work ??? 😞
TFileName contactDbFilePath;
CContactDatabase* newDefaultContactDb;
User::InfoPrint(contactDbFilePath);
CContactDatabase * contactDb = CContactDatabase::OpenL(contactDbFilePath);
RDebug::Print(_L( "number of contacts : %d", contactDb.CountL()))