Loading New Data with Back Button

by apple.developer27 » Mon, 13 Apr 2009 12:08:20 GMT


Sponsored Links
 I have a message application so that on view 1 is displayed a list of
messages and when you go to view 2 (subactivity) you can send a
message.  I want the program to work so that when you hit the android
back button, you can go back to view 1 and see the list of messages
including the new message.  Right now only the old data is displayed,
and I noticed that displayContent() is not called when going back
which I assumed it would.  Is there any way to specify that when the
back button is hit, to call displayContent() again on the previous
activity?

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



Loading New Data with Back Button

by apple.developer27 » Mon, 13 Apr 2009 12:08:27 GMT


 I have a message application so that on view 1 is displayed a list of
messages and when you go to view 2 (subactivity) you can send a
message.  I want the program to work so that when you hit the android
back button, you can go back to view 1 and see the list of messages
including the new message.  Right now only the old data is displayed,
and I noticed that displayContent() is not called when going back
which I assumed it would.  Is there any way to specify that when the
back button is hit, to call displayContent() again on the previous
activity?

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


Sponsored Links


Loading New Data with Back Button

by Marco Nelissen » Mon, 13 Apr 2009 12:28:58 GMT


 If 'view 2' is another activity, then the onResume() of 'view1' will
be called after pressing the back button, so you could simply
redisplay your data there.


On Fri, Apr 10, 2009 at 7:16 PM, apple.developer27



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



Other Threads

1. How to create Image filter based animations ; Android Animations

Hi
I have a requirement to create animations which are based on Image
filters. As of now I can see only Alpha Animation support. How can I
extend and create these animations such as blur etc.

Thanks In advance
Sid

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

2. Local speed at gps location sometimes reported wrong on G1

Hi,

when evaluating the speed of a gps location via
android.location.Location.getSpeed() this sometimes (randomly)
responds with values close to 128 m/s on a G1, which is senseless
(except when you are in a plane...).

The problem seems to be unrelated to position accuracy, but may have
something to do with power control (if device is sleeping and "woke
up" using android.location.LocationManager.requestLocationUpdates
(...)).

Anyone had that problem? Does anyone know the valid range of
android.location.Location.getSpeed() on a G1, e.g., does it report
speeds above 128 m/s (460 km/h) correctly at all?


Thanks

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

3. What is the intended usage of the "Next" and "Done" keys on the soft keyboard

4. problem with startActivityForResult function

5. What is the intended usage of the "Next" and "Done" keys on the soft keyboard

6. 1.6 system image for ADP1

7. How to use the XML RPC Android library (android-xmlrpc)