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
New Developer
Posts: 5
Registered: ‎09-03-2008
My Device: Not Specified
Accepted Solution

Simulate Phone call & message

Hello All,

 

i am developing an applicaiton that uses the phone api and messaging api. and before putting it on device i want to

test it on simulator ... so can i simulate phone call on simulator  (incoming call)  and a incoming message..

 

right now am using the 4.2.0.... Please guide me is this possible and if yes how to ?

 

Regards,

xtpl

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Simulate Phone call & message

phone calls are easy, there is an own menu point on the simulator.
to get mails you have to run the email server simulator (ESS), you can send yourself real mails, then.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
New Developer
Posts: 5
Registered: ‎09-03-2008
My Device: Not Specified

Re: Simulate Phone call & message

thanks simon..

 

i checked the phone call simulation.. it is great...i was naive enough to ignore that...

but for the messages, i was asking about sms messages..

i should have specified the "sms" ... :smileyhappy:

 

so is it possible that simulator can have an incoming SMS.. ?

 

Regards,

xtpl

New Developer
Posts: 9
Registered: ‎12-30-2008
My Device: Not Specified

Re: Simulate Phone call & message

Anyone knows how to simulate new SMSs in the simulator ??

 

Thx in advance!

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Simulate Phone call & message

take a look at your samples directory, there is a smsdemo (device and server component)
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
BlackBerry Development Advisor
Posts: 15,117
Registered: ‎07-09-2008
My Device: BlackBerry Passport
My Carrier: Bell

Re: Simulate Phone call & message

Here is how you can simulate incoming SMS messages in the BlackBerry Simulator:

 

1.  Launch the BlackBerry simulator, noting the values specified on the command-line for /sms-source-port and /sms-destination-port


2.  While that simulator is still running, launch another one from the command line but switching the SMS source and destination ports


3.  The 2nd simulator will report port conflicts; continue but note that you will not be able to connect the debugger, MDS Simulator or Email Server Simulator to the second simulator instance.


4.  Send SMS messages from the 2nd simulator.  They should show up in the inbox of the 1st simulator.  Note that these received SMS messages may be incorrectly marked as “read” or “important”.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
New Developer
Posts: 1
Registered: ‎04-24-2009
My Device: Not Specified

Re: Simulate Phone call & message

You can avoid needing to run two copies of the simulator by just setting the send and recieve ports to the SAME value (I picked 1212). Now any time you send an SMS in the simulator, you will recieve that same SMS instantly.

 

To set the ports in the JDE, go into Edit-Prefs-Simulator->Network. You might need to create a new profile since the default one does not seem to let you update these vaules.

 

-josh