Ok perfect you are right.... it was just the getApplicationContext method who throw that exception !! Thank you for your help.
On 14 déc, 16:29, TreKing <[email protected]> wrote: > On Mon, Dec 13, 2010 at 4:34 PM, Antony BODY <[email protected]> wrote: > > Context mContext = getApplicationContext(); > > Dialog dialog = new Dialog(mContext); > > dialog.setContentView(R.layout.customdialog); > > dialog.show(); > > Let me guess, you were following the documentation, which is still > completely and blatantly wrong. > > I honestly can't believe this is still a problem. > > You can star this issue and maybe someday, after several hundred more people > have asked the same question, someone might take 30 seconds to fix > this:http://code.google.com/p/android/issues/detail?id=5748 > > ------------------------------------------------------------------------------------------------- > TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago > transit tracking app for Android-powered devices -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

