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. failed to install applications on G1 through USB

You must sign your application before install it in to device,
for signing you can use the tool

keytool  -- to generate your signing key

jarsigner  -- to sign your apk file with above generated key







-- 
Dilli Rao. M
ARIJASOFT
+91 - 9703073540

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

2. Synchronization using Alarm Manager

Hi,

I'm trying to sync data connecting to a web service at periodic
intervals.

As of now, i'm using a Alarm Manager. But the BroadcastReceiver does
not fire the class which does all the syncing. I am passing the
context of the BroadcastReceiver as a parameter for this class.

Is this the right way?

Or using a Handler is a better option?

Waiting for a reply.

Thanks,
Immanuel

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

3. How to get what process has openned the file?

4. Some problems i have encountered and would like fixes for:

5. Possible bug in TableLayout

6. missing partner_setup in envsetup.sh

7. Can MediaPlayer play .wav fomat audio?