RFCOMM part duh

In a previous message, I was having trouble including the imort statement: imort javax.bluetooth.*. That has been fixed. I was able to include the correct jar file to get my program to compile. I am using WTK2.1, the BenHui jar files (midpapi10.jar), and Sun ONE for Java ME. I want to deploy on the Nokia 3650.
1) Do the BenHui jar files need to be transfered to the cell phone? Or do they simply allow me to compile on my PC since I cannot compile on the cell? Do they just allow me to simulate native methods of the phone?
2) My goal is to call this little device I made that consists of a microcontroller and a BT chip set. I wrote code on the PC with Java SE that openned a socket and made a call using ascii command
call BTADDRESS 1101 RFCOMM \n\r How do I do that from the cell phone? I am not sure how to get the UUID of the device I want to call from the cell phone.
When I try:
System.out.println("Hey dude!");
try {
// retrieve the local Bluetooth device object
LocalDevice local = LocalDevice.getLocalDevice();
} catch(BluetoothStateException e) {
System.out.println("BSE");
I get:
Uncaught exception java/lang/NoClassDefFoundError: javax/bluetooth/BluetoothStateException.
When I comment the try catch out, everything runs....
Hep?

to 1) no. they are only needed for compiling your code.
to 2) for using the JSR classes (as you did in your code) these have to be implemented (in form of a bluetoothstack). If this works without the try-catch, I'm sure this statement is included in another try-catch or this method "throws Exception" because the getLocalDevice "throws BluetoothStateException" and this must be catched or thrown.
kay

