You Are Here:

Community: Developer Discussion Boards

#1 Old Unhappy Connection between PC and mobile - 2005-11-13, 20:56

Join Date: Nov 2005
Posts: 1
rubaradi
Offline
Registered User
Hi all:
I am developing an application that has the server on PC running on windows 2000,XP and the client on a mobile .

I writing my code on J2ME ,I am using the wireless toolkit 2.2 to emulate the client mobile
when I try to run my code on the server, I mean make the server on the discoverable mode I have the following exception :
can't set the discoverable mode exception....... javax.bluetooth.BluetoothStateException

java.Lang.unsatisfiedLinkError:isNetworkMonitorActive at javax.microedition.io.Connecter.isNetworkMonitorActive<Native

Method>

and I want to ask that if I use USB bluetooth will the problem be solved????To be more specifis I want to run my code on the

emulater..........but how i can do that whren the server is A pc not amobile
*********here are part of server code:******************************
Note : I run the the code from main by declaration an object of BTServer
BTServer( ){

Thread accepterThread = new Thread(this);
accepterThread.start();

}


public void run(){
try {
local = LocalDevice.getLocalDevice();

String address=local.getBluetoothAddress();
System.out.println("bluetooth address of server device is"+address);

local.setDiscoverable(DiscoveryAgent.GIAC);

if (!local.setDiscoverable(DiscoveryAgent.GIAC))

System.err.println("Can't set discoverable mode...");
else
System.out.println("in discvored mode");

} catch (BluetoothStateException e) {
System.err.println("Can't set discoverable mode Exception..."+e);
}
}


please can anyone help me??????????
Reply With Quote

#2 Old Re: Connection between PC and mobile - 2005-11-26, 19:00

Join Date: Nov 2005
Posts: 6
Location: Toronto, Canada
skarzhevskyy
Offline
Registered User
I used WTK2.2 (only) on windows to start the server.
It is working but it does not use any real BT device.
I can connect application to aplication.

But when I start Nokia Connectivity Framework and try to load midlet app using Nokia stuff it does not work.

Tell me more details about you configuration.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia