×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    50

    Unhappy Transfer java application with bluetooth

    hello,
    I would like to know if you need to insert the java API for bluetooth connection when the application is transferred with bluetooth systems.
    The application should be transferred to devices from different manufacturers.

    chia_84

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Transfer java application with bluetooth

    Hi chia_84,

    if you mean sending a MIDlet from a PC to a mobile phone, then you do not need Bluetooth (or any other) API on the device to receive the MIDlet itself.

    Instead, if you mean sending a MIDlet from within the MIDlet itself, then it is not possible, since a MIDlet has no access to its own JAR file.

    Hope this helps,
    Pit

  3. #3
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    50

    Re: Transfer java application with bluetooth

    hi Pit,
    I need to transfer files. jar through access point.

    in this case, once switched the bluetooth device the file .jar will be transferred without problems?

    thanks
    chia_84

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Transfer java application with bluetooth

    Hi chia_84,

    bluetooth behavior really changes from device to device. Some of them (e.g.: Nokia devices) accept JAR files without problems (but user has to accept them, if the sending device is not authorized), some others (e.g.: many Samsung phones) simply will not accept/install MIDlets sent using Bluetooth.

    Pit

  5. #5
    Regular Contributor
    Join Date
    Jan 2008
    Posts
    50

    Re: Transfer java application with bluetooth

    thanks for your timely response .. But I need to send the file. jar through access point on any type of device (Nokia, Samsung, Motorola ect.).
    This problem can be resolved in some way?
    chia_84

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: Transfer java application with bluetooth

    There is no method/mechanism that works 100%.

    Note also that a MIDlet has no access to its own .jar file, nor can it see other installed .jar files. Only .jar files in a public directory accessible with JSR-75 can be seen.

    And then note that on Nokia device there's also this rudimentary copying prevention mechanism called a Closed Content List, CCL, where the built-in mechanism for sending objects refuses to send certain file types such as .jar files.

  7. #7
    Registered User
    Join Date
    Nov 2008
    Posts
    19

    Re: Transfer java application with bluetooth

    Quote Originally Posted by jappit View Post

    Instead, if you mean sending a MIDlet from within the MIDlet itself, then it is not possible, since a MIDlet has no access to its own JAR file.
    Pit,
    You will be thrilled to know that this is indeed possible!
    See -

    http://sar.informatik.hu-berlin.de/r...R-2006-04_.pdf


  8. #8
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: Transfer java application with bluetooth

    You're correct. This is probably the only workaround, but with one important limitation, as stated in the doc itself and also here by hartti:

    http://discussion.forum.nokia.com/fo...ad.php?t=93106

    and is that the receiving phone will not be able to send the MIDlet to another phone, since it will not have the JAR packed inside itself.

    In my opinion, placing the MIDlet on a public server and sending a link to the MIDlet itself is still a better solution

    Pit

Similar Threads

  1. help me on file transfer - pc to phone over bluetooth.
    By kiran10182 in forum Bluetooth Technology
    Replies: 2
    Last Post: 2009-09-05, 10:07
  2. Motorola Razor V3 'Application Error' using J2ME and Bluetooth
    By setorre in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-30, 05:15
  3. File Transfer Application on Sony Ericson W810i via bluetooth
    By atiqkamran in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2007-07-22, 19:25
  4. Java Application Provisioning ove BT
    By a_n_k_u_r in forum Bluetooth Technology
    Replies: 3
    Last Post: 2006-06-23, 08:48
  5. Installing Java App over Bluetooth, from inside a Java App or a PC Access Point
    By a_n_k_u_r in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-07-30, 18:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×