18
Android: ProgressDialog.show () se bloquea con getApplicationContext
Parece que no puedo entender por qué está sucediendo esto. Este código: mProgressDialog = ProgressDialog.show(this, "", getString(R.string.loading), true); funciona bien. Sin embargo, este código: mProgressDialog = ProgressDialog.show(getApplicationContext(), "", getString(R.string.loading), true); lanza la siguiente excepción: W/WindowManager( 569): Attempted to add window with non-application token WindowToken{438bee58 token=null}. Aborting. D/AndroidRuntime( 2049): Shutting down …