Leaflet.js localization request text on iPhone - ios

When I deploy my leaflet app to ios, the system asks me whether the user trusts application /private/var/mobile/Containers/bundle/Application/BLABLABLANUMBERS234234/www/index.html
to use the current location?
How can I
Replace the path with the application name?
Save the decision for the future? It keeps asking me every time when I start the app.
I guess Android would be similar?
Thanks
EL

Related

detect which is the current running application in device in iOS.

Is there any possible way to track which application is running in foreground in device in iOS.
For example if I am using facebook app I need to get the name of the application from my application.
If SMS application is used I need to get the name of the application from my application.
It's not possible. All you can do is get a list of currently running tasks using a systcl call.

Modal Application

I'm using Xamarin.Android and I would like to build an application that start in modal way and don't close if you push the home button.
So this application need to be the only one application than a user can use on device.
Somebody can suggest how it can be done?
You best way to do is to make a "Launcher"/"Home" application. The Android SDK comes with a sample on how to do this.
You basically do this by adding your main Activity to the android.intent.category.HOME and android.intent.category.DEFAULT category and you set the launchMode to singleInstance.
This will register it as a Home application, then when you press your home button it should ask you to choose which launcher you want to use. You will have to set it once and it can be changed by the user.
You can find the sample in: android-sdk\samples\android-17\Home\src\com\example\android\home (should also be available in the other API samples).
You cant stop people from installing applications on android devices. You would have to build your own hardware for that however, you can override OnKeyTouch and check for the key being home.
You could build a service that checks the package of each running application and log which applications are run on the device to prevent users from using company property on other things. However, if android ever decides to kill your application the service should stop and this wont work.
Long story short what you are trying to do is flawed in its inception given the platform you are trying to do it on.

Remove "Delete" menu for BlackBerry application

I want to remove "Delete" menu for application from home screen or download folder or wherever it is placed.
How can i achieve this?
Thanks
As I understand you would want your application to be installed so that the user CANNOT delete the application.
First, you will need to rethink if this requirement is justified. Suppose you are the end user and purchased the latest and greatest Blackberry phone for $600 and you install this application which you have found to be annoying (say this application sends SMS to some unknown number) and blast your phone bill. Ask yourself if you want to have the ability to delete this application.
Second, with this kind of feature, you will NEVER be able to host your application in Blackberry App World. Your application will be rejected outright. Consumers will not be able to install your app from App World.
Third, it is not possible to accomplish this. The following changes can be made to your application's icon
Change the application name of displayed
Change the application's Icon. This can be useful to alert the user that there is something interesting happening with the application.
Change the application's roll over icon.
That's it!
Nothing else if possible.

How a new version of blackberry application can be uploaded on blackberry app store?

Does blackberry provide versioning of app ?? Like in case of android/I-Phone whenever a new version uploaded, user will get notified to update the app.
is similar feature available in blackberry ??
also can you clearify how an app uniquely identified on RIM app store . for example android use a unique package name to avoid redundancy .
Yes. blackberry automatically takes versioning of the application as soon as we upload in app world. Also, the user will notify automatically. nothing to handle from client side. If you wish to provide the update feature on your app. you can always integrate by keeping the control on your web server which will redirect again to the app store.
Any, app that we upload in app world is given with content id which is unique for each app. something like this
https://appworld.blackberry.com/webstore/content/15282
Yes, AppWorld will notify the user when a new version is released. And I don't think there is any special requirement for unique identification.

On blackberry : making a phonecall within an app on user action without J2ME?

Is there a way of making a phonecall within an application using Browser application development ? (for example using a link with a protocol similar to 'mailto:user#example.com' but that would make phonecalls instead of sending mails.)
If not, is it possible to make phonecalls using the Rapid application development ?
If this an app hosted in a browser, Blackberry respects WAP conventions for encoding a phone number.
Here's an example snipppit for displaying a number that is callable via a Blackberry device:
<a href='wtai://wp/mc;5551231367' title='Call'>555.123.1367</a>
I've been using this approch for some time now and it works for me. When the user clicks the link, a dialog from the OS pops up and asks if you would like to call this number.
Additional Information
I also recommend checking out Blackberry's additional resources on development. Since the current browser is still in the stone age compared to iPhone/Android it's worth seeing what's possible.
http://na.blackberry.com/eng/support/docs/subcategories/?userType=21&category=BlackBerry+Browser

Resources