Why I got the same reslults whether the Bluetooth adaptor plug or not?
I am trying to make communication from USB Bluetooth adaptor on my laptop to other Bluetooth device on J2ME environment, but after I finished the java code, and there is a problem, the laptop cannot detect any Bluetooth device. I am not sure which part I should change.
1) When I install the Bluetooth adaptor, I select com 4 as service port, but I did nothing with this in my Java code.
2) My developing environment is: Eclipse 3.2, JDK 1.5, WTK 2.5, J2ME , and my main program is Midlet program.
The following is my code; anybody can give me some suggestions.
And the running result is :
Running with storage root temp.MediaControlSkin21
Running with locale: English_United States.1252
Device Bluetooth Address: 0000000DECAF
Starting device inquiry...
no device found
and the big question is whether I plug the Bluetooth adaptor or not, the program always get the same result?!! And I never made any code to get the �Device Bluetooth Address: 0000000DECAF�, what is this address? I even did not plug the Bluetooth adaptor~~!!!
import javax.bluetooth.*;
import java.util.*;
public class BTConnector implements Runnable, DiscoveryListener {
private javax.bluetooth.UUID uuidSet[] = {new javax.bluetooth.UUID(0x1101)};
RemoteDevice remoteDevice;
try {
// create/get a local device and discovery agent
LocalDevice localDevice = LocalDevice.getLocalDevice();
discoveryAgent = localDevice.getDiscoveryAgent();
System.out.println("Starting device inquiry...");
discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);
transactionID = discoveryAgent.searchServices(null, uuidSet, remoteDevice,this);
// Searsh for services on the remote bt device.
catch(BluetoothStateException exp){}
public void doDiscoverService (RemoteDevice remote){
// Called if a remote btDevice is found
public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {
try{
deviceNames[index] = btDevice.getFriendlyName(false); System.out.println(index + " : " + deviceNames[index]);
index++;
devices.addElement(btDevice); //
}catch(Exception e){
public void inquiryCompleted(int discType){
if (devices.size()==0) {System.out.println("no device found");}
else {
System.out.println("inquiryCompleted");
public void servicesDiscovered(int transID, ServiceRecord[] servRecord) {
if (servRecord.length==0);
public void serviceSearchCompleted(int transID, int respCode) {
System.out.println("serviceSearchCompleted");
}
{color:#000080}Dean
Can you read dates? Take a look at when this thread was started.
Make sure that javax.bluetooth is on your computer, and is included in the Classpath.
And please don't resurrect any more long dead threads. You are welcome to start one of your own.
db{color}
Similar Messages
-
Tried to "Open As" in PS a NEF file I modified in LR. Got the following error message: "Could not complete your request because the file format module cannot parse the file." I can "Open" the file in PS, but then the changes I made in LR (and saved in the associated meta data file with the "Control S" command) are not applied to the opened PS file. HELP!
If you are working with a file you modified in Lightroom, you should go to the Lightroom Photo menu and choose Edit in... and the version of Photoshop you want to open it in.
There a dialog will ask if you want to transfer the LR settings you made to your photo when you open in Photoshop.
Gene -
I am running an Apple imac G-5 with OS 10.5.8. Processor: 2 GHz. Memory: 2 GB DDR SDRAM. I am getting the message that my version of Safari is no longer working. I downloaded a newer version of Safari and I got the message that it would not work with my OS 10.5.8. Does any one have a suggest
Your post somehow found its way to a little-viewed forum for an obsolete Apple productivity program. I have asked the Hosts to move you to a more active and appropriate forum for your product.
-
In the attached VI I don't understand why data from the inner case structures are not being transmitted to the array.
Thank you.
Solved!
Go to Solution.
Attachments:
TEMP.vi 25 KBIt took me some time to figure what you are trying to do but I think I have it now.
The SR is still required.
What is happening is your "Bundle By Name" is replacing all of the fields of the cluster, not just the value coming out of the case structure. So to maintain the cluster stuff you do in earlier iterations you can either...
1) Put the "Index array, Bundle by name, and Replace array" inside the case structure and ONLY bundle the value you are setting in that iteration. (as you will see Tim post shortly)
OR
2) Move the Index array before the Case, unbundle all of the fields and feed teh case structure and run them across the case so that ALL of your output tunnels come from the coresponding input tunnel EXCEPT for the filed you are trying to set.
Ben
Message Edited by Ben on 05-05-2010 01:31 PM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
When I go to move a song from my library I got the message "this computer is not authorized"... if I go to the store pop down and authorize the compter is says "this computer is already authorized".... what's going on?
If a small number of your iTunes purchases are affected, delete and redownload them if doing so is free in your country. If you get that message for every item, click here and follow the instructions.
(69023) -
Hi. I just got the iPhone 6, plugged into itunes and made the mistake of putting an OLD back up on my new phone resulting in losing all contacts after 2013. They are not saved on the cloud. Is there any way to go back to before I screwed up?
If you have performed a sync with the device since you restored this old backup, then don't bother looking for another backup. iTunes writes over the last backup each time you sync. If you were handling contacts in iCloud, you would find them by logging into iCloud. Or you can check settings and iCloud and see if the button it on for Contacts. Otherwise it might have been on the computer, if you had a program that syncs with iTunes and handles contacts, depending on the computer system you use. If Windows, it would be Windows Contacts or Outlook. If a Mac, there is a Mac Address book as well.
-
Ever since I got the iTunes upgrade, iPhoto does not open and get pictures from my iPhone. How do I fix this? Thanks.
You can stop new photos being automatically added to Photostream in iPhoto from iPhoto preferences > Photostream.
-
i tried to install vonage extensions application but i got the answer''your request could not be completed. how can i do this?
when are you getting the message? are you downloading the proper app from the app store?
-
Purchased Photoshop Elements 13 (upgraded from Photoshop Elements 10), downloaded, entered serial numbers, then got the error message: "OS Requirement not met, Windows Vista not supported" now what?
Sweetie Bug wrote:
now what?
System requirements | Adobe Photoshop Elements
The last version of PSE which supported Vista was version 12.
You'll either have to upgrade your operating system to Windows 7 or Windows 8 or return PSE 13 for a refund. -
when apple will fix the problem of the Bluetooth. It is not working after the upgrade to7.03
there is no problem with B/T and iOS7.0.3 in my case used on iPhone 5 and 4 in several environments including in car
Do a reset
restore with back up and if required as new -
After updating OS X 10.8.5, bluetooth is not available in the menu bar.
The Magic Mouse is recognized and working but the bluetooth mouse functions do not work.
I have downloaded and installed 10.8.5 combo but it does not help.
Menu bar - System Preferences/ there is no bluetooth item
I restarted with cmd + alt + P + R it doesn't help.Did you try the suggestions from your other post on this?
-
I just migrated from MacBook 13' OSX 10.6.8 to MacBook Pro 15' Retina OSX 10.8.2 with the use of Migration Assistant. When attempting to install my Magic Trackpad, the Bluetooth Assistant mentions "name not available" so that the device cannot be detected. In have disconnected the firewall.Thanks for assistance.
Create a new, temporary admin account and see if you can set it up in that account.
-
The bluetooth of my ipad not recognize in my acer-pc?
the bluetooth of my ipad not recognize in my acer-pc?
That's correct. iOS supports the following Bluetooth profiles only:
iOS: Supported Bluetooth profiles -
I am using iphone 3GS, after syncing for few times and got the errors. I deleted the backup from Edit-> Preferences-> Devices. Then I synced again, there was an error message: itunes could not back up the iphone because the backup was corrupt or not compatible with the iphone. What can I do? I have no backup anymore on ituens.
babesharon
I closed iTunes & manually deleted the file which was still stored locally even though it didn't display in Preferences. I have vista so I went to
C:\Users\{user name}\AppData\Roaming\Apple Computer\MobileSync and deleted everything in the Backup folder (though I left the folder as is). If you have a different OS search the apple website for the backup location.
I reopened iTunes & Synced with out a problem. I also got the update to install.
Good luck. -
I just got the IPhone 4 & It's not sending/receiving messages
Hello, I just got the I Phone 4 just a few days ago & I can't receive or send any messages to non- I Phone phones. Or receive any calls . and they can't get my texts...
Whats up with this?Launch the Settings App. Under Settings, tap on Mail, Contacts, Calendar.
Then tap on Add Account
Tap on Microsoft Exchange to configure Hotmail
Enter your full Hotmail email address in both Email and Username fields. Leave Domain blank. Enter your password. In the Description field, enter a name, e.g. Hotmail
Then tap on the Next button.
After the details entered above are successfully verified. You will get another screen where you need to enter m.hotmail.com for the Server name. Then tap on the Next button
If the verification is successful, you will see this screen. Select the data (Mail, Contacts, Calendar) to sync and then tap on Save
Thats it, you're all set for push email, calendar and contacts for your Hotmail account
Maybe you are looking for
-
Oracle ODBC driver 8.1.6.2.0
Hi I want know where can I download the Oracle ODBC driver version 8.1.6.2.0?I read in the Oracle support that the access violation error due to network problems is fixed out in this driver version.Please guide me where to download it. Thanking in ad
-
Hi All, When I am tryig to print this in a line, its printing upto 109 chars only,after that nothing I am able to get, May I know, is there any thing to do for horizontall scrollers. or, it has to come by default. write:/ 'orderrno',14 '|',
-
Does anyone know if their servers are down?
I am hearing rumors that apples servers are down and thats why original iphone users cant reactivate their phone so if you know for sure then please reply and tell me
-
Hi I know the menu path and when I check for T -code , I did not find one. How do I get tcode . that really helps me to go directly to transaction rather than going menth path every time regards Kumar
-
I've been trying to get a more "live" sound into garageband. I've been using a griffin imic as my way to capture sound. Weather it's drums running thru a mixer or simply using a pod line-6, there is a very audible interference heard once the signal h