I am developing an application and i am unable to sovle this issue for about a week.
May be this sounds trivial, but i guess it may be very useful to many others like me.
I have a class A that extends Activity which calls another class B that extends View using setContentView().
Within the class B i am not able to make use of AlertDialog or any Dialog for that matter.
I get the following error on logcat:
Exception in alertNewGame() Method: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
Please help me on how to go about it.