[android-developers] Dialog problem

2010-02-09 Thread André
Hello, I'm trying to make a dialog box to open when I start a program. Eclipse likes my code, I like my code =), but the emulator does not like my code. It says that something went totally worong and the application has to shut down. Bellow you can see my code. When I run it in debug mode

Re: [android-developers] Dialog problem

2010-02-09 Thread TreKing
On Tue, Feb 9, 2010 at 3:24 PM, André pha...@hotmail.com wrote: Context mContext = getApplicationContext(); You're probably seeing something about a BadToken in the debug log, yes? DO NOT use getApplicationContext(). Use your current activity or the context from one of your views. I swear