Bluetooth selectService/searchService problems

Hello,
I have the next problem, I have a client midlet that looks for a bluetooth service implemented. I can found the service with Nokia 6230 but not with N70, obviously it's the same code. I think it could be because N70 works with Symbian. I have tried using selectService and searchService methods and both works in 6230 but not in N70
¿can anyone help me?
I really need to solve this problem.

This is the code i'm testing with. I always obtain the same message "Required service haven't been found" so searchServices function always return SERVICE_SEARCH_NO_RECORDS. As i have told in previews messages, it works in Nokia 6230, Sony-Ericsson K800i but not in Nokia N70.
Any idea?
public class test extends MIDlet {
private LocalDevice localDevice;
private DiscoveryAgent da;
private Vector devices;
private Vector services;
public static final UUID[] SERVICIOS = new UUID[2];
private Listener listener ;
private Display display;
public void startApp() {
frm.append("buscando");
SERVICIOS[0] = new UUID(0x1101);
SERVICIOS[1] = new UUID("12345678901234567890123456789012",false);
this.devices = new Vector();
this.services = new Vector();
listener = new Listener();
try{
localDevice = LocalDevice.getLocalDevice();
localDevice.setDiscoverable(DiscoveryAgent.GIAC );
catch(BluetoothStateException e){
System.out.println("Error al iniciar.");
da = localDevice.getDiscoveryAgent();
display = Display.getDisplay(this);
display.setCurrent(frm);
lookDevices();
public void pauseApp() {
public void lookDevices(){
//Looking for bluetooth devices
try{
da.startInquiry(DiscoveryAgent.GIAC, listener);
catch(BluetoothStateException e){
alert.setString("Error looking devices");
display.setCurrent(alert);
public void lookServices(){
try{
for(int i = 0; i < devices.size();i++){
alert.setString("antes search");
display.setCurrent(alert);
int transid = da.searchServices(null, SERVICIOS, (RemoteDevice)devices.elementAt(i), listener);
alert.setString("After search");
display.setCurrent(alert);
catch(BluetoothStateException e){
alert.setString("Error looking services");
display.setCurrent(alert);
private class Listener implements DiscoveryListener{
public void deviceDiscovered(RemoteDevice remoteDevice, DeviceClass devclass){
try{
devices.addElement(remoteDevice);
alert.setString("Device discovered");
display.setCurrent(alert);
catch(Exception e){
alert.setString("Error adding device");
display.setCurrent(alert);
public void inquiryCompleted(int completed){           
switch(completed){                   
case INQUIRY_COMPLETED:
if (devices.size() > 0) {    
alert.setString("looking services");
display.setCurrent(alert);
lookServices();
else
alert.setString("Not devices found");
display.setCurrent(alert);
break;
case INQUIRY_TERMINATED:
devices.removeAllElements();
alert.setString("Seach have been finished");
display.setCurrent(alert);
break;
case INQUIRY_ERROR:
alert.setString("Error looking devices...");
display.setCurrent(alert);
break;
public void serviceSearchCompleted(int transID, int respCode){
if (respCode == SERVICE_SEARCH_COMPLETED )
if(services.size()>0){
devicesNames();
else if (respCode == SERVICE_SEARCH_NO_RECORDS )
alert.setString("Required service haven't been found");
display.setCurrent(alert);
public void servicesDiscovered(int transID, ServiceRecord[] servRecord){      
for(int i=0;i<servRecord.length;i++){
ServiceRecord record = servRecord;
services.addElement(record);
alert.setString("Service found");
display.setCurrent(alert);
{noformat}

Similar Messages

  • Lumia 535 Bluetooth headphone connection problem.

    I having problem with Bluetooth headphone connectivity problem. It is not showing the Bluetooth headphone in Bluetooth device search...
    > I also facing the problem with MixRadio...
    MixRadio not allowing me to download song through it..
    I tried every thing which shown on help+tips and solutions on company site , but its still not resolved...
    Help me please to solve this problem...

    Travellers wrote:
    MixRadio not allowing me to download song through it.
    Because Microsoft Mobile Community is rather high volume in threads, I recommend to create one thread for each topic. Especially in this case, because MixRadio has its own section. Are you able to log-into MixRadio with your Nokia Account? Are you about:
    A) individual songs (or complete album; purchase),
    B) offline mixes of MixRadio+, or
    C) MixRadio Unlimited download subscribtion.

  • Bluetooth automatic on problem

    Hi frdz, my Xperia Z2 phone got Bluetooth Automatic on problem.. I switched off every time.. When I was unlock .. Bluetooth was on... Please help me

    I have the same issue, after a use Bluetooth, and turn it off, it will turn on later automatically.
    I can only surpass it by rebooting

  • Bluetooth selectService() ?

    Hi all,
    I'm having problem with the following code:
    LocalDevice local = LocalDevice.getLocalDevice();
    DiscoveryAgent agent = local.getDiscoveryAgent();
    String connString = agent.selectService(
    new UUID("86b4d249fb8844d6a756ec265dd1f6a3", false),
    ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
    The error with WTK2.2:
    C:\WTK22\apps\Setting\src\Setting.java:137: cannot find symbol
    symbol : method selectService(javax.bluetooth.UUID,int,boolean)
    location: class javax.bluetooth.DiscoveryAgent
    String connString = agent.selectService(
    ^
    1 error
    com.sun.kvem.ktools.ExecutionException
    Build failed
    Could anyone help me please ?
    Thanks.

    selectService method attempts to locate a service that contains uuid in the ServiceClassIDList of its service record.so chk for uuid present in serviceRecord.

  • Is anyone going to admit the Bluetooth 4.0 problems?

    This is maddening.  I have been shuttled from one company to another, logging several hours on the phone and running to the Verizon store to try different phones with my bluetooth helmet that was working fine prior to the January update I received. No phone that has been updated with Bluetooth 4.0 works the way that it used to with my devices, including the brand new Motorola headset I bought just last week.  Below is a synopsis.  Sure would like ONE of the companies involved to say "Yes, there IS a problem, and we ARE working on it!"  Is that too much to ask?
    <Duplicate content removed for cross posting violations per the Verizon Wireless Terms of Service.  See https://community.verizonwireless.com/message/948963#948963 the original message.>
    Message was edited by: Verizon Moderator

    Most likely NEVER.. << comment removed to comply with Verizon Wireless Terms of Service >> I'm taking matters into my own hands now. Verizon Corp Headquarters are right up the freeway from me. Gonna see how far I can get upstairs to the penthouse and see what kind of answers I get. This is ridiculous. I have NEVER know Verizon to be this horrible about rolling out updates on their best selling phone. Been with VZ since before it was even called VZ. That's about 13-14 years. I'm not threatening, I just want to know why they are charging these exorbitant fees on every service and not giving what I've paid so much to them for?  I know.. I know.. but wish me luck.  Otherwise, I'm changing carriers when my contract is up in January, I guess. (not that they care)
    Message was edited by: Verizon Moderator

  • Mac mini bluetooth and safari problems

    I have done research on the boards,and so far haven't found a solution so i decided to make my own discussion.
    I have a 2009 mac mini that has run fine until this last month.When comeing out of sleep, the bluetooth magic mouse doesn't work. When i plug in a regular mouse to get me to my destop, everything in the top right toolbar is missing (adobe icon, time machine icon, bluetooth icon, wireless airport bars, and date and time) the search icon is still there, but if you scroll the mouse towards it, i get the not respinding beach ball.... if i go to system preferences, I get the not responding ball of doom as well... If i go to safari, it says i am not connected to the internet, even though when i do a network check, it says everything is up and running, If I go to restart, it just stays on the white screen with the loading circle unil i have to restart by holding in the button.....after the reset, everytihing works fine till i put the computer in sleep again (or logout of my name) .......
    I read that there are bluetooth problems with the mac mini of 2009, but this kind of sounds like more than that.. this hasn't happened before until i updated to LION... but sometimes it sounds like the mini is making a faint "squeaking" sound when it is trying to process things.. this doesn't happen often though... the mini is only 2 years old,almost 3, i can't imigine it dying soo soon... any ideas??? any help would be appreciated... thanks-bruce

    problem solved. Replaced key board, mousse and changed brands of USB bluetooth adaptor, which is now a D-Link brand I bought from an Apple store. Works like a champ.
    Lory

  • T500 Bluetooth driver upgrade problem, risk of wiping the harddrive

    Hi,
    I tried to upgrade my bluetooth driver on my laptop. The upgrade failed. After that I get an error when the computer starts.
    "The program can't start because btwhidcs.dll is missing from your computer. Try reinstalling the program to fix this problem"
     When I try to reinstall, first all goes well. At the last part of the installation I get an "Error 1935. An error occurred during the installation of assembly"
    When I search on google this seems like a common problem. But I haven't found a solution for it anywhere.
    What I did found that for some people files where deleted on the system drive when they tried to uninstall their old driver.
    Here are some people that lost data on their harddrive when trying to uninstall the old driver.
    Unable to install bluetooth driver
    Broadcom bluetooth
    Bluetooth with enhanced data rate software II
    Bluetooth update killed my Windows 7
    installation of bluetooth driver error 1935
    Potential data wipe while updating x220 bluetooth driver
    Widcomm uninstallation wipes out the computer
    Lenovo and others seems to have suggested to uninstall the old driver when people have requested help.
    Bluetooth installation problem
    Here I found some posts that might help with finding a solution. It is about kb970652. Not sure what needs to be done though.
    Error 1935
    This seems like a known problem that should be fixed in version 6.4 version of the drivers. 
    Installation of bluetooth driver error 1935
    but there is no post in the thread with the new drivers or information about them.  After a lot of searching I found a post where Lenovo went out with a warning. The warning is here:
    Please note - Report - Bluetooth with Enhanced Data Rate Software II for Windows 7 wipe main drive
    There are updated drivers in the post. But they seem not to be for the T500 and on the download page T500 there is no new version of the drivers.
    I talked to Lenovo support a couple of times but they say they only handle hw problems. They recommended removal of devices in Device Manager, uninstall reinstall etc. But after all posts of lost data I don't want to try to uninstall if I am not sure it will not corrupt my computer. I asked them if they could forward to their team to update drivers for the t500 but they seem not to have done that.
    Right now I have no working bluetooth anymore.
    We have hundreds of lenovo laptops in our offices and I really would like to know if we risk risk data loss if a user uninstalls bluetooth drivers. How could we upgrade them to remove this risk?
    So my questions are:
    Does anyone know what versions of the drivers are unsafe to uninstall and what versions are safe to uninstall?
    How can you fix broken updates? Like on my T500. There is no new driver for it on it's download page?
    What is the way to upgrade bluetooth on "unsafe" machines (where uninstallation of bluetooth would corrupt them)?

    Hello and welcome,
    The last post in a long thread on this topic links to a driver for the T500 among other machines.  I haven't tried it myself.
    OS wiped out during Bluetooth drivers update
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • IOS 4.2.1 Bluetooth audio streaming problem

    My iPod touch paired & connect to bluetooth headset. but, every time I play a music I can only hear it for 1 second. After that? total silent. I tried forget the device and re-paired the device. But the problem still persist.
    Back when I used iOS 4.1, the music stream perfectly.
    What to do? what to do?

    I just tried reset my network. And the problem still persist

  • Harman Kardon SoundSticks Wireless bluetooth on Yosemite problem

    Hi there,
    Since upgraded to Yosemite, I have problems with re-connecting my Harman Kardon SoundSticks Wireless (via bluetooth) to MacBook Pro (retina 15" late 2013). Every time when that happen, I need to restart the speakers to make them connect again.
    Is there some solution for this problem?
    Cheers!

    I’m having the exact same problem but with the Harman Kardon Esquire Mini, also on the Macbook Pro, same year as yours. It started when I still had Mountain Lion iOS. They first said it was a hardware problem then installed Yosemite as the fix. It did not fix it. My Mac will not pair with hubby's JBL bluetooth speaker either. And the HK speaker works fine with all our other devices.

  • Bluetooth headset pairing problem

      I got E71-1 (11) firmware version 210.21.006 device and i also got this bluetooth headset HBH-PV720  http://www.sonyericsson.com/cws/products/accessories/overview/hbh-pv720
    And i can't pair the phone with the bluetooth headset
     Does E71 support this Headset? Or i am doing something wrong? 
    Type the name of a command and press enter to execute it, or help for assistance.

    many have talked about its need, I dont know when a software update will enable this
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • Bluetooth and Wifi Problem

    Hi.
    I have a Bluetooth Mighty Mouse and Bluetooth Apple keyboard (not the new thin one). When I have them linked with my MBP the wireless will randomly stop working until I disable Airport in the menu bar and then re enable it. When I don't have the bluetooth devices connected this is not a problem at all. The router I am using is a wireless g router. Is there maybe something wrong with my laptop?
    Thanks for your help.
    Peter

    Satellite Radius P55W-B5220
    Downloads here.
    For other viewers, these are the files available at that site.
       Intel Bluetooth Filter Driver - v3.0.1342.02; posted 2014-03-11
       Bluetooth Stack for Windows by Toshiba - v9.10.32T; posted 2015-02-24
    -Jerry

  • B560 bluetooth file transfer problem?

    hi
    I like when I upload a file with Bluetooth gives this error?
    where is  the problem?

    first of all, make sure you have bluetooth hardware and secondly activate bluetooth by pressing fn + f5.

  • Mighty Mouse (BlueTooth) Right Click Problem

    Many times when I right click on the mouse, nothing happens.
    If I move the tab (on back on mouse) covering the blue tooth signal, apple reports mouse not found. The mouse then is found and my right click function works. I did this to reset the mouse to solve the problem but it does not make it a permanent solution.
    Do I have a defective mouse or is this a normal behavior with this mouse. I have used other mice before on Windows PC and no other wireless mice exhibits this behavior.

    "Laser illumination is considered more superior " ???
    Yes, I'm a 20+ year veteren of many Apple mice.
    Laser is clearly the superior choice over the optical in the MM.
    MM skips with detail moves, this Logitech mouse is precise and smooth.
    The Logitech mouse is wireless and has it's own combination charger stand/bluetooth(?) reciever that just plugs into a USB port. No batteries to worry about. Plus it's more egronomic and one can do a right click and a left click at the same time, unlike a MM.
    Apple's MM (in both forms) is clearly inferior, I've been through two already since they have been out. Being the Apple loyalist I am, I gave it a second try. But I need to get some work done without having to fight a greasy scroll pea and gunked up rollers with MM.
    In this hardware case Apple has been clearly bested, perhaps it was intentional, who knows? Apple's MM just plain under-performs.
    I'm almost positive you'll be happy with this Logitech brand/type of mouse.
    I'm sure if you shop around you can find it on sale, I did for about $30. A fraction of what a wireless MM would cost you.
    (no comp)

  • Bluetooth Issues + Snowballing Problems

    So, the first sign of trouble for me was when my bluetooth mouse stopped working this morning. At first I thought it was the mouse's fault, because my computer (MBP) gave no indication that bluetooth wasn't working.
    When I tried re-pairing my mouse, the setup assistant showed that it was searching, but no devices were found. Then I tried connecting to my phone, and it said there was a problem connecting. I tried other people's phones, and still didn't work. I paired my mouse to my friend's computer just fine.
    I googled, and found some things that said repairing disk permissions and then restarting can get the bluetooth working again, so I tried to repair disk permissions. It sat for 15 minutes getting the permissions without even starting the repair, so I canceled it, because any other time I have repaired permissions it has taken no longer than 2 minutes to start.
    Then I tried going into the bluetooth system preference pane (before I used the drop-down bluetooth menu to get to the setup assistant) and I get the beachball of death until I force-quit system preferences.
    I restarted my computer and when I logged in, I noticed that there was no clock in the menubar. I went into Date & Time and turn on "display clock in menubar" but whenever I exit the preference pane and go back, the box is again unchecked. Displaying the clock in the menubar refuses to stay checked.
    Then I tried using the dropdown bluetooth menu in the menubar again, and I got the beachball of death for that. Now when I hover over any system-related menubar item (battery indicator, bluetooth, sound, time machine), I get the beachball of death again. I've let it sit for quite a while, and those menubar items are still not working, even after relaunching the finder.
    So... any help would be appreciated, since I appear to be sort of screwed at the moment.
    (Also, backing up and restoring, or restoring to an old time machine is NOT an option.)

    I had the same problems this morning. First, I checked Activity Monitor; several processes (including Bluetooth) were in "not responding" state. After some Google searches, I ran Disk Utility to repair permissions. It appears to be fine now.

  • Z1 bluetooth and network problem after updating to 1.136

    Hi,
    Last week I updated my phone via PC companion when it notified me a new system update was available. The update took me from Android 4.2.2 to 4.3, and the biuld number is now 14.2.A.1.136.
    I use my phone with a SmartWatch 2 all the time, and a SBH20 bluetooth headset in my car. Before the update everything worked fine, but now I have issues with bluetooth connectivity. My SmartWatch 2 randomly disconnects and reconnects to the phone, and so does the headset. In the watch, specifically the Whatsapp notification app by LIS software stopped getting notifications most of the time, although every once in a while it does. The SBH20 also randomly disconnects and sometimes it takes minutes to reconnect by itself. I already unpaired and paired again both devices, even reset the SmartWatch, and the problem persists.
    But the most recurrent issue is that the phone repeatedly notifies me to "Sign in to network"... and has problems connecting to the 4G and even to wi-fi networks, meaning that sometimes I don't get any data at all for who knows how long, because it happens randomly.
    One thing that seems to me is that every time i lose my bluetooth connections it's because (or at the same time) of whatever happens that triggers the "Sign in to network" notification.
    I was really happy of having purchased the whole package of phone, watch and headset, please help me with this.
    Leonardo

    This is the responses I go from Sony "Customer DON'T Care....." regarding bluetooth issues - 
    "We can advise Sony Xperia do not test our products with other manufacturer’s devices and so we can not confirm the two devices are compatible.
    As the handset has been updated this does indicate it is running different software which means the Bluetooth will have also been updated. Sadly, as Sony Xperia does not test our products with third party Bluetooth devices we will not have been able to foresee the change with your specific device.
    We could only suggest that you contact the manufacturer of the device for any further assistance as there is nothing further we could advise.
    We do apologise for any inconvenience this may have caused.
    It is not that the software does not work it is the fact that we have updated the bluetooth drivers withing the update you have which no longer makes the bluetooth compatable with your car kit, if you ahve not contacted the car manufacturer already then I would suggest contacting them and seeing if there are any updates needed to the car kit."
    Mmmmmm... so it seems that they DO NOT test any O/S upgrades against anything.....
    It seems strange that both Samsung(S3 running 4.3)  and HTC M* (running 4.4.2) both work perfectly with my car audio system and the "developers" at Sony cant... either that or they just do not care... The smart money is on the latter... My z1 is THE WORST PHONE THAT I HAVE EVER HAD THE MISFORTUNE OF OWNING....

Maybe you are looking for