0

Why AlertDialog work with the tag "this" but not with the tag "getApplicationContext()"

AlertDialog.Builder alertDialog = new AlertDialog.Builder(this); //work
AlertDialog.Builder alertDialog = new AlertDialog.Builder(getApplicationContext()); //doesn't Work

why it is so ?

Facebamm
  • 147
  • 2
  • 12

0 Answers0