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
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
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
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
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
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
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.
Pit,
You will be thrilled to know that this is indeed possible!
See -
http://sar.informatik.hu-berlin.de/r...R-2006-04_.pdf
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