Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Micro Edition
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Resilient Oracle PL/SQL: Building Resilient Database Solutions for Continuous Operation
this week in the
JDBC and Relational Databases
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Paul Clapham
Tim Cooke
Ron McLeod
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Junilu Lacar
Saloon Keepers:
Tim Holloway
Carey Brown
Stephan van Hulst
Peter Rooke
Mikalai Zaikin
Bartenders:
Himai Minh
Forum:
Java Micro Edition
connect 2 devices via bluetooth
Ono Yoru
Greenhorn
Posts: 4
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello all,
I have some problems with bluetooth connection between my device. Wish someone can correct my mistaken.
public void connect(){ RemoteDevice remoteDevice=null; StreamConnection con=null; String remoteAddress=""; String remoteName=""; try{con=(StreamConnection)Connector.open("btspp://xxxx:1;authenticate=false;encrypt=false;master=false"); remoteDevice=RemoteDevice.getRemoteDevice(con); remoteAddress=remoteDevice.getBluetoothAddress(); remoteName=remoteDevice.getFriendlyName(true); } catch(Exception e){ Alert alert=new Alert("Error","Warning: "+e.toString(),null,AlertType.ERROR); alert.setTimeout(Alert.FOREVER); display.setCurrent(alert); } }
I got bluetooth exception error which is "EMaxConnections", can someone tell me what is that mean.
Thank you.
[ December 16, 2005: Message edited by: Ono Yoru ]
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
Master Gardener Program
https://coderanch.com/t/771761/Master-Gardener-Program
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
java.io.IOException at out.write()
Bluetooth Connection Problem
btspp:// Fails
displaying NIC address in MIDlet
Nokia 6600 to PC communication issue. Please help.
More...