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
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Problem in dispalying the dialog message in catch statement

Hi i have to play a video in my app.

But the url is showing the media exception .

in catch() statement i have added the System.out.println().

 

But i want when i get  the media exception i get a dilog message and the player as well as the screen get closed .

If i add the Dialog in catch statement, i get an error.

 

Developer
Posts: 354
Registered: ‎06-05-2013
My Device: Blackberry Z10
My Carrier: Vodafone

Re: Problem in dispalying the dialog message in catch statement

Create your own logs for same...
Highlighted
Forums Advisor I
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Problem in dispalying the dialog message in catch statement

Hi i got the solution.

Thanks Aman.