Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
akhilmuppa
Posts: 41
Registered: ‎11-18-2012
My Device: blackberry sms message making

how to schedule a sms in blackberry simulator??

Actually i have return a code for sending the sms from blackberry simulator.its working fine.But know i want to schedule the sms for speicific time and date.So any one help me for this 

Please use plain text.
Developer
peter_strange
Posts: 19,604
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to schedule a sms in blackberry simulator??

Have you searched the forum?

 

I think you will find a number of useful posts, including this one:

http://supportforums.blackberry.com/t5/Java-Development/Receiving-SMS-messages-on-simulator/m-p/5648...

Please use plain text.
Contributor
akhilmuppa
Posts: 41
Registered: ‎11-18-2012
My Device: blackberry sms message making

Re: how to schedule a sms in blackberry simulator??

if suppose for example if i want to send sms after 10min.then i should i have a option to schedule the sms after 10min..

Please use plain text.
Contributor
newton53
Posts: 43
Registered: ‎11-30-2011
My Device: Dev Alpha, 8520

Re: how to schedule a sms in blackberry simulator??

use a Timer.

 

Timer t = new Timer();
t.schedule(new TimerTask()
{
	public void run()
	{
		// send sms code goes here
	}
}, delay);

 



I've got 99 problems and eclipse is all of them


Twitter

Please use plain text.
Contributor
akhilmuppa
Posts: 41
Registered: ‎11-18-2012
My Device: blackberry sms message making

Re: how to schedule a sms in blackberry simulator??

[ Edited ]

yeahh but.who to set time and date in the above code..Can you explain me deatil please

Please use plain text.
Developer
peter_strange
Posts: 19,604
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to schedule a SMS in blackberry simulator??

If you have sorted out how to send an SMS, then I think we have solved this Thread.  If you have a new question regarding setting the time for an event, I suggest that is a new Thread. 

 

But before you start a new Thread, do check out the documentation for the Timer class, as I think it answers your question.  The API documentation is a wonderful source of ideas if you review it carefully.  All those APIS were put in there because someone thought they might be useful - so have a look at them and see if you can figure out why!

Please use plain text.