Namespaces
Variants
Actions
(Redirected from How to detect SMS in Outbox)

Archived:How to detect SMS in outbox in PySymbian

Jump to: navigation, search
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.


These code snippets are used to detect the SMS in the outbox using the inbox module in PySymbian.

Article Metadata

Article
Created: User:Kandyfloss (19 Apr 2008)
Last edited: hamishwillee (08 May 2013)

The two methods are as below

Method 1

#import inbox and messaging
import inbox
import messaging
 
#Body of the detecting function
def detect(id):
global outbox
outbox.delete(id)
# send msg again
 
outbox=Inbox(inbox.EOutbox)
outbox.bind(detect)

Method 2

#import inbox and messaging
import inbox
import messaging
 
 
outbox=Inbox(inbox.EOutbox)
 
# send msg code
 
# messages in outbox ?
if outbox.sms_messages() is not None:
# delete all outbox messages !
for m in outbox.sms_messages():
outbox.delete(m)
# send msg again
This page was last modified on 8 May 2013, at 08:27.
198 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved