Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 48
Registered: ‎06-30-2010
My Device: 9000
My Carrier: Non

About Application Permission dialog prompt

Hi,

 

    After installing the application, When i run it first time , Application permission dialog was displaying.

"Would you like to grant MyAppName Trusted Application status? 'Yes' , 'No' , 'Help' Buttons"

Some times more than one dialog also displaying. Can any of you tell me the reason ?

 

 

Thanks

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: About Application Permission dialog prompt

You will usually only get one of these.

 

However I suspect if your installation package actually contains multiple applications, then you might see it more than once.

 

Can you describe what you have done prior to seeing these messages in each case?

Contributor
Posts: 48
Registered: ‎06-30-2010
My Device: 9000
My Carrier: Non

Re: About Application Permission dialog prompt

I'm getting the dialog twice. Both the dialog shows the same message

"The application MyAppname is attempting to access phone information".

Its a background application.

Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: About Application Permission dialog prompt

You said the message was the 'Trusted Application' request.  Is it not that one?

Contributor
Posts: 48
Registered: ‎06-30-2010
My Device: 9000
My Carrier: Non

Re: About Application Permission dialog prompt

oh.Then this is an Application permission dialog right? I'm getting this dialog twice "The application MyAppname is attempting to access phone information. " Allow,  Deny with two buttons . What's the reason for this???

Contributor
Posts: 48
Registered: ‎06-30-2010
My Device: 9000
My Carrier: Non

Re: About Application Permission dialog prompt

Trusted Application dialog displaying only once.
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: About Application Permission dialog prompt

This is an Application Permissions Dialog.  Usually it will appear the first time your application attempts to access a resource, and there will be a 'ask this only once' check box.  If you don't check this, it will ask you every time.

 

The ApplicationPermissions sample code demonstrates how to handle this sort of requirement.