Application crashes when downloding long data in from server and in loop.............

by imran ali » Fri, 20 May 2011 19:22:33 GMT


Sponsored Links
 Hi all
I have been using AsyncTask<Context, Integer, String> to download data
from server,
in between it has been crashing with message in DDMS.
05-20 16:37:11.656: DEBUG/Zygote(33): Process 9489 terminated by
signal (11)

can any one has idea, what would be solution, i am downloading big
size of data approx 10MB of text.

Regards
Imran ali

-- 



Re: Application crashes when downloding long data in from server and in loop.............

by Daniel Drozdzewski » Fri, 20 May 2011 19:36:04 GMT


 Imran,

Any debug info?
Listing of your doInBackground() perhaps?

Are you saving the whole 10MB of text into memory or do you save it to
a file via some buffer?

Daniel








-- 
Daniel Drozdzewski

-- 


Sponsored Links


Other Threads

1. moving imageviews around in a tableLayout.

I have a list a imageviews, that I displayed on a tableLayout as a 5 x
5 grid. if one of this imageviews are clicked it should be moved to
the nearest free position within the view. I have tried a gridview,
but it adds too much space between the imageviews, which I didn't
want. tableLayout solves the spacing problem, now I don't know how to
move this imageviews  between  tablerows when they are clicked.

Please how can I perform this?

-- 

2. SMS Intent, dealing with fragmentation

Hi

I am having trouble writing a Intent that launches the SMS editor and
that works on all devices across all OS version from 1.5 and up. The
specific problem I am having relates to pre-filling in the adress and
body of the SMS as these do not seem to work uniformly on all
platforms.

I have tried all the below:

public void startSmsIntent(String adress, String body)
{
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra(ddress adress);
intent.putExtra(ms_body body);
sendIntent.setType("vnd.android-dir/mms-sms");
startActivity(intent);
}

public void startSmsIntent(String adress, String body)
{
Intent sendIntent  = new Intent(Intent.ACTION_VIEW,
Uri.parse("sms:"+adress));
smsIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
smsIntent.putExtra("sms_body",body);
this.context.startActivity(smsIntent);
}

public void startSmsIntent(String adress, String body)
{
Intent sendIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse("smsto:"+adress+"?body="+body));
startActivity(intent);
}

Does anybody have some usefull input on this and/or the magic method
that simply works on all devices?

Thanks in advance.

-- 

3. new learner

4. MPEG-4 SP Encoder Support

5. Scrolling a plain textview as output appears, and why would you prefer a textview in a scrollview over a scrolling textview?

6. "Too many contacts deletes" rules

7. Help using custom Preference types - for pity or money