Languages

Menu
Sites
Language
Where does the SMS are stored in tizen

Hi all,
Can any one tell me where does the sms are stored in tizen database (name & location of the database).
Regards
Harish 

Responses

5 Replies
Alex Ashirov

Hi,

You can use Tizen::Messaging::SmsManager::SearchMessageBoxN() API in order to search/access the SMS messages by keyword in the specified message box.

harish kumar kavali

Hi alex
i had already came across with this api , but the problem with the api is i can't get all the messages at a time. i need to provide a count of messages to be searched.
& another problem is  i need all these messages in the form of a file.
Regards

harish

Alex Dem


Hi,
Regarding first problem:
You could try to obtain count of all messages using GetTotalMessageCount api and use empty string as keyword, try to perform something like this (based on MessageSender Native example):

        int messageCount= __pSmsManager->GetTotalMessageCount(SMS_MESSAGE_BOX_TYPE_ALL);

        SmsListener *sl=new SmsListener();
        sm.Construct(*sl);

        int totalResultCount=0;
        String res="";
        IList *mlist = null;
        mlist=sm.SearchMessageBoxN(SMS_MESSAGE_BOX_TYPE_ALL,&res,0,messageCount,totalResultCount);
        delete sl;

Alexey.

harish kumar kavali

Hi alex
is there any way to store back the messages in the IList to message box
Regards
Harish 

Alex Ashirov

Hi Harish,

It's not possible. You can only search/read messages. If you send message then it will appear in the SentBox. If you receive message then it will appear in the InBox. But we can't edit these storages via the API.