Skip to main content

how to create/alert sound on incoming Push sms?

1 reply [Last post]
sahrear
Offline
Joined: 2009-03-22

I have a application which receives sms.. whenever any message arrives handset asks me to allow the application to launch. Rather asking me for launching it, can i show on the screen that 1 message received with a alert tone?

In a nutshell:
1. On incoming event can i show a popup box which says 1 message received rather asking me for allowing the application to launch?

2. Can i/handset create a sound upon receiving an incoming message/event?

Regards
Sahrear

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jaywayjohan
Offline
Joined: 2008-06-18

Hi,

here comes my answers:

1. The best way to ensure that a popup is not shown is to sign your MIDlet suite with a trusted certificate. The user will have to accept the MIDlet when installed, but a popup should never appear afterwards.

2. Use the playTone() method in the Manager class. Look in the MIDP documentation for more information.

Regards
Johan