Hi
when I use the nutiteq library there are some authorization where the user must respond. For example: when the application loads the maps online, a confirmation is requested for the connection.
I would like to ensure that these confirmations are not required and the application choose a default response. (for maps online, access file system directories, gps, ...)
Is possible?
How can I do this?
Thanks!
Yes, these prompts are right and mandatory when asking for data or gps connection.
But these are expecially annoying when trying to access stored maps in device file system. I wish there would be an easy way to give access to the device filesystem with a single request.
Yes, this file system prompts are most aggressive. However, with most devices you can answer something like "always yes", if you have signed application. But I've seen devices where this is not possible.
In application level you can minimize the number of prompts if you use "multiple tiles per file" with stored maps, with e.g. 32 tiles. The permission is asked maximum once per file. But otherwise there is nothing more what can be done in application level.
I try the sample of nutiteq library
samples\mapper\src\com\nutiteq\storedmaps
but this midlet ask each iteration the authorization to user for access the file system. Is there a method to set a default answer without ask to user?
Short answer: no
These prompts depends on devices. Some devices will not show the prompts, or at least some of the prompts if application is signed (e.g. BlackBerry, also some J2ME devices). With Blackberry it is easiest, there is just one signing level and you just buy signature from RIM and then can self-sign your apps. With Java ME it is more complicated: there are different trust domains. By default you are in "untrusted 3rd party domain" which has all the promots. With Thawte or Verisign code signing you get "Trusted 3rd party domain" which gives different permissions depending on phone model (and operator policies). E.g. http://wiki.forum.nokia.com/index.php/API_access_rights_on_phones%2C_Series_40_3rd_FP1 describes some Nokia platform rights. You see that first time permission asking still happens in this level.
To get no prompts at all you need operator or manufacturer signing, highest security domains. This could be hard and expensive; for small companies it is just impossible as you need high-level business relationships with either of them. Some smaller operators have told me that they just do not have own application certs on their SIM cards or phones.
/JaakL