Android Appending Values Received From Server

by Bob Kerns » Mon, 19 Apr 2010 13:35:46 GMT


Sponsored Links
 What exactly do you mean by "second usage"?

Just pressing the home key and then tapping your program icon won't
create a new activity instance, unless the old one has been deleted.
You can't depend on it being deleted, in fact, you'd prefer it not be.

Study the diagram in the Activity class documentation (a screen or two
down):  http://developer.android.com/intl/de/reference/android/app/Activity.html 

Note that there are paths that take you back into the activity.
Depending on what exactly what data is you're getting from the server,
you may want to reinitialize in onResume() or onStart(). My guess
would be onStart() -- I think you probably don't want to re-fetch data
just because a dialog popped up, then returned control to your
Activity.

Likewise, you may want to de-initialize the data (for example, null
out the variable containing it) in the onStop() method, which will
allow the memory to be reclaimed sooner.



>



Android Appending Values Received From Server

by Kumar Bibek » Mon, 19 Apr 2010 16:25:22 GMT


 I think, you have a wrong logic in your program. Debug it through and
check what the server is actually returning. If you have written the
server program, check that as well.

Thanks and Regards,
Kumar Bibek





> >


Sponsored Links


Other Threads

1. Interesting problem

Hi developers.............


                Thanks for the replies.   I have a problem from last
few days. I want to delete sms from my inbox. I have used this code
for deletion.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Uri uri = Uri.parse("content://sms/inbox");
Cursor c1= getContentResolver().query(uri, null, null,null,null);
      int thread_id = c1.getInt(1);

        getContentResolver().delete(Uri.parse("content://sms/
conversations/" + thread_id),null,null);

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

But it dose not work . Please help me if any thing wrong and give me
the right code. Thanks in advance .

 
Suman.
--~--~---------~--~----~------------~-------~--~----~

2. what will this INTEL move affect Android?

http://www.businessweek.com/technology/content/jan2009/tc20090125_296994.htm?chan=technology_technology+index+page_top+stories

--~--~---------~--~----~------------~-------~--~----~

3. Start an activity and return back to original activity

4. Exception in thread "main" java.lang.NoSuchMethodError: main

5. Messaging back button bug

6. Start an activity and return back to original activity

7. Unable to install "Google Notepad" application