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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Contributor
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?

 

Highlighted
BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Contributor
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

 

 

BlackBerry Development Advisor
Posts: 15,884
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
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.
Contributor
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.
Contributor
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?
Developer
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