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

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

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. HanDict -Google Dict & Wiki

HanDict is a free online English Dictionary that gives you English
definitions from Google Dictionary and Wikipedia for Android

You can start to search from anywhere, there is no need to close your
current reading window and back to home to launch other app, just
quick launch Handict for the notification bar.

while you are typing, Handict will give you spelling suggestion, you
can select one of them without typing the entire word.

HanDict include Google dictionary, Wikipedia. both of them are
powerful free online dictionary.

you can download it from android market, just search "Handict" or scan
the following QR-Code

more detail, please check this link:


2. Strange bug found when subtracting a float from another float, or a double from another double

Try this:

Double mChange = Double.parseDouble("7.1") - Double.parseDouble

Float mChange = Float.parseFloat("7.1") - Float.parseFloat("7.15");

mChange should be -0,05 in both cases, right?

So why is mChangeD = -0.05000019 ???


3. Can you use SensorListener in SDK 1.5_r3 ?

4. Power off the screen

5. Android - playing list of mp3s from browser

6. Fast, efficient usage of an object pool

7. Application **** has stopped unexpectedly, please try again!!!