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

Posts: 17
Registered: ‎07-15-2011
My Device: 9300
My Carrier: Telcel

IllegalStateException return from the invocation

 public MyScreen()
    	try {
    	    Invocation invocation = new Invocation("file:///store/home/user/prueba.amr"); 
    	    Registry _registry=Registry.getRegistry(Application.getApplication().getClass().getName()); 
    	} catch (IOException e) 
    	{      }
    	add(new LabelField("Hello"));

 I have a problem with my code

The code opens the file and play but at the time of giving the Back button or escape button, I check the IllegalStateException, but if I give the player back I stop and mark problem

New Contributor
Posts: 3
Registered: ‎01-30-2012
My Device: 9300 - 8520
My Carrier: Mtc touch

Re: IllegalStateException return from the invocation

I am facing the same problem, Iam getting an illegal state exception when pressing the back button!

Did u find a solution for your problem?

thankx for ur help

Posts: 15
Registered: ‎04-27-2011
My Device: Storm 2-9550
My Carrier: Verizone

Re: IllegalStateException return from the invocation

Why didn't you show the content of Exception e (e.getMessage()) ? It's the detail description of the current IllegalStateException you have met.