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. putExtra not working for a pending intent

Hi i have a widget which runs a service when pressed using the code below
Intent intent = new Intent(context, SignalSpotWidgetService.class);
            intent.putExtra("a", 9);
            PendingIntent pendingIntent = PendingIntent.getService(context, 
0, intent, 0); 

however in the service intent.hasExtra("a") is always false. why? does this 
not work for pending intents? How can I pass a a value between the two?
public void onStart( Intent intent, int startId )
{ 
Log.i(TAG,"onStart()");
 Log.i(TAG,"%%%%%%%%%%%%%%EXTRA: "+intent.hasExtra("a")); 

Thanks for any help.

-- 

2. NFC testing rig?

Hi,

We're going to fight with NFC for the next project and since I saw a few
people with much more knowledge on the subject on that list I'd like to ask
if anyone got any thoughts to share on building testing environment for such
projects. I mostly need Android mobile and some standalone NFC device to
test it all with. I did quick research yesterday yet I failed to find
anything but Nexus S (I do not look for non-Android devices for this phase
of the project, not sure if any exists anyway - I found some announcements
but seem these did not turned into products yet). As for standalone device
some companies seem to offer what I need too, i.e.
http://www.insidesecure.com/eng/Products/NFC-Products so there's a hope :)

Anyway, if anyone who spent some time on the subject and is willing to share
the lesson, I am all ears. Thanks in advance :)


Regards,
Marcin Orlowski

*Tray Agenda <http://bit.ly/trayagenda>* - keep you daily schedule handy...
*Date In Tray* <http://bit.ly/dateintraypro> - current date at glance...
WebnetMobile on *Facebook <http://webnetmobile.com/fb/>* and
*Twitter<http://webnetmobile.com/twitter/>
*

-- 

3. Users cannot download apps

4. Review singkat samsung galaxy tab telstra

5. Perkenalan dan mohon testimony john ivoryfill

6. droid2 gingerbread 2.3.3 TeamBlackHat stuck on activating phone

7. Intent to launch Google Latitude