An emulator question, about bluetooth

Hi all,
Is there a way to make the emulator to communicate with a real mobilephone via a bluetooth adapter? I want to debug my bluetooth application. Does anyone have idea about this?
Developer from China need your help.
Thanks!
-Jianxu

up up

Similar Messages

  • A few questions about bluetooth technology and headsets...

    Alright I am new to bluetooth technology and headsets, and want to do the proper research before I buy one.
    1)I have seen some have 1.2 and 2.0 technology, so what is the difference and should I only look for one that offers 2.0?
    2)Do they all offer a vibrating alert?
    2b)Or just those really big kinds that look like hearing aides that have that little box behind your ear?...
    http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&ssPageName=STRK:MEWAX:IT&item=2002 46049729
    3) Do they all have a multi-function button, 3way, mute, volume etc?
    3b) Or are some just a single button that only answers and hangs up?
    4) Do any of these charge via bluetooth?
    5) I've seen some bluetooths have a micro sd chip in them... what is the point of this? Can they be used like a usb storage device?
    6) Can you buy those usb to mini-usb adapters for charging and data transfer (not sure what kind of data you would transfer to a headset) separate from having to buy a combo kit that comes with it?

    You might try Google and look for answers, these are pretty comprehensive questions regarding a broad sweep of headsets. You might get answers on a few models, or just Apple's, here.
    If you click on each of the models in the link I gave you it goes into more detail about each one.

  • A question about bluetooth, supposedly i have it, but it's not showing any signs of availability

    I contacted HP through the complaint option, this really isn't a complaint, just need some understanding... The reply to the complaint was "Upon checking here in my end, your HP TouchSmart tm2t customizable Notebook PC order was configured with 802.11b/g/n WLAN and Bluetooth(R) so basically, your PC has a bluetooth capability"
    I don't fully understand what they mean by capability, all computers have bluetooth capability, Is bluetooth installed or not?   I went to the device manager looking for signs of bluetooth, i found nothing, the wp wireless assistant shows nothing also. I talked to a live rep through instant messages, they gave me the webpage to download the drivers. I downloaded the drivers, when i tried to install it the drivers it said "turn on bluetooth" I can't turn it on if i can't find..
    SO i need some assistance with this, any help is appreciated.
    This question was solved.
    View Solution.

    that sucks, I accidently pushed "Solved" the issue isn't fully solved.  I tried everything, i am a computer tech myself, tried hp chat, i have tried for 3 days, i have tried in the device manager, i tried in services, i tried in wireless assistant.  BUT i think i know the solution
    oh before i forget thanks for the email info.
    I didn't find the bluetooth in wireless aisstance, device manager, or the "add devices."  I did read a forum post where someone did a system recovery and their bluetooth started to work. Well, I tried the same, turns out my recovery would lock up at 12%. It was there for about an hour or so, i just stopped it, and then borrowed a windows 7 cd. When i installed the clean copy of windows, all my hp products where gone of course. Wireless assistant, the recovery partition (was wiped out with the windows recovery cd's). So I was at it again non stop. I once again was with hp live support chat, they got my attention in the windows services. It only showed "bluetooth support" not "bluetooth devices" or whatever it says. Tried the drivers countless times.  I was also reading the only place to turn on bluetooth is through wireless assistance.
    My previous attempts before the recovery, was looking in wireless assitance and devices etc... couldn't find it. After the format, i did enable it in services(not sure if it was after or before the format). But that didn't do anything.  I am doing a system recovery right now on that laptop, it's still stuck at 12% for 4hrs now. I read post of this issue, and someone said they let it set for 16hrs and the recovery finished. So i'll just let this sit. and hopefully it will go through.
    So here are my plans, if this recovery doesn't fix it, obviously step 1 install the drivers, step 2, make sure it's enabled in devices, step 3, turn it on in the wireless assistant. With my situations and my knowledge at the time, I wasn't able to perform these steps in this order. and syntax is important in this case.

  • Question about bluetooth communication between PC and mobile device

    I am a newbie of bluetooth communication. This time I need to have connumication between PC and mobile device (mainly mobile phone) by sending strings. PC is acted as server and mobile device act as client.
    For using bluetooth in PC, I use bluecove 2.0.1
    I have already connected them successfully.
    When I want to send strings between them, it is found that it can only do one cycle of communication (client -> server -> client).
    For my design, they can communicate multiple times.
    I simulate the core class of the system, the performance is fine.
    Cound anyone help me to watch the code and give me some advices?
    Server Side - ServerBox.java
    public class ServerBox implements Runnable {
       LocalDevice localDevice;
       StreamConnectionNotifier notifier;
       ServiceRecord record;
       boolean isClosed;
       ClientProcessor processor;
       CMDProcessor cmd;
       MainInterface midlet;
       private static final UUID ECHO_SERVER_UUID = new UUID(
               "F0E0D0C0B0A000908070605040302010", false);
       public ServerBox(MainInterface midlet) {
           this.midlet = midlet;
       public void run() {
           boolean isBTReady = false;
           try {
               localDevice = LocalDevice.getLocalDevice();
               if (!localDevice.setDiscoverable(DiscoveryAgent.GIAC)) {
                   midlet.showInfo("Cannot set to discoverable");
                   return;
               // prepare a URL to create a notifier
               StringBuffer url = new StringBuffer("btspp://");
               url.append("localhost").append(':');
               url.append(ECHO_SERVER_UUID.toString());
               url.append(";name=Echo Server");
               url.append(";authorize=false");
               // create notifier now
               notifier = (StreamConnectionNotifier) Connector.open(url.toString());
               record = localDevice.getRecord(notifier);
               isBTReady = true;
           } catch (Exception e) {
               e.printStackTrace();
           // nothing to do if no bluetooth available
           if (isBTReady) {
               midlet.showInfo("Initalization complete. Waiting for connection");
               midlet.completeInitalization();
           } else {
               midlet.showInfo("Initalization fail. Exit.");
               return;
           // produce client processor
           processor = new ClientProcessor();
           cmd = new CMDProcessor();
           // start accepting connections then
           while (!isClosed) {
               StreamConnection conn = null;
               try {
                   conn = notifier.acceptAndOpen();
               } catch (IOException e) {
                   // wrong client or interrupted - continue anyway
                   continue;
               processor.addConnection(conn);
       // activate the set up of process
       public void publish() {
           isClosed = false;
           new Thread(this).start();
       // stop the service
       public void cancelService() {
           isClosed = true;
           midlet.showInfo("Service Terminate.");
           midlet.completeTermination();
       // inner private class for handling connection and activate connection handling
       private class ClientProcessor implements Runnable {
           private Thread processorThread;
           private Vector queue = new Vector();
           private boolean isOk = true;
           ClientProcessor() {
               processorThread = new Thread(this);
               processorThread.start();
           public void run() {
               while (!isClosed) {
                   synchronized (this) {
                       if (queue.size() == 0) {
                           try {
                               // wait for new client
                               wait();
                           } catch (InterruptedException e) { }
                   StreamConnection conn;
                   synchronized (this) {
                       if (isClosed) {
                           return;
                       conn = (StreamConnection) queue.firstElement();
                       queue.removeElementAt(0);
                       processConnection(conn);
           // add stream connection and notify the thread
           void addConnection(StreamConnection conn) {
               synchronized (this) {
                   queue.addElement(conn);
                   midlet.showInfo("A connection is added.");
                   notify();    // for wait() command in run()
       // receive string
       private String readInputString(StreamConnection conn) {
           String inputString = null;
           try {
               DataInputStream dis = conn.openDataInputStream();
               inputString = dis.readUTF();
               dis.close();
           } catch (Exception e) {
               e.printStackTrace();
           return inputString;
       private void sendOutputData(String outputData, StreamConnection conn) {
           try {
               DataOutputStream dos = conn.openDataOutputStream();
               dos.writeUTF(outputData);
               dos.close();
           } catch (IOException e) {
       // process connecion
       private void processConnection(StreamConnection conn) {
           String inputString = readInputString(conn);
           String outputString = cmd.reactionToCMD(inputString);
           sendOutputData(outputString, conn);
    /*       try {
               conn.close();
           } catch (IOException e) {}*/
           midlet.showInfo("Client input: " + inputString + ", successfully received.");
    }For "CMDProcessor" , it is the class of message processing before feedback to client.
    Client side - ClientBox.java
    public class ClientBox implements Runnable, CommandListener{
        StringItem result = new StringItem("","");
        private DiscoveryAgent discoveryAgent;
        private String connString;
        private boolean isClosed = false;
        private boolean boxReady = false;
        StreamConnection conn;
        private static final UUID ECHO_SERVER_UUID = new UUID( "F0E0D0C0B0A000908070605040302010", false);
        Form process = new Form("Process");
        ClientInterface midlet;
        public ClientBox(ClientInterface mid){
            this.midlet = mid;
            process.append(result);
            process.addCommand(new Command("Cancel",Command.CANCEL,1));
            process.setCommandListener(this);
            new Thread(this).start();
        public void commandAction(Command arg0, Displayable arg1) {    
            if(arg0.getCommandType()==Command.CANCEL){
                isClosed = true;
                midlet.notifyDestroyed();
        public synchronized void run() {
            LocalDevice localDevice = null;
            boolean isBTReady = false;
            /* Process Gauge screen */
            midlet.displayPage(process);
            Gauge g=new Gauge(null,false,Gauge.INDEFINITE,Gauge.CONTINUOUS_RUNNING);
            process.append(g);
            showInfo("Initalization...");
            System.gc();
            try {
                localDevice = LocalDevice.getLocalDevice();
                discoveryAgent = localDevice.getDiscoveryAgent();
                isBTReady = true;
            } catch (Exception e) {
                e.printStackTrace();
            if (!isBTReady) {
                showInfo("Bluetooth is not avaliable. Please check the device.");
                return;
            if(!isClosed){
                try {
                    connString = discoveryAgent.selectService(ECHO_SERVER_UUID, ServiceRecord.NOAUTHENTICATE_NOENCRYPT, false);
                } catch (BluetoothStateException ex) {
                    ex.printStackTrace();
            else return;
            if (connString == null) {
                showInfo("Cannot Find Server. Please check the device.");
                return;
            else showInfo("Can Find Server, stand by for request.");
            boxReady = true;
        /* True if the clientbox is ready */
        public boolean getBoxReady(){
            return boxReady;
        /* True if the clientbox is closed in run() */
        public boolean getIsClosed(){
            return isClosed;
        public String accessService(String input) {
            String output = null;
            try {
                /* Connect to server */
                StreamConnection conn = (StreamConnection) Connector.open(connString);
                /* send string */
                DataOutputStream dos = conn.openDataOutputStream();
                dos.writeUTF(input);
                dos.close();
                /* receive string */
                DataInputStream dis = conn.openDataInputStream();
                output = dis.readUTF();
                dis.close();
            } catch (IOException ex){
                showInfo("Fail connect to connect to server.");
            return output;
        private void showInfo(String s){
            StringBuffer sb=new StringBuffer(result.getText());
            if(sb.length()>0){ sb.append("\n"); }
            sb.append(s);
            result.setText(sb.toString());
    }Client side - ClientInterface.java
    public class ClientInterface extends MIDlet implements Runnable, CommandListener{
        private ClientBox cb = new ClientBox(this);
        private Form temp = new Form("Temp");
        private Command select = new Command("Select", Command.OK, 1);
        private Command back = new Command("Back", Command.BACK, 1);
        Alert alert;
        String[] element;
        String out;
        List list;
        public void run(){
            /* Send message and get reply */
            out = cb.accessService("Proglist");
            element = split(out,",");
            /* Use the reply to make list */
            list = createList(element[0], List.IMPLICIT, out);
            list.addCommand(select);
            list.addCommand(back);
            list.setCommandListener(this);
            Display.getDisplay(this).setCurrent(list);
        public void startApp() {
            System.gc();
            waitForBoxSetUp(); /* Recursively check for clientbox status */
            new Thread(this).start();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            notifyDestroyed();
        public void displayPage(Displayable d){
            Display.getDisplay(this).setCurrent(d);
        private void waitForBoxSetUp(){
            while(!cb.getBoxReady()){
                if(cb.getIsClosed())
                    notifyDestroyed();
        public void commandAction(Command c, Displayable d){
            if (c.getCommandType() == Command.OK){
                if (d == list){
                    /* Send the choice to server */
                    out = cb.accessService(list.getString(list.getSelectedIndex()));
                    alert = new Alert("Output", "selected = "+out, null, AlertType.ALARM);
                    alert.setTimeout(2000);
                    Display.getDisplay(this).setCurrent(alert,list);
            if (c.getCommandType() == Command.BACK){
                notifyDestroyed();
        public void showWarning(String title, String content){
            alert = new Alert("Output", "selected = "+list.getString(list.getSelectedIndex()), null, AlertType.ALARM);
            alert.setTimeout(3000);
            Display.getDisplay(this).setCurrent(alert,list);
        private List createList(String name, int type, String message){
            List temp;
            String[] source = split(message,",") ;
            temp = new List(name, type, source, null);
            return temp;
        private static String[] split(String original,String regex)
            int startIndex = 0;
            Vector v = new Vector();
            String[] str = null;
            int index = 0;
            startIndex = original.indexOf(regex);
            while(startIndex < original.length() && startIndex != -1)
                String temp = original.substring(index,startIndex);
                v.addElement(temp);
                index = startIndex + regex.length();
                startIndex = original.indexOf(regex,startIndex + regex.length());
            v.addElement(original.substring(index + 1 - regex.length()));
            str = new String[v.size()];
            for(int i=0;i<v.size();i++)
                str[i] = (String)v.elementAt(i);
            return str;
    }

    i haven't worked with devices but only with the toolkit emulators;
    it definitely is possible...
    u have to send the image as a bytestream and receive the image at the jsp end...
    and then reconstruct the image.
    the Stream classes in J2ME AND J2SE are all u will require.
    also the Image class.
    i have not done this but i have successfully sent an image frm a jsp and displayed it on the emulator.

  • Question about bluetooth??????

    i have a cell phone with blue tooth and the internet, would i be able to have wireless internet on my macbook through bluetooth from the cell phone??

    Hi Scott,
    So, EXACTLY how did you do it? I posted a thread last week about connecting a new Sprint RAZR V3m and was unsuccessful.
    I went back to my old phone for a day, only to get my new phone (even though discontinued, it was still brand new in the box from a major retailer) a Samsung Blade. A900m version.
    I followed your steps in another thread/posting of yours:
    http://discussions.apple.com/thread.jspa?messageID=3561321&#3561321
    ...only to find it not work. Is there an extra step you did? I remember with my A920, you had to disable the NAI feature. (I was paying for Phone-as-Modem service though. The only way I could get it to connect was through the unofficial/unorthodox official method of disabling NAI with a magic code... which now doesn't work anymore on newer phones).
    Thanks for your help in advance. Usually I'm the one giving help and answers. Mainly in the 12-inch PowerBook forum.

  • Question about Bluetooth & Headphones to avoid damaging the miniport!?

    Well, I finally experienced the same thing a lot of others have already ... the left side audio failed completely on my Touch, so I had to go return it and have it replaced. Luckily, the folks at Best Buy were nice enough to just swap it out and give me a new one, even though I was outside of my 30-day return policy. I have a service plan there, but I didn't want to go without my Touch while they replaced it elsewhere and sent me a refurbished device which probably wouldn't be in the same condition I keep my own in (immaculate -- 40+ days I've used it for 3+ hours a day, and there is hardly a scratch on the stainless steel, and the screen is flawless ... or was).
    So now I have a new Touch, but I want to prevent this from happening again. Personally, I think the mini-port on the Touch, while it doesn't have the same problem as those of the iPhones, it has a design problem as well. But I don't want this thread to end up being a discussion of whether there is a design issue or not, but rather I need some help to find an accessory to fit my specific needs.
    What I am looking for is either, a website actually selling [this product|http://www.engadget.com/2006/11/28/princeton-technologys-bluetooth-head phone-adapter/|Visit www.podtropolis.com today!] to customers in the U.S. ... or a product nearly like it.
    I don't even need the iPod-Bluetooth transmitter, as those are VERY common. What I need is the other part, the receiver with a miniport Audio-Out (headphone jack). I don't even need the capabilities of the remote. Especially since this particular device may not even WORK with the iPod Touch. I'm hoping the audio-out features would, but I could care less if the remote-control did.
    Basically, I'm reaching out in desperation with a severe headache from too many google searches with little to show for it ... I need help finding a Bluetooth headphone Audio-Out receiver.
    And before you ask why I don't just buy a pair of bluetooth headphones, my reason is this ... bluetooth headphones can't be used wired when the battery dies, or to save battery when there's little chance you're going to drop the iPod and bend the miniport connection inside. With this, I can use the headphones I already have, I like, and still easily have the capability of switching to wired if I NEED to.
    This is the only way I can think of to truly prevent the overuse of the Touch's mini-port and the wear & tear that comes from it.
    Please, if you have any suggestions, please provide at least a semi-accurate device name and manufacturer, or, preferably, a link to a site in English with an online store!
    Thanks!

    Chris CA wrote:
    This device -> G-Lite BH-Q395T Bluetooth Stereo Sport Clip-On with 3.5mm Adapter is similar to the one you linked to.
    It has a BT transmitter which plugs into the iPod and a BT receiver which you plug standard headphones into.
    AAAAAAAAAAAAAAAAAAAAAA!
    Chris ... sometimes I wonder how I could LIVE WITHOUT YOU! You're an iPod GOD!
    You pointed me in the right direction ... I found it sold at Beach Audio, with JUST the receiver, so now I can buy my preferred iPod BT transmitter as well! Plus this device is useful for other things:
    Specifications:
    -- Wirelessly stream music from a cellular phone or Bluetooth enabled iPod or MP3 player
    -- Listen to music on a cellular phone through A2DP protocol
    -- Sporty clip-on design for ultra-lightweight design and ultimate portability
    -- Features echo elimination and noise suppression
    -- Supports AVRCP, A2DP, VoIP and Skype"

  • IPhone 5 question about Bluetooth headsets and headphone jack audio out.

    I have an iPhone 5. When I'm connected to a bluetooth headset, can I still use the headphone jack to play audio through my stereo between calls without having to disconnect the headphone jack for calls or shut off the headset for tunes?

    when one connects a wires headset it it mutes the internal speaker
    when one connects a bluetooth headset it mutes the internal speaker and any wired connected headsets

  • Silly Question about bluetooth icon

    Hello,
    My bluetooth icon in the menu bar keeps flashing. I haven't changed my settings and I do not have file sharing on etc. I think I pretty much have a stand alone machine with no outside access granted. Any clue or do I need to get one :>}
    Thanks
    Char

    Okay I am replying to myself, I needed to get a clue, mighty mouse was trying to tell me he was running out of juice. DUH!!!!!!!!!

  • Question about bluetooth speakers

    I'm getting the Philips HTL3140B/12 soundbar on the cheap. Once paired with my ipad, can I send audio from every music streaming app, even from free spotify and Google Music accounts? Is there any way to do that aside of using a 3.5mm audio cable? Airplay speakers, maybe?
    I'm currenty with a Sonos system.
    Thanks.

    Actually Dahveed it is fairly common as is pointed out in this thread,
    https://discussions.apple.com/message/11014792?messageID=11014792
    And this thread,
    http://www.geekzone.co.nz/forums.asp?forumid=8&topicid=58822
    And here,
    http://forums.ilounge.com/iphone/252185-iphone-bluetooth-lag.html
    And here,
    http://forums.macrumors.com/showthread.php?t=723476
    Researching the device will help but it is more common than not.

  • Question about "bluetooth PDA-syn" option?

    HI there,
    I would just like to ask under system preferences, under bluetooth, under advance, there is an option called "bluetooth pda-sync", in its box, should I check or uncheck this option? what is the option "bluetooth pda-sync" for? what is its usage?

    If I am not mistaken, it is probably used for file sharing. If you don't have a phone that can send and receive data from your mac, then you can switch it off. But switching it off will not make a difference.

  • Question about bluetooth and iPhone

    I want to play my songs on my Bluetooth. Technically I can, when I'm on the phone, if I access my iPod, the songs will then play on my Bluetooth (drowning out the person talking). But if I can listen to music on the bluetooth then, why not all the time? I can't hear the other person when it's playing, so that's not good. Well sometimes. Obviously I have some people I don't like hearing go on and on and on and on, which is how I found this feature out in the first place, LOL.
    Anyway, anyone know how this is accomplishable? Or is it just another instance of a weird iPhone quirk. Like having a landscape key board for the internet, but not for text messaging?

    when one connects a wires headset it it mutes the internal speaker
    when one connects a bluetooth headset it mutes the internal speaker and any wired connected headsets

  • General question about bluetooth headsets

    My Jawbone headset has a silly ring tone. I would have thought that the custom ringtones that play on the iPhone would play through the Jawbone, but they don't.
    Is it that way for all bluetooth head sets? Even Apple's?

    Is it that way for all bluetooth head sets?
    probably

  • Questions about bluetooth keyboards

    I have an external display I use all the time on my macbook, usually just as a display for movies. But I'd like to start using it as my main screen, which means running my macbook closed and out of the way. I'd like to keep my desk less cluttered, and would like a wireless keyboard. Though the wireless keyboard from Apple doesn't have the number pad on the right like a full keyboard does. Why isn't there a full wireless keyboard? Also, will a wired and/or wireless keyboard still work when the macbook is closed?

    Logitech makes several BlueTooth keyboards with number pads and more.
    Using your computer with the lid closed requires an external display and keyboard, so yes it will work with the lic closed. But doing so requires you take care to properly ventilate the computer to avoid heat buildup. Closing it up in an unventilated space would not be a good idea.

  • Question about personal hotspot. I know I can share GSM / 3G but I would like to know if my iPhone is connected to a wifi can I also share that wifi collection, through personal hotspot?

    Question about personal hotspot. I know I can share GSM / 3G but I would like to know if my iPhone is connected to a wifi can I also share that wifi collection, through personal hotspot? And if so can it be through wifi or does it have to be Bluetooth or USB?
    Sounds like an odd question but my phone will connect to BT Openzone so I want to share that with my iPad via personal hotspot. I could use 3G but then it comes off my data allowance and I don't want to have to buy a separate SIM for my iPad if I can avoid it. I can swap my sim from my phone, but that's a pain!
    Thanks
    Luke

    No, unfortunately Personal Hotspot will only use your 3G plan.

  • Questions about Digital Wireless Headphones CB2

    Hi everyone,
    I have a question about the [url="http://nl.europe.creative.com/products/product.asp?category=437&subcategory=438&product=6 44" target=_self>Digital Wireless Headphones CB2530[/url] I've never seen it in a shop here in Holland, so I thought I'll pose my questions here.
    I'm interested in buying one for my Creative Zen Xtra MP3 player.
    My questions are:
    - if it's possible to connect it to the player?
    - can I use it while traveling (can i hear something if I put the player in my bag)?
    - is it a good idea to buy this headphone? (i already have a great headphone by Philips, but am looking for wireless)
    I also have a question concerning a remote control. Is there one for the Creative Zen Xtra?
    I hope so...
    Thanks in advance.
    Greetings,
    Eline

    Eline,
    Yes, you can connect the wireless headphone to the player. Infact you can connect it to any stereo devices with the audio transmitter as long it's using a 3.5mm minijack. It shouldn't be a problem for the audio even if the player is inside the bag. It works about the same way as a mobilephone to a Bluetooth headset. Unfortunately, the Zen Xtra player does not support remote control feature.
    Jason

Maybe you are looking for

  • FREE OF CHARGE DELIVERY pricing error

    Hi SAP SD Gurus I am krishna new to this forum also new to SAP SD I have dought about free of charge delivery subsequent process. Can anybody please explain about the difference between those also what are the item category and scheduling cat for bot

  • Actual cost of FG batch

    Hi all GURU's, I had posted this thread earlier also but i had not got any reply on this. Hence I had closed that thread & now posting my query with this thread. Please if anybody can throw some light on this.......... My BOM structure is as follows.

  • Format SD card in SX50?

    Do I have to format the SD card in my SX50?

  • Fix Packs (4.1 & 4.2); Wont Install; Error message: CRC Failed in package

    We receive the following message when we try to install fix packs 4.1 and 4.2.  The fix pack will correct issues identified with the installation of service pack 4. The error message states: "Some installation files are corrupt. Please download a fre

  • Deferred Tax not in RFUMSV00

    HI Experts, in our Italian company we have deferred tax and according to our legal consultant this should appear in the "Tax on Sales/Purchases" report RFUMSV00. But it doesn't! But when I execute report RFUMSV10 the additional list, I can see these