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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
xtpl_mobile
Posts: 5
Registered: ‎09-03-2008
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

Please use plain text.
Developer
simon_hain
Posts: 14,051
Registered: ‎07-29-2008
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
Please use plain text.
New Developer
xtpl_mobile
Posts: 5
Registered: ‎09-03-2008

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

Please use plain text.
New Developer
topo_topo
Posts: 9
Registered: ‎12-30-2008

Re: Simulate Phone call & message

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

 

Thx in advance!

Please use plain text.
Developer
simon_hain
Posts: 14,051
Registered: ‎07-29-2008
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
Please use plain text.
Administrator
MSohm
Posts: 13,065
Registered: ‎07-09-2008
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.
Found a bug? Report it using the Issue Tracker
Please use plain text.
New Developer
bigjosh
Posts: 1
Registered: ‎04-24-2009

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

 

 

Please use plain text.