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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


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

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 

Developer
Posts: 19,636
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...

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

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..

Contributor
Posts: 43
Registered: ‎11-30-2011
My Device: Dev Alpha, 8520
My Carrier: Vodafone

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

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

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

Highlighted
Developer
Posts: 19,636
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!