Listing text messages
hi,
I have been searching and i got a code shown below..
- Code:
- import Qt 4.7
- import QtMobility.messaging 1.1
- Rectangle {
- width: 320
- height: 480
- ListView {
- id: list
- anchors.fill: parent
- model: MessageModel {
- sortBy: MessageModel.Timestamp
- sortOrder: MessageModel.DescendingOrder
- }
- delegate: Item {
- id: wrapper
- height: 32; width: list.width
- Text { id: subjText; text: subject; font.pixelSize: 13; x: 3 }
- Text {
- text: sender; color: "gray"; font.pixelSize: 9
- x: 3; width: parent.width-100;
- anchors.top: subjText.bottom; anchors.topMargin: 3
- elide: Text.ElideRight
- }
- Text {
- text: date; color: "gray"; font.pixelSize: 9
- anchors.right: parent.right
- anchors.top: subjText.bottom; anchors.topMargin: 3
- }
- }
- }
- }
Doing on-device debugging i am unable to get the list of text message received…
I have symbian Anna Running on my E7 , and recently i came to know that Mobility api is upgraded for symbian Anna. So is this a reason i am unable to get list of text messages ??
1 reply
Probably too late to reply to this post since it was posted several months ago but I did play around with your code and found I needed to modify the xxx.pro file to display messages otherwise I ended up with a blank screen such as you did.
Try adding ‘ReadUserData’ as below;
- Allow network access on Symbian
symbian:TARGET.CAPABILITY += NetworkServices ReadUserData
Hope this helps :-)
You must log in to post a reply. Not a member yet? Register here!
