Monica Marcus wrote:Hi, Ulf! The logcat points to the line nr. 22
dialog.show()
Sorry, missed this with my first response...
It seems that the method getApplicationContext() returns null.
Okay, did a little research. getApplicationContext() can't return null, but it returns the Application. The Application instance is apparently not a suitable Context implementation for the Dialog, and
you should be using the Activity instead. This means you should be using
mContext = this; and
not mContext = getApplicationContext();. So get rid of that line.
See:
https://code.google.com/p/android/issues/detail?id=11199
The problem may be a code bug, but is at least a documentation bug that has spread pretty far. The latest docs say you should be using DialogFragments instead, anyway if possible (remember the DialogFragment class is available in the support library, which makes it quite backwards compatible...)