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

  • Home
  • SEARCH
  • 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 5940773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:00:56+00:00 2026-05-22T16:00:56+00:00

I want to connect a generic midp2 j2me device supporting bluetooth (jsr082) to an

  • 0

I want to connect a generic midp2 j2me device supporting bluetooth (jsr082) to an android device, running a similar custom application I am writing. The Android device only appears to “see” other Android bluetooth devices nearby?

Is this even possible?

  • 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-22T16:00:56+00:00Added an answer on May 22, 2026 at 4:00 pm

    Yes it’s possible, you’ll need to use reflection to hit a couple of methods (that aren’t documented) to get the same behaviour as j2me.

    createRfcommSocket(int channel) in android.bluetooth.BluetoothDevice like

    Class cls = Class.forName("android.bluetooth.BluetoothDevice");
    java.lang.reflect.Method meth = cls.getMethod("createRfcommSocket",  new Class[] { Integer.TYPE});
    BluetoothSocket iBluetoothSocket = (BluetoothSocket) meth.invoke(theBTDevice,new Object[] { new Integer(channel)});
    

    and

    // getUuids() also in android.bluetooth.BluetoothDevice
    // i.e.
    Class cls = Class.forName("android.bluetooth.BluetoothDevice");
    java.lang.reflect.Method meth = cls.getMethod("getUuids",  new Class[0]);
    ParcelUuid[] uuidlist = (ParcelUuid[]) meth.invoke(theBTDevice);
    

    a bit of info on the usage can be found here:

    The methods are available in earlier versions of android (I think from 2.0) but are private therefore reflection is needed (maybe they were untested and therefore hidden).

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

Sidebar

Related Questions

i want connect my android application to facebook , I have downloaded easy facebook
I'm developing a Silverlight 3 Application which I want to connect to a webservice
I am working on one android app. I want to connect my local PC
i want to connect my Visual Basic 6.0 Application with MySQL5 database by coding
I want to connect my rails 3 application to firebird database. I have followed
I want to connect mysql database locally with android emulator. I used http GET
I want to connect my java web application with the mysql database but whenever
I want to connect a single ForeignKey to two different models. For example: I
I want to connect from home using SQL Server 2005 to another PC. I
I want to connect to DB2 from excel macro...This is my code, but it

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.