Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7682003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:28:08+00:00 2026-05-31T18:28:08+00:00

I have written an application for Android. the main part being that it communicates

  • 0

I have written an application for Android. the main part being that it communicates via bluetooth. I have four devices:
1. Samsung Galaxy S2
2. Samsung Galaxy Gio
3. Netsurfer touch (A REALLY low end locally [South Africa] produced android tablet)
4. A Motorolla ET1

Now I have written my app – I need to test the complete structure.

I first wrote the bluetooth side (since that was what I had the least experience in) – and the only device I can get to work is the Netsurfer touch. It uses standard bluetooth drivers and it works PERFECTLY – I can receive the signal on the PC and deal with it perfectly well.

The OTHER part of my app, cannot be done on the Netsurfer because it is too low spec (it actually doesn’t have the required hardware). I have tried the Motorlla and the entire app works as expected.

But now the Galaxy phones (both Gio and S2) refuse to connect with any computers. They will PAIR fine, but when I use the bluetooth code to connect I just get an IOException: Service discovery failed

Since it is not my code, I started looking an there is a driver missing on my computer: “Bluetooth peripheral Device” – the error code The drivers for this device are not installed. (Code 28)

I have tried using Windows update, and that fails, I have Samsung Kies installed, AND I have verified the problem on two separate computers – both running Windows 7 x64

The hardware id’s are:
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_VID&0001000f_PID&0000
BTHENUM{00001132-0000-1000-8000-00805f9b34fb}_LOCALMFG&000f

I do not believe there to be a problem with the code, but with the drivers of the devices. But if you need code, I am using the code found here:
http://code.google.com/p/backport-android-bluetooth/source/browse/trunk/backport-android-bluetooth201/src/backport/android/bluetooth/chat/?r=49

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:28:09+00:00Added an answer on May 31, 2026 at 6:28 pm

    In my app i have bluetooth, working on stock galaxy S (both 1 and 2), Nexus One, HTC Desire, asus tablet and some other device.
    My app is from android 2.1, and i have this reflaction in my code (with the SDK, it somtimes failed for uknown reason to me, with the “Service discovery failed” error message) that fixed the error:

    BluetoothSocket mSocket = null;
    mBluetoothAdapter.cancelDiscovery();
    
    Method method;
    try {
                method = mBluetoothDevice.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
                mSocket = (BluetoothSocket) method.invoke(mBluetoothDevice,1);
        } catch (NoSuchMethodException e1) {
                e1.printStackTrace();
        } catch (IllegalArgumentException e) {
                e.printStackTrace();
        } catch (IllegalAccessException e) {
                e.printStackTrace();
        } catch (InvocationTargetException e) {
                e.printStackTrace();
        }
    
    mSocket.connect();
    

    but other then that, i use the sdk, and everything works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written an Android application that uses SQLite database which is saved in
I have written an Android application that I am about to release, but I
I have written a simple Android application that uses a sqlite database which is
I have android application that is written regular way. layouts, java, APK. Now, depending
I have written a mobile application for android. When I test it on Samsung
it's late, I'm tired, and probably being quite dense.... I have written an application
I have written a WinForms application (C# 2.0, VS2008) that registers several file types
i have written an application that needs to process outgoing calls. Everything works fine,
I'm just starting with android development and have written an application to show details
I have this application that I have written to calculate average. It comes up

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.