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
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT
Accepted Solution

How to execute Socketdemo program on Smartphone ?

  So far, I could use simulator 9800/9900 to link with other pc by socketdemo.

However, smartphone connection with other computer is fail by socketdemo.

 

Does anyone know the reason?

 

Thank your attention.

 

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

Re: How to execute Socketdemo program on Smartphone ?

does it work using wifi?
----------------------------------------------------------
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
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to execute Socketdemo program on Smartphone ?

Wifi is turning on by local network and Roger data plan.

However, the HelloWorld message still does not get yet.

 

??

 

Do I need to change some setting for Smartphone?

 

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

Re: How to execute Socketdemo program on Smartphone ?

i suggest that you use http://www.blackberry.com/developers/docs/7.1.0api/net/rim/device/api/io/transport/ConnectionFactory... to improve your connection.
----------------------------------------------------------
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
Super Contributor
Posts: 253
Registered: ‎08-19-2010
My Device: BB10, Playbook, 9900, 9800, 9700, 9550, 9530, 9500, 8700.
My Carrier: TT

Re: How to execute Socketdemo program on Smartphone ?

[ Edited ]

Finally, 

Socketserver with JRE 6 connects with 9800-OS.6 with BlackBerry JRE 6. 

Successfuly run socketdemo. 

 

9900 + os 7 + socket-client BlackBerry JRE 6 + serversocket with JRE 6. successful.

 

BlackBerry JRE 7 with serversocket with JRE 7. --> has unknown bug. Be careful.

 

Cheers everyone who meets the same issue.

 

 

-Fight with BB10