Similar Messages

  • Ipod 4th Gen lost artwork and videos

    ok now I seriously need some big help. I had a video this morning and as i was looking through it after school i still had the video. But i've looked now and ive lost all the music videos/___sbsstatic___/migration-images/migration-img-not-avail.png/___sbsstati c___/migration-images/migration-img-not-avail.png/___sbsstatic___/migration-imag es/migration-img-not-avail.png/___sbsstatic___/migration-images/migration-img-no t-avail.png So if any of you know what to do don't hesitate to write down what you think. Otherwise it's off to the apple atore .
    Just remember dont Hesitate to ask/___sbsstatic___/migration-images/migration-img-not-avail.png
    Message was edited by: lexxie70117

    just looked on video part of the ipod touch it's not exactly on the music part duh to me!!

  • IPhone Playback Dropping Parts of Songs

    Howdy:
    My iPhone seems to be dropping parts of songs... All of a sudden, the guitars will vanish or will start and then disappear. Yet, when I play the same track off my computer or even from the iPhone INTO the computer speakers, it works fine.
    In other words:
    I hit play, the whole song starts normally, then the 2 guitar tracks (left and right) suddenly stop playing while everything else (drums, bass etc.) plays normally. This does NOT happen when pulling the song FROM the iPhone to play into the computer, or when the track is played FROM the library on the computer.
    I have also emailed this track to several people who heard the whole thing fine, on both Mac and PC systems.
    It's frustrating because it seems to be happening with just the one song. It's doubly frustrating because I recorded this tune myself and can't play it back while I'm out schmoozing. And all the other tracks of every other song work fine (including other songs I recorded), just this one tune doesn't.
    Has anyone else run into this same issue? Is there a limit to bandwidth/ frequency range or stereo panning on an iPhone? It's bizarre that it would start playing the track(s), then suddenly drop the sound of JUST those 2 tracks mid-playback while everything else plays fine...
    Any insights would be greatly appreciated.
    Thanks;
    MB

    Figured it out- Had "Remember position" selected in get info... Thought this was position in playlist. Duh.

  • Part of path lost when importing autogenerated files

    Hope someone can help as can't find anything on the forum about this.
    Have two Framemaker 8 books, one of which contains all the files for a future publication, including LOT, LOF and IX.  This is the full publication but most of it is still heavily in draft.  The second book represents the first release of the publication and has only a small subset of agreed content.  The idea is that the publication will grow in time.
    The second book is in a subdirectory below the directory containing the first book and the full set of files.  It has its own LOT,LOF and IX.  It also links up to a few of the files above, the ones that are in the first release. The LOT, LOF and IX contain contain references only to these few content files. Have done it this way rather than put everything in one directory, as there will be a number of subsets, with multiple PDFs produced for review from each before the finalised PDF containing the current content to be released at any one time, and don't want them all in the same directory with the management problems that would introduce, and risk of people selecting the wrong version of a LOT, LOF etc. The content files with the actual text in are not duplicated in this subdirectory; the book just links to them in the directory above itself.
    All was well on one PC but needed to work on a second also. This second one has a different directory structure and it isn't possible to change it because of the different policies in place.  So copied the main directory and the other subdirectory beneath to the new PC.  All appeared OK; the lower level book found the files above etc.
    To clarify the structure on the second PC is this:
    \dir0\dir1\dir2\Content directory - place where the first book plus the preface, glossary/index and the other files in the draft book - the main body
    ..dir0\dir1\dir2\Content directory\dirA - place where the second book and LOT, LOF, IX are for the book to be published first (the .. represents some other directories from the root)
    (On the first PC, it was \dir0\dir1\Content directory\ and dir0\dir1\Content directory\dir A - and this is the shorter path from the root)
    When trying to generate the PDF on the second realised something had gone wrong and then found that the problem began in FMkr. The symptom is this:
    The LOT, LOF and IX autogenerated files are fine within the book, their links can be clicked and they go to the source files (in the directory above).  BUT these files aren't part of the actual publication.  The LOT and LOF are embedded in a Preface (one of the files in level above) and the IX is embedded in a Glossary and Index file (ditto). When these are imported into the Preface or Glossary as appropriate, whether by reference or by actually including the file, the result is the same - the links become non clickable and an error is saying that the file can't be found. The path is partly truncated - it excludes the directory where the files actually are.
    So for a link to the Introduction.fm file, FMkr says it is looking for it as ..dir0\dir1\dir2\Introduction.fm and not ..dir0\dir1\dir2\Content directory\Introduction.fm where it actually is.
    This occurs even if the whole structure is copied elsewhere to a place higher in the hierarchy. It isn't possible to reproduce the structure on the first PC because of the configuration of the second PC.  Have tried taking the LOT etc. out of the second book then regenerating them from scratch - they are fine, the links in them are fine, but when imported into the other files, the links miss out the directory which actually holds the source files where the links point to. Must emphasise this did not happen on the first PC.
    Any ideas gratefully received.

    Thanks Sheila, have now overcome my problem with editing the post (duh!)
    Hope the below is clear enough as cannot send an actual screen shot. Have discovered that the number of directories above in path is a red herring because the problem now happens back on the original pc when the book and files are copied back to it.
    Have tried creating a test book with only the index, glossary/index and one content file linked from directory above (i.e. test book at dir c level) and it is OK in the autogenerated index but then does the same truncation when the index is imported into glossary/index, i.e. looks for the source file in dir A.  If the source file is copied into the test book directory, the file removed from book and then the local copy added back in and the book updated/import redone, the links work. so it will find it if the source files are in the same directory.  However, this always worked before with lots of test runs and a few real reviews too.
    Subject: FrameMaker General Discussion Part of path lost when importing autogenerated files
    It would be really helpful if you might do a screenshot  of the File Manager hierarchy of folders and insert them into your posting, maybe use callouts to annotate the various significant levels -- a visual would really, really make it much easier to interpret what you're describing.
    >
    Sorry, not coming out very clear compared to viewed on PC. Directories are A, B, C - Dir A caption "The Directory above the content directory. Links in the subset book in Directory C look in here after they are imported into other files in the subset book"
    Directory B says "Directory B, the content directory, with introduction, glossary/index and other content files, plus main book, main index, main LOT, LOF. Some of the content files in here are also linked to from the subset book in Directory C"
    Directory C says "Directory C containing the subset book with its own index, LOT, LOF, plus links to introduction, glossary/index and a couple of other files in Directory B.  The links to files in Dir B work in the autogenerated LOT, LOF etc, but not when imported into content files (linked files in directory B) although this used to work. They now look for the content files in Directory A instead"
    Hope that makes it clearer.

  • RFComm timeout question

    Hi,
    I'm developing an app that uses RFComm (JSR-82) to transfer data between my PC and cell phones.
    The data transfer is working fine.
    The problem is that, some times, Connector.open(<URL>) freezes my cell phones for some seconds before give me error when isn't possible to connect to my RFComm server.
    Two questions about it:
    1. Is it possible to control or to change the connection timeout using J2ME?
    2. Using a thread on my J2ME app, could I shutdown the bluetooth connection after N seconds? This way I could try to connect again before the default J2ME timeout.
    Regards,
    Alexandre.

    If there is a possibility that part of your code could crash because of an error or exception, then you should catch it and handle it in an elegant fashion suitable to you. Looking at the API, it doesn't seem possible to specify the timeout, So upon throwing a BluetoothConnectionException, try to reconnect up to a number of times you would like.

  • IPOD Skipping to a random part  of songs

    Hi people,
    I have a 5th generation iPod. Recently since installing the latest patch 1.2.1 I've noticed from time to time, my iPOD while playing a playlist, after completing a song will start the next song, (duh wait for for the problem ) but not from the start of it.
    I have been unable to replicate this problem so I am unsure what the cause is. Sometimes it will skip tot he middle part of a song sometimes to the end. Clicking fast forward would skip to a random part of the next song.
    Starting the song again will fix it, but I find this annoying as I turn my wheel lock on while playing.
    Anyone know what's going on?
    I have tried restoring my iPOD once but that did not fix the problem.
    Regards,
    Bobs_Pizza

    Here's how to solve this problem for ALL songs
    left click your first song [in your music library]
    now scroll down to your last song, hold shift, and left click the last song
    right click and click "get info"
    click OK after the warning message [for editing multiple files at a time]
    disable the "remember playback position" option
    connect your iPod, and this should do the trick!
    also, your iPod doesn't just remember that option from iTunes, it also remembers your EQ preset for certain songs and also volume adjustment for certain songs [-100% to +100% in case the song is too loud]

  • Bluetooth rfcomm service discovery

    Hi, I�m trying to use the bluetooth vi�s with Labview 7.1. I have a bluet. chip (zeevo) with its bd address but I don�t know the channel associated with the spp service. I used the rfcomm service discovery block but it says my bluet. chip has no services. The same if a put the bd address of a PDA. Running the vi (on the pc) it gives no error with the address but says there are no services, even if I use the examples I found in the example dir of labview. Where is the problem? Thank you. Eli

    Hello Eli,
    Having followed this and other bluetooth related threads, I've had identical problems to yourself. I'm developing bluetooth apps on a Toshiba Laptop with internal bluetooth card. This unfortunately uses Toshiba's own proprietary drivers, and after locating the Q323183 service pack, installation of this only gave me the Bluetooth monitor and did not allow LabVIEW to recognise the internal card. I've a TDK USB adaptor which comes as part of the blu2i development kit, and this has all the correct drivers bundled on the accompanying CD. I installed the Q328183 service pack and then added the BT Monitor exe separately and was immediately able to use the adaptor with LabVIEW.
    I've also had success with the the D-Link DBT-120 USB adaptor w
    hich can run off the same driver and monitor software. As far as the service search is concerned, I've had similar problems as yourself with these adaptors when running a service search as only the address of the adaptor is returned but no services - I think this is down to the fact that the MS drivers don't provide the adaptor with any services, although it is possible to move data between the PC and a PDA (I have an Ipaq 2210 running some LB7.1 PDA apps for this).
    By installing the TDK software suite for that adaptor, I was then able to find the services with a PDA set up to search for these (using Service Search VI).
    Hope this helps.
    Fadenoid

  • Query help, subtract two query parts

    Hi,
    I am beginner of PL/SQL and have a problem I couldn’t solve:
    Table (op_list):
    Item     -     Amount -     Status
    Item1     -     10     -     in
    Item2     -     12     -     in
    Item3     -     7     -     in
    Item1     -     2     -     out
    Item2     -     3     -     out
    Item1     -     1     -     dmg
    Item3     -     3     -     out
    Item1     -     2     -     out
    Item2     -     5     -     out
    Item2     -     2     -     in
    Item3     -     1     -     exp
    Would like to get result of query (subtract amount of 'out/dmg/exp' from 'in' ):
    Item - Amount left
    Item1     -     5
    Item2     -     6
    Item3 -     3
    I wrote code that returns sum of all incoming items and sum all out/dmg/exp items, but couldn’t solve how to subtract one part of querry from another. Or maybe there is a better way. Also worried what happens if there is no 'out/dmg/exp' only 'in'
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'in'
    group by item.name
    union
    select item.name, sum(op_list.item_amount)
    from op_list
    inner join item
    on op_list.item = item.item_id
    where op_list.status = 'out'
    or op_list.status = 'dmg'
    or op_list.status = 'exp'
    group by item.name
    Return:
    Item1     -     10      [10 in]
    Item1     -     5     [2+1+2]
    Item2     -     14     [12+2]
    Item3     -     7
    Item3     -     4     [3+1]
    Thanks in advance

    Hi,
    We can also use simple inline views to get what we need.
    select a.item,a.amount-b.amount Balance from
    (select item,sum(amount) Amount from op_list
    where status = 'in'
    group by item) a,
    (select item,sum(amount) Amount from op_list
    where status in ('out','dmg','exp')
    group by item) b
    where
    a.item=b.item
    order by item;
    ITEM       BALANCE
    Item1                      5
    Item2                      6
    Item3                      3Regards,
    Prazy

  • Análise de vibração de um motor a partir de Arduino e identificação de falhas

    Olá a todos. Sou novato no mundo do LabVIEW, por isso gostaria de uma ajuda de vocês. Tenho em minha faculdade o LabVIEW 2010.
    Estou realizando meu projeto de final de curso e tenho como objetivo identificar falhas em um motor a partir da vibração medida com um acelerômetro. Para explicar melhor meu objetivo, separei ele em três problemáticas:
    - Aquisição de dados:
    O primeiro passo é realizar a aquisição dos dados provindos do sensor. Visando baixos custos, opitei por usar o conjunto Arduino + Sensor ADXL345. Porém tive dificuldades em utilizar o protocolo I2C com o LabVIEW usando o LIFA (LabVIEW Interface for Arduino). Acabei optando por utilizar o próprio Arduino para medir a vibração e usar o VISA do LabVIEW para realizar a aquisição de dados. Para isso utilizei o VI em anexo que encontrei na internet. ele funciona muito bem, mas gostaria de utilizá-lo como Sub-VI em outro VI, já que o acelerômetro tem três medidas (X, Y e Z) e estou tendo dificuldades para isso, graças ao White Loop. Tirando o White Loop e os Switches, não consegui fazer dados saírem para outro VI, alguém pode me dar uma luz?
    - Tratamento dos dados:
    Antes de identificar o erro, gostaria de aplicar uma transformada de fourier nos dados que estão entrando (x, y e z) a fim de gerar um gráfico no fomínio da frequência. Alguém tem um exemplo de uso do bloco de transformada de Fourier no LabVIEW para eu estudar? Outras dicas são muito bem vindas.
    - Comparação dos dados:
    O último passo é usar alguma técnica de comparação de dados (como o Comparison Express) para comparar a vibração do motor com dados previamente armazenados em um arquivo de texto ou planilha, com a finalidade do LabVIEW identificar por conta própria qual é a falha presente no motor. Porém tive dificuldades em usar um arquivo como Input no Comparison Express, alguém já fez isso antes?
    Enfim, agradeço antecipadamente qualquer ajuda que receber. Como sou novo no LabVIEW, estou tendo várias dificuldades, mas espero conseguir atingir meus objetivos. Lembrando que estou com o LabVIEW 2010, se vocês puderem compartilhar VIs compatíveis vão me ajudar muito.
    Anexos:
    Data Aquisition.vi ‏37 KB

    Bom dia otaconlink. Tudo bem?
    Aquisição de dados:
    Gostaria de saber o que você gostaria de modificar no programa, são os dados de vibração?
    Tratamentos de dados:
     O seguinte link indica alguns exemplos aplicáveis ao seu programa:
    http://venus.ni.com/nisearch/app/main/p/bot/no/sn/catnav%3Aexample/ses/false/ap/global/q/fourier/lan...
    Comparação de dados:
    Você pode utilizar a estrutura de caso.
    Alguns exemplos de comparação de dados:
    http://zone.ni.com/devzone/cda/epd/p/id/4719
    http://zone.ni.com/devzone/cda/epd/p/id/5219
    https://decibel.ni.com/content/docs/DOC-12441
    http://zone.ni.com/devzone/cda/epd/p/id/5785
    Atenciosamente.
    Erick Yamamoto
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!

  • What is the correct part number for dvi to vga adapter for macbook pro model A1260

    Can someone tell me the Apple part number for the DVI to VGA adapter that came with a Macbook Pro model A1260? (Early 2008)
    My adapter has reached the end of useful life.
    Thanks!

    You have a MacBook Pro 15" Early 2009 (MacBook Pro 4,1)
    The Mac's port is a Dual-link DVI (VGA, Composite and S-video with adapter)
    The DVI connector  connects to the Dual link-DVI port,thus you need a DVI to VGA adapter.
    http://eshop.macsales.com/item/Micro%20Accessories/DVIVGA/
    You also can search the Apple store online for the part, but it's so basic and simple that paying more for Apple's version is just for looks.

  • Animated Gif with large base image & small animated part.

    Hello guys
    I'm not really sure how to explain that, due to my limited English comprehansion. I will try with images.
    I can easily create animated gif out of multiple layers, given each layer is identical, with small changes accuring over time.
    But I yet to figure out an animated gif, that uses one large image for the base, and only small part of it is animated.
    I always get the animated part working, without the large base applying across all the frames. All it does, is flashes once
    the frame is reached and then moves on to being transparent, showing only the small animated part.
    For example, this is a GIF made with Galaxy S4, of my friend playing with his phone, imported into PS CS6. On the Galaxy,
    after I record the GIF, I can use my finder to touch, mask and freez parts I don't want to move, and leave only small, animated bit.
    When I import it to PS, it shows one layer with full image, and bunch of frames with the animation part only.
    http://i.imgur.com/UAiopQA.jpg
    http://i.imgur.com/7XOGGV6.jpg
    Problem is, once the image is open with PS, I'm not able to export it to keep it working in the same manner. Given the Samsung's
    gifs are 8 to 10mb, it's hard to edit it, to make it more size friendly.
    The gif clearly works the way I describe, so there is a setting or method I don't know about.
    If PS is not best tool for editing GIF, what other apps would you recommand I use for it?
    Thank you for the taking the time to read
    best regards
    Monica

    This has been an ongoing issue for me since I switched from Powerpoint to Keynote. Most of the animated gifs with transparent backgrounds that I used with Powerpoint are no longer transparent in Keynote. You may want to search for those earlier threads on this topic...
    To summarize: I've had to open up my animated gifs in After Effects and use the Color Key effect to restore transparency, with mixed success.
    Good luck!

  • Why does FireFox truncate part of an E-mail of more than one page when I try to print it out? How can I sent an E-mail blaet to several but only show one name o

    When I try to print out an E-mail that is longer than one page, part of the 2nd page is truncated. I then have to go to Safari to print out the entire E-mail without part of it being truncated.
    When I have multiple E-mail addresses on a single E-mail, how can I send the E-mail so that each recipient only sees his/her name and E-mail address rather than everyone else that the E-mail is addressed to?
    Please advise.
    Thank you.
    Bill Leete

    Some style rules that Firefox handles well on the screen can cause this problem. Many email sites have a print button which simplifies the message format and removes navigation elements, etc., and Firefox generally handles print-formatted pages better. If your email site doesn't have print-formatted pages or those do not print, a "hack" is to select the text you want to print and then choose the Selection option in the print dialog.
    To hide email addresses from recipients, you need to place them in the BCC field. What do you put in the TO field in that case? You can use your own address.

  • I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    I've been trying to make an account with iTunes n everytime I get to the part of the credit card that's as far as I get because I dnt have one, how can I make an iTunes account without a credit card??

    Where are you located?
    Just go and buy an iTunes gift card at any store in your country.
    Then follow all the steps you did, but when it asks you for the credit card number, there shoujld be a GIFT CARD option which will let you load your account witht eh funds form the gift card without providing a credit/debit card #.

  • I'm part of a family sharing group. How do I use my iTunes balance to purchase apps?

    I'm part of a family sharing group, but I have a balance on my iTunes account. How do I use that balance to pay for apps, instead of using the organizers shared payment method?

    808LakerFan wrote:
    I'm part of a family sharing group, but I have a balance on my iTunes account. How do I use that balance to pay for apps, instead of using the organizers shared payment method?
    Laker Fan,
    It should be doing it that way.  See below for the official Apple description.  If it is not working as stated, contact iTunes Customer Service.
    Family purchases and payments
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card.

  • How can I print just a part of the page and not the full page with Adobe Reader v 10.1.2?

    how can I print just a part of the page and not the full page with Adobe Reader v 10.1.2? I need to print a engineering print with lot of information but information is too small in letter size and I don't have a plotter.

    Two ways to print a portion of a page: zooming or using the Snapshot Tool.
    ZOOMING:
    Zoom into the area you want to print.
    Click the Print icon.
    Under "Pages to Print", make sure "Current view" is selected under "More options" (you may need to click "More options" to open it).
    If you aren't satisfied with the preview, try clicking "Fit" under the Size button.
    SNAPSHOT
    Choose Edit > Take A Snapshot.
    Drag a rectangle around the area you want to print. 
    Click the Print icon.
    Under "Pages to Print", make sure that "Selected Graphic" is selected under "More options".
    To enlarge the snapshot to fit the sheet of paper, choose "Fit" under the Size button.
    Hope this helps!

Maybe you are looking for

  • Inter Company Credit Memo (Internal Credit Memo)

    Hi, I have searched the forum using: 'Inter Company Credit' ' Internal Credit Memo' and 'IG'. Found some information but still do not have full picture. We use an inter company process - similar to cross company selling - where company code A supplie

  • Hp how do i get my monitor back to normal

    can u please help

  • Finder Cover Flow initial view

    How can I set the initial view settings when using cover flow within finder- the finder file/folder list at the bottom of the window is way too short and the cover flow file preview portion of the window is massive. Appreciate?

  • INSERTstatement is not working if there is a before insert trigger

    INSERTstatement is not working if there is a before insert trigger on that table. That trigger contains an insert to another table which having the main table reference. Let us say, for example there a table named 'EMP_DEPT' and there is a before ins

  • [SOLVED]bash: assign a command output to a variable

    EDIT: Sorry, got the solution - the variable was good, I just forgot a "do" in a "for" loop.... Sorry Hi erveryone. I'm just starting to learn the basics of bash scripting, and I got a problem assigning the output of a command to a variable, and i ke