[android-developers] Re: how to know data successfully saved on server
You must have written code for posting data to server in a thread. So when you press the BACK key terminate that thread and show a screen that Failure Data posting to server to user Thanks, AJ On Aug 30, 12:00 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi, In my application I am sending data to server if I had not pressed back button when data is sending to server then data is successfully saved on server and new screen (one created in layout folder) is displayed which says data is stored. But at the time of sending data if i pressed back button then also data successfully saved on server but I can't see that new screen that data is stored on server. How to handle this situation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to know data successfully saved on server
HI, AJ Thanks for reply, But instead of terminating the process what I want is : If user press back button then also data is sent to server in background and after successfully sending set screen or alertbox to the user showing status of data i.e successfully saved on server or not. On Aug 30, 12:08 pm, AJ ajeet.invinci...@gmail.com wrote: You must have written code for posting data to server in a thread. So when you press the BACK key terminate that thread and show a screen that Failure Data posting to server to user Thanks, AJ On Aug 30, 12:00 pm, pramod.deore deore.pramo...@gmail.com wrote: Hi, In my application I am sending data to server if I had not pressed back button when data is sending to server then data is successfully saved on server and new screen (one created in layout folder) is displayed which says data is stored. But at the time of sending data if i pressed back button then also data successfully saved on server but I can't see that new screen that data is stored on server. How to handle this situation? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: how to know data successfully saved on server
On Mon, Aug 30, 2010 at 3:15 AM, pramod.deore deore.pramo...@gmail.com wrote: But instead of terminating the process what I want is : If user press back button then also data is sent to server in background and after successfully sending set screen or alertbox to the user showing status of data i.e successfully saved on server or not. Step #1: Use an IntentService instead of a thread Step #2: When the IntentService is done with the upload, it uses an ordered broadcast to either update the on-screen activity or put a Notification in the status bar http://commonsware.com/blog/2010/08/11/activity-notification-ordered-broadcast.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: how to know data successfully saved on server
Thank you Sir, -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en