Applets and Bluetooth

What I wanna know is if it is possible to receive and transmit bluetooth communication with an applet ? I recon an Applet has certain restrictions that normal desktop application does not have.. thats why I wanna know.. I was planning on writing an applet that could communicate with bluetooth devices

An applet can access the network interface to communicate to the internet. So I cannot see why not an applet can access the bluetooth interface in order to communicate to a mobile phone

Similar Messages

  • Signed Applet and Bluetooth

    Is it possible to establish a bluetooth connection with a signed applet?

    Try this:
    OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
    WIDTH = "600" HEIGHT = "400" codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
    <PARAM NAME = "java_code" VALUE = "TNA.class" >
    <PARAM NAME = "java_archive" VALUE = "TNA.jar" >
    <PARAM NAME = "java_type" VALUE="application/x-java-applet;version=1.3.1">
    <PARAM NAME="scriptable" VALUE="false">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3.0" CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400" scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
    </NOEMBED></EMBED>
    </OBJECT>
    <!--
    <APPLET CODE = "TNA" ARCHIVE = "tna.jar" WIDTH = "600" HEIGHT = "400">
    </APPLET>

  • We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    We just added a new printer and bluetooth connection to our iMac.  Now iTunes does not recognize our iPads as devices.  Have already tried restarting everything.  Any other suggestions?

    You can try the steps recommended here: http://www.apple.com/support/ipad/assistant/itunes/

  • Difference Between Applet and Swing

    Difference Between Applet and Swing

    The advantages and disadvantages of both applets and Swing are the small fluffy elephants you get inside of every box. They're quite well trained and can skeletonize your neighbors' annoying pets upon command.

  • Has anyone else downloaded iOS 7 on a 4S and found the WiFi and Bluetooth don't work anymore?

    I'm used to Apple products that "just work", but I'm not seeing it with the installation of iOS 7 on my phone (4S). I installed it earlier today, and the Wi-Fi and Bluetooth worked for about an hour, then just quit working altogether. The WiFi button is grayed out in Settings, and Bluetooth dosen't even display a button (all I get is a throbber that continuously spins). Trying to activate them through the "swipe-up" command center doesn't do the trick, and resetting the network settings also accomplishes nothing. Several reboots later, and I still don't have WiFi and Bluetooth.
    Has anyone else experienced this, and is there a solution? I may just decide to eschew iOS 7 and restore my pph

    After multiple attempts to restore and reboot, I finally decided to take a trip to my local AT & T store. They contacted Apple, and I explained the situation. I ended up moving to the iPhone 5, as my 4S was in the renew period. The 4S is still under warranty, so all I have to do is bring it to an Apple Store, where they will either fix or replace the phone. Looks like one of my kids will be getting a 4S :-)

  • IIS, Javascript, Signed Applet and ASP Blank Page Problem

    Hi,
    I'm having a problem using a Signed Applet in a site that runs in a IIS (Windows Server 2003).
    My aspx web page uses the applet to read my smart card and get information from it.
    This applet uses an auxiliar dll (stored in a second Signed Jar file) in order to read the information from my smart card.
    The way the solution is design:
    1) Aspx page is asked from server
    2) Internet Explorer recieve the page and asks the server for it content (images, applet, javascripts, etc)
    3) After this the JVM runs (console opens)
    4) After the Aspx page render fully a javascript register onload fires and call an applet method
    5) Applet receive the call and run the logic of the method:
         - reads the smart card;
         - calls Javascript function in order to fill aspx fields with information from smart card
         - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
    5) The server makes some logic with the information receive and responds to client registering in aspx page a call to another Javascrit function
    6) The client received the asnwer from server and runs the Javascript function registered on step 5)
         This Javascript calls another method from applet and runs the following logic:
         - reads more information from smart card;
         - call javascript function in order to fill more fields of aspx page with the information readed
         - calls Javascript function the simulates a click in a botton of aspx page (in order to call server side part sending data readed from smart card to server)
    7) The server makes some logic and call another pages with no Applets
    8) Client asks for a second page with the same applet and we start with another logic express on steps 1);2);3),4);5) and then 7).
    This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
    When this happens the server just responds with a blank page.
         - with fiddler I can seer the request for the aspx page (that uses the applet)
         - but server responds with a blank html page
    The JVM doesn't fire.
    The IIS log don't show errors.
    The eventviewer doesn't show errors.
    The problem is solved with an IIS reset or a Application Pool reset.
    After a while the problem returns.
    This problem occours for other user in another machine, the server just stops responding correcly to request regarding pages with applets, the other pages still continue to work.
    If we disable Java Control Panel->Advanced->Java Plug-in->Enable the next-generation Java Plug-in the problem seend to stop, but we can't force all clients to disable this option right?
    Or there is a way to force the Applet to run with this option disabled?
    As anyone experience similar problem?
    Regards,
    OF

    This is all ok, until sometimes the server stop responding correcly for requests regarding this two pages with the Applet.
    When this happens the server just responds with a blank page.
    - with fiddler I can seer the request for the aspx page (that uses the applet)
    - but server responds with a blank html pageWell, if http requests look identical in case of success and failure (pay attention to cookies, etc) then it has to be something on the server side.
    It could be that server gets into this wrong state because of previous requests made by applet but it is hard to tell.
    I am not clear how old/new plugin can make a difference unless your applets run in the legacy mode (i.e. you are actually trying to reuse SAME instance of the applet when
    it is loaded next time).
    I'd start with
    1) carefully comparing good/bad sessions
    2) checking whether server will serve correct response to another client when it serves "bad" page for current client
    3) add debug statements to aspx - it is scripted page, may be some condition is not met and then it returns blank?
    4) record all http requests in one session until you get to "error" state and then use any http server testing tool to "replay" this set of requests.
    You should be able to get server into the same state without use of applet. Then you can try to tweak set of requests to see what makes a difference.

  • I need help with Applets and Multithreading

    [hello all.  first time poster. big fan of java.]
    now to the important matter: Applets and Threads
    =======================================
    1) I have an applet with that implements the runnable interface, and has one thread (and a simple animation). If I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
    "java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"
    but, if I run the applet through a web browser, by putting it in an html document, it runs correctly, without error
    What on earth is wrong, and how do I fix it?!?
    2) I want to put 2 threads in my applet?
    If I implement the Runnable interface, I can only have one Run() method in my applet, right?
    So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour? Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?
    3) I tried to make 2 threads in my applet by creating my own thread classes, and instantiating them in my applet (instead of implementing the runnable interface).
    I still get the same insane error as I mentioned in my first point (which I expected), except now, the applet won't work even when viewed through a web browser!!
    Please please help me. I am frustrated beyond belief (at what is probably a very simple problem)
    I have searched and searched all over and found no answers on this

    If I try to view this applet in the applet viewer with JGrasp, it spits an insane error telling me
    "java.security.AccessControlException: access denied (java.lang.RuntimePermission modifyThreadGroup)"Don't know anything about JGrasp, but it runs with pretty tight security - thats what this insane error is all about. Use the appletviewer or a browser.
    If I implement the Runnable interface, I can only have one Run() method in my applet, right?Correct
    So how do I define behaviour for 2 threads when I only have one run method in which to define the behaviour?
    Can I use two threads with the runnable interface, or do I have to make objects of my own defined thread classes?You can create two Runnable implementations (classes) in your applet.
    example (missing code)
    class MyApplet extends Applet {
      void doSomething() {
      void doSomethingElse() {
      void startThreads() {
        Thread t = new Thread(new Runnable() { public void run() { doSomething();}});
        t.start();
        t = new Thread(new Runnable2());
        t.start();
      class Runnable2 implements Runnable {
         public void run() {
           doSomethingElse();
    }If the above seems confusing, read up on anonymous and inner classes.
    3) I tried to make 2 threads in my applet by creating my own thread classesTry not subclassing thread - this causes a security check

  • Socket communication failure between Java applet and C++ application

    I have a java applet that connects to a C++ application via Java's ServerSocket and Socket objects. THe C++ application is using the Winsock 2 API. The applet and application are running on an NT workstation (SP 6) and using IE (5.5) For a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close. Upon performing a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket. The Java applet can still receive messages from the C++ app but C++ cannot receive responses from the Java side. Java throws no exceptions and an explicit check of the socket shows no errors. Again, what puzzles me is that it works for simple C++ applications. Are there any known conflicts between Java and C++ in this regard?
    I have inlcuded the basic java code segments below.
    / run Method.
      * This method is called by the Thread.start() method. This
      * method is required for the implementation of the Runnable interface
      * This method sets up the server side socket communication and
      * contiuously loops looking for requests from a external
      * socket.
      * @author Chris Duke
      public void run(){
         // create socket connections
         boolean success = false;
         try {
             cServerSocket = new ServerSocket(cPortID);
             System.out.println("Waiting for client to connect...");
             cClientSocket = cServerSocket.accept();
             System.out.println("Client connected");
             // Create a stream to read from the client
             cInStream = new BufferedReader(new InputStreamReader(
               cClientSocket.getInputStream()));
             // Create a stream to write to the client       
             cOutStream = new PrintWriter(
               cClientSocket.getOutputStream(), true);
             success = true;
         }catch (IOException e) {
             System.out.println("CommSocket:Run - Socket Exception(1) " + e);
             success = false;
         // if the socket was successfully created, keep the thread running
         while (success){
             try{
                // check socket to see if it is still available for reading
                if (cInStream != null && cInStream.ready()){
                    // check for an incoming message
                    String message = ReceiveMessage();
                    // Send message to listeners
                    Event(message);
                if (cInStream == null){
                    success = false;
                    System.out.println("CommSocket:Run - shutdown");
             }catch (IOException e){
                System.out.println("CommSocket:Run - Socket not ready exception");
                break;
    // SendMessage method -
      *  Sends a text message to a connected listener through port specified by portID
      * @author Chris Duke
      * @param  String message - This will be the message sent out through the server
      * socket's port specified by portID.
       public void SendMessage(String message){
          cOutStream.println(message);
          if (cOutStream.checkError() == true)
            System.out.println("SendMessage : Flush = Error");
          else{
            System.out.println("SendMessage : Flush - No Error");
       }

    a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close.
    This quite strongly implicates the extra code in the C++ App. The firstly thing I would try would be telnet. Try connecting to both versions of the C++ Application and manually reproducing a proper exchange.
    a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket.
    A correct implementation of recv should return the number of bytes received, or -1 for an error. A zero return indicates no bytes received not a socket closed/error. This sounds like FUD to me.
    Are there any known conflicts between Java and C++ in this regard?
    I can see no obvious faults, though the code is incomplete, I don't think it's an sockets implementation issue, at either end, it sounds more likely to be a protocol/handshaking bug in the C++ App.

  • TS1559 still no solution for greyed out wifi and bluetooth - what to do? been messing around with it for weeks and now discover I'm just outside of warranty period? WHAT?

    I am in such a predicament - phone not been quite right since the 6.1 update and I was tolerating the inconvenience of switching off and on etc etc for the past couple of months and now the wifi and bluetooth are totally greyed out all the time - did every restore possible including back to factory settings - still no luck - please don't tell me that trying all the solutions over the past 2 months that temporarily worked for a few days at a time will now mean I have timed myself out of the 1 year warranty? arghhhhh (I can't believe that such an issue will create the response 'oh well, your problem - best just buy another one' ???)
    I can't just drop everything and drive to the apple store and wait for hours every time there's a 'glitch' otherwise I may as well move nextdoor to the mall. They tell you to try and solve it yourself first - which I did - and now it's not responding to anything I try, will I be told - 'too late, out of warranty'???
    I see theres an update for the iphone 5 that fixes wifi bugs - what about us 4s owners? even my 3 year old 3gs is still working on wifi (haven't dared to update it!) so don't start telling me to expect that the iphone will only last 13 months - NOT AT $600 a piece
    This is madness and driving me crazy
    Please has anyone had any luck fixing this problem???

    well, you know how it is - glitches that usually resolve with a hard reset etc
    then a restore. then a factory restore....then ..... nothing fixes so I try the next step with apple online - fill out my serial number and find it is a couple of weeks out of date - and then with the holidays who has time to get to the apple store? this is my second 4s handset as it is - first one the glass cracked from L to R without any impact/damage etc - they changed it out automatically because it's a 'known fault' apparently - so technically, this handset is only 6 months old - but warranty is from original purchase date -
    never imagined it would turn out to be a warranty issue with the phone - and hey maybe when I get a chance to go to the apple store they'll be sympathetic, but I won't be able to get there till at least Jan 4th as it is. On the other hand, another iOS update might resolve the issue - but how long till that release? at the moment I'm having to use my old 3gs for wifi and 4s for phone!!!

  • HT201210 hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    hi everyone, i have a problem about my iphone 4S, doesn't work with wifi connection and bluetooth since upgrade to the IOS 7.0.3. Can anyone can help me tosolve this problem?????Thank's regards paulus

    Try the suggestions here to see if they resolve your problem:
    http://support.apple.com/kb/ts1559
    If these don't work you may have a hardware problem. Visit an Apple store for an evaluation or contact Apple Support.

  • Security issues with applets and windows Vista when printing to file

    Hi, everyone
    I am currently developing an application that prints out the result of some calculations.
    from a Javascript file, the output finally ends up in a java applet that should print the file in a special printer.
    For debugging purposes I have created a File printer that creates a file from the output comming to the printer; this way I can debug what commands the printer is receiving.
    This worked well on Windows Xp; Vista always asks for permissions for the applet, and altough I guarantee these permissions, printer is not allowed to create the output file and reports an error writing
    after a little research, I have found that java applets have all permissions when certificated as trusted applications; all but file creating permissions
    anyone has any idea of how could I fix this problem?
    Thanks in advance

    HI,
    Have you actually signed your applet? If the signers certificate is the trusted key store for Java it should treat your applet as trusted. You can use a self signed certificate for testing as long as the cert is in the trusted key store.
    Some links that might help:
    [http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/keytool.html]
    [http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/rsa_signing.html]
    Cheers,
    Shane

  • Re: Windows Vista Ultimate 32-bit FN key and Bluetooth crash

    I have an old problem with FN key. I installed Vista and after a while, it stops working. In Windows, when I press the FN key it freezes about 3 seconds, a blue screen appears that tells me Vista has crashed, a memory dump begins and then the laptop restarts. And now, bluetooth doesn't work anymore and if I try to enable it it dows the same thing.
    P.S. The Windows is new installed (4 days), and has automatic updates to date.
    I reinstalled Toshiba Value Package, Bluetooth Monitor and Bluetooth Stack.

    LE: I uninstalled Value Package and it doesn't give me the blue screen anymore. The FN key works, but it doesn't display that menu on the top of the screen when i press it, but the functions work.

  • Yoga 13 WiFi and bluetooth issue resolved

    Unfortunately, I also met WiFi problems, but also found unexpected and sad solution.
    Wifi worked pretty well at working place, but had problems at home. As an experiment I brought WiFi router from the working place home. It did not work!
    At home I used pretty old keyboard and mouse plugged into passive USB hub. As soon as they were disconnected, problems disappeared. WiFi was also stable after I plugged power supply into the USB hub.
    We are making 24-bit analog-to-digital converter that connects to the PC via USB. I exactly know its current consumption (300 to 330 mA) and know that it correctly handles USB rules about power regulations. Maximum current, specified by USB2.0 standard, is 500mA, so consumption of our ADC is within limits. As soon as I plug this ADC in, WiFi connection immediately disappears at the working place.
    In the case of other devices, such as USB flash drive, power consumption may depend on the activity, increasing as it writes or reads something, and decreasing at the moment of inactivity.
    I'm pretty sure that Lenovo placed their WiFi/bluetooth module on the same USB hub with right-side USB2 connector. Any device, that requires energy, being plugged into USB2.0 port, immediately destroys WiFi (and presumably bluetooth) and it is rather hard to get it back alive without special dancing around.
    So, conclusion: never plug anything into USB2.0 port, if you need WiFi. This decreases number of available USB ports from two to one. Lenovo team should be blamed for that, not driver manufacturers or board manufacturers - Lenovo did non do its construction job well.
    I am not sure, that all WiFi and bluetooth problems of Yoga discussed at this forum have the same reason. But in any case incorrect implementation of USB2.0 power should be considered before any other reason of malfunction.
    Car manufacturers recall their products in the case of a failure. What about computer manufacturers?

    Citation from Wikipedia:
    The USB 1.x and 2.0 specifications provide a 5 V supply on a single wire to power connected USB devices. The specification provides for no more than 5.25 V and no less than 4.75 V (5 V ± 5%) between the positive and negative bus power lines. For USB 3.0, the voltage supplied by low-powered hub ports is 4.45–5.25 V.[61]
    A unit load is defined as 100 mA in USB 2.0, and 150 mA in USB 3.0. A device may draw a maximum of 5 unit loads (500 mA) from a port in USB 2.0; 6 (900 mA) in USB 3.0. There are two types of devices: low-power and high-power. A low-power device draws at most 1 unit load, with minimum operating voltage of 4.4 V in USB 2.0, and 4 V in USB 3.0. A high-power device draws, at most, the maximum number of unit loads the standard permits. Every device functions initially as low-power — but may request high-power, and get it if available on the providing bus.[62]
    Obviously, WiFi adapter is a high-power device. If it does not have sufficient power, it will start power saving program by reducing speed. Even lower power may interrupt ins basic functions. When I connect another high-power device (HDD or ADC) to the same hub, it should get its 500mA from the hub. Seems that starting at this moment  WiFi receives much less current than it requires and stops working. 
    If something is plugged into USB3 port, and this something does not utilize all energy it requested, WiFi starts working again.
    I would greatly appreciate if somebody repeats my tests using Yoga or Yoga 2 Pro.
    Test:
    Reboot your system, all USB devices disconnected
    Open http://www.speedtest.net site and measure Download connection speed (Speed1)
    Connect external HDD to USB2 (NOT USB3!) port
    Wait until HDD is connected
    Test Download speed once again (Speed2)
    Report results to this blog as Speed1/Speed2 couple of numbers
    Thank you in advance

  • Late 2005 - Airport and Bluetooth - won't work together

    Hi everybody!
    I have a problem with my Powermac G5 (late2005).
    I have the Airport Extreme with Bluetooth 2.0+EDR card installed.
    WLAN and Bluetooth work both if operated separately.
    But when Airport is activated and running and I turn on Bluetooth (and connect for example my Magic Mouse) Airport breaks down. - I loose my connection and can't see any other wireless networks.
    Switching to another Airport channel din't help.
    Does anybody have an idea what to do?
    Thanks a lot!
    Chris

    I just started trying BT.
    I allready had a look at the cabling and read about it, that it doesnt matter how the calbes are connected to the airport card.
    I don't think I can put anything between the antennas.
    The late2005 has the build-in antenna (for Airport and BT)...
    But I will have a look if I can place anything between an I will change the cabling...
    Thanks so far!
    Chris

  • Internal Mic and Bluetooth not working together at the same time

    Okay.. so I've been noticing this happen alot lately. Whenever I have my usb wacom tablet plugged in (which is almost always), there would be no internal mic input and bluetooth would become "not unavailable". Also, even when I try an external mic, there was no input. Could this be a coincidence or some related usb-bluetooth problem? Could it be my audio input or tablet driver problem?
    I've used my mic to skype before I had installed the tablet. Also before I used garage band to record my sister's guitar with an external mic, there was no problem at all, and of course I didn't have my tablet plugged in at the time. Recorded a whole hours worth of music, and didn't have any problems.
    Today.. I checked to see if my internal mic was working before I launched skype, and it was working perfectly, and I also noticed my bluetooth was available (didn't test it though). Then I went on skype talked to friend for about 20min, and suddenly the audio stop working. I had my tablet plugged in from earlier today. I restarted my macbook (with no tablet plugged in) and still mic input isn't working. I tried and external mic, but still nothing. I tried uninstalling skype, still nothing.
    This is not the first time this happened, I noticed it would somehow fix itself after a few days every time, and mic and bluetooth would start working again out of nowhere. Which makes it even more weird.
    Need help pleaseee!
    PS. I tried getting someone to fix it before(a few months ago- I don't really use my mic or bluetooth much), but when I brought it in and started up my mac, at that time it was working again. But now it isn't working =(

    UPDATE: I just noticed my bluetooth was no longer "unavailable", so I quickly went into system preferences, and noticed that my internal mic input had some input! Very weak though, only 1-2 bars. So what does this mean?

Maybe you are looking for