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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
KRatnaReddy
Posts: 74
Registered: ‎02-04-2009
Accepted Solution

how can I get Phonelistener 'Deny' press event?

Hi All,
1. Working on BB storm (9530/9500 simulator) version is v4.7.0.75
2. Used BB JDE 4.7

3. Had signing permissions

4. Request is as follows:

 

I have a  application using setPhonelistener() API's.

when i installed on device i will be getting a popup say "Your app is trying to access Phone api would you like to....etc with "Allow/Deny buttons". when user pres the Allow it is happy flow.

problem here is if user says Deny, user can't use our application at all. user is not allow to access any phone api's W.R.T my application.

 

how can I get this Deny press event? so that i can show a popup to user with some message.

 

I would like to handle this Deny press event. is there any possibility.

 

 

Thanks In Advance

Ratna

Please use plain text.
Developer
amardeepjaiman
Posts: 293
Registered: ‎02-25-2009

Re: how can I get Phonelistener 'Deny' press event?

try implementing GlobalEventListener in your application.
Please use plain text.
Developer
amardeepjaiman
Posts: 293
Registered: ‎02-25-2009

Re: how can I get Phonelistener 'Deny' press event?

Hi,

 

i think i got what you wanted, just implement DilaogClosedListener in your app.

 

and override

 

dialogClosed(Dialog dialog, int choice) , this will give you the choice user made to close the dialog. 

 

this should work for system generated dialogs too.

Please use plain text.
Developer
KRatnaReddy
Posts: 74
Registered: ‎02-04-2009

Re: how can I get Phonelistener 'Deny' press event?

Hi Thanks for your replies.

 

i tried with DialogClosedListener and GlobalEventListener but didn't worked.

 

I just handled Exception when user 'Deny'  it Phone Permissions, it does my job done.

 

Thanks a lot

Please use plain text.