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
lakmalvbj
Posts: 18
Registered: ‎10-31-2011
My Device: 8900
My Carrier: BAS

Security Timer dialog appearing during video playback

This question has been asked before but nobody has replied with an answer. The app was developed under OS5.0 and video works fine. But with OS6.0, the security timer dialog appear. Is there anyway we can stop appearing this dialog?

 

Please use plain text.
Administrator
MSohm
Posts: 14,421
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Security Timer dialog appearing during video playback

Are you playing video within your own application or invoking the Media Player?

 

Can you post a screenshot of the dialog or the exact text in the prompt?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Contributor
lakmalvbj
Posts: 18
Registered: ‎10-31-2011
My Device: 8900
My Carrier: BAS

Re: Security Timer dialog appearing during video playback

Hi Mark,

Thank you very much for your reply and apologize for late response. 

 

The video is playing within the app. 

try {
// Create a new Player pointing to the video file.
// This can use any valid URL.
player = Manager.createPlayer(videoURL);
player.realize();

// Create a new VideoControl.
videoControl = (VideoControl) player.getControl("VideoControl");
Field videoField = (Field)videoControl.initDisplayMode( VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field" );
add(videoField);
player.addPlayerListener(new PlayerHandler());
videoControl.setDisplayFullScreen(true);
//videoControl.setVisible(true);
VolumeControl volume = (VolumeControl) player.getControl("VolumeControl");
volume.setLevel(30);

player.start();

 

 

The exact text is 

 

"Application Permissions"

The appllication First Aid is attempting to reset the security time.

Then there is a check box for Do not ask again

And two buttons for Allow and Deny

 

Thanks ,

Janaka

 

 



Please use plain text.
Administrator
MSohm
Posts: 14,421
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: Security Timer dialog appearing during video playback

Has the 6.0 BlackBerry Smartphone you are testing with every been configured on a BlackBerry Enterprise Server?  Refer to points 1 and 2 in this article.

 

http://supportforums.blackberry.com/t5/Java-Development/Prevent-the-Lock-screen-from-interrupting-yo...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Contributor
lakmalvbj
Posts: 18
Registered: ‎10-31-2011
My Device: 8900
My Carrier: BAS

Re: Security Timer dialog appearing during video playback

No. They have not. But we can not ask users to do that. I did some research and found out we can't set the security to Allow within the app either.
Please use plain text.
Contributor
dogmatooth
Posts: 30
Registered: ‎08-28-2010
My Device: Torch 9800
My Carrier: 02

Re: Security Timer dialog appearing during video playback

So how can I watch a video without turning auto-lock off or resetting it to longer than the video?
Please use plain text.
Developer
shaan_softwaredvlpr
Posts: 172
Registered: ‎01-17-2011
My Device: 9500 series
My Carrier: Airtel

Re: Security Timer dialog appearing during video playback

[ Edited ]

You need to add this permissions

 

PERMISSION_IDLE_TIMER

Refer this link

 

Security Alert popup

 

Thanks

 

 

Please use plain text.