I am developing a feedback application, when I click the submitnow button, I get the following error
Activity leaked out the window
com.android.internal.policy.impl.PhoneWindow$DecorView@46029dd0
Below is my code, please help me.
public class SignOut_Activity extends SherlockActivity implements OnClickListener { Button btnSubmitNow, btnSubmitLater; ProgressDialog progressDialog; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getSupportActionBar().setDisplayHomeAsUpEnabled(true); setContentView(R.layout.signout); ((TextView) findViewById(R.id.tvSubTitle)) .setText(StoresListAdapter.StoreName); btnSubmitNow = (Button) findViewById(R.id.btnSubmitNow); btnSubmitLater = (Button) findViewById(R.id.btnSubmitLater); btnSubmitNow.setOnClickListener(this); btnSubmitLater.setOnClickListener(this); progressDialog = new ProgressDialog(SignOut_Activity.this); progressDialog.setMessage("Uploading data, please wait..."); } @Override public boolean onOptionsItemSelected( com.actionbarsherlock.view.MenuItem item) { switch (item.getItemId()) { case android.R.id.home:
java android android-dialogfragment android-dialog
Raghu kaligipula
source share