 <p>the Constractor must get Context</p> <p><a href="http://developer.android.com/reference/android/app/AlertDialog.html" rel="nofollow">AlertDialog</a></p> <p>try using <code>getApplicationContext()</code></p> <p>or pass <code>Context</code> to this Class</p>