I\'m trying to open a dialog window, but every time I try to open it it throws this exception:
Uncaught handler: thread main exiting due to uncaught exceptio
You can also do this
public class Example extends Activity { final Context context = this; final Dialog dialog = new Dialog(context); }
This worked for me !!