Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@46029dd0 that was originally added here
I am getting this error : has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@46029dd0 that was originally added here I have net connection in emulator, check it out browser by opening websites. I am getting error at the line of processdialog. @SuppressLint("NewApi") private class TheTask extends AsyncTask<Void, Void, Void> { @Override protected void onPreExecute() { dialog = ProgressDialog.show(Register.this, "", "Registering... Please wait...", true); } @Override protected Void doInBackground(Void... params) { request = new SoapObject(NAMESPACE, METHOD_NAME); name = new