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
Developer
02cp682
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100
Accepted Solution

runtime exception

i m getting runtime exception when i m trying to display dialog in a class extendind MainScreen or UIApplication

i dont found any technical/syntax error

 

any rough idea.... my code snippet is::

 

public MemoScreen(){ super(); util = new UtilityClass(); setTitle(UtilityClass._resources.getString(MEMO_SCREEN_TITLE)); try { _memoList = (BlackBerryMemoList) PIM.getInstance().openPIMList( BlackBerryPIM.MEMO_LIST, BlackBerryPIM.READ_WRITE ); }catch ( PIMException pe ) { System.exit( 1 ); } _memoListField = new ListField(); _memoListField.setCallback( this ); loadMemos(); add( _memoListField ); if(util.applicationRunnableStatus()==false){ Dialog.alert("Trial period over !");//Exception occures here } }

 

where MemoScreen extends MainScreen Class...

any strick????

Jeet Bhatt, India
Developer
02cp682
Posts: 80
Registered: ‎08-26-2008
My Device: 8800, 8100

Re: runtime exception

Solved !!!

 

just displayed dialog in invokeLater()...

Jeet Bhatt, India