Re: [android-developers] Re: leaked window again

2012-06-28 Thread mahmoud emam
thanks On Wed, Jun 27, 2012 at 5:49 PM, Justin Anderson magouyaw...@gmail.comwrote: It looks to me as if one of those dialogs is being created when the context is null, or at least invalid. That's kind of what I was thinking too... Thanks, Justin Anderson MagouyaWare Developer

Re: [android-developers] Re: leaked window again

2012-06-27 Thread Justin Anderson
It looks to me as if one of those dialogs is being created when the context is null, or at least invalid. That's kind of what I was thinking too... Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 5:00 PM, G. Blake Meike

[android-developers] Re: leaked window again

2012-06-26 Thread G. Blake Meike
Mahmoud, I'd be interested in pursuing this, if you are still having the problem. Would you: - Post the code for the anonymous onClick handler, in which the exception is being thrown? - Post the entire exception that is the problem Thanks, G. Blake Meike Marakana The second edition of

Re: [android-developers] Re: leaked window again

2012-06-26 Thread mahmoud emam
Event handler that call the AsyncTask OnClickListener processOnClickListener = new OnClickListener() { public void onClick(View v) { try { createProgressDialog(); pd.show(); new Segement(PreviewActivity.this, pd).execute(path);

Re: [android-developers] Re: leaked window again

2012-06-26 Thread Justin Anderson
How many times are you calling CreateProgressDialog()? It is called in your onClick() method and in onPreExecute() Also, what does the Segement class do? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 12:48 PM, mahmoud emam

Re: [android-developers] Re: leaked window again

2012-06-26 Thread mahmoud emam
*no each call in different places and the Segment class its my own class that i use it to do extract Numbers from an image I can send you the whole code if you want * On Tue, Jun 26, 2012 at 10:15 PM, Justin Anderson magouyaw...@gmail.comwrote: How many times are you calling

Re: [android-developers] Re: leaked window again

2012-06-26 Thread Justin Anderson
Generally sending the whole code won't be beneficial... How about posting the code for your activity? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Tue, Jun 26, 2012 at 2:25 PM, mahmoud emam mahmude...@gmail.com wrote: *no each call in different

Re: [android-developers] Re: leaked window again

2012-06-26 Thread mahmoud emam
public class PreviewActivity extends Activity { private ImageView previewIV; private final int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE = 100; private String path; private boolean crop = true; private boolean resample = true; private ProgressDialog pd; OnClickListener

[android-developers] Re: leaked window again

2012-06-26 Thread G. Blake Meike
Boy, you are kind of making this hard to sort out ;) What is the name of the AsyncTask subclass? It looks to me as if the variable pd is assigned different dialogs at different times? What is the value of the variable activity when onPreExecute is called? ...and, it seem that you've posted