Alternate way for setting permissions for J2me application
-
06-06-2021 - |
Question
Currently I am using jad to set the http and Bluetooth permissions.
But I have a problem with this approach. Some of the handsets does not have support for bluetooth API, so the phone is not allowing the installation of the application as it does not support the bluetooth API.
Is there any alternate way of setting these permissions?
La solution
This is the solution:
MIDlet-Permissions-Opt: javax.microedition.io.Connector.bluetooth.client
This is how you can specify optional permission.
Autres conseils
If a handset does not have Bluetooth API then the Java Virtual Machine does not have javax.bluetooth package. Because of this the handset may not allow you to install the app.
Create another version of your app without any usage of the javax.bluetooth package and try installing again.
You don't have to specify these permissions at all. The MIDlet will work properly without them.