how to know data successfully saved on server

by AJ » Mon, 30 Aug 2010 15:08:29 GMT


Sponsored Links
 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




--



how to know data successfully saved on server

by pramod.deore » Mon, 30 Aug 2010 15:16:11 GMT


 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.





--


Sponsored Links


how to know data successfully saved on server

by Mark Murphy » Mon, 30 Aug 2010 15:24:57 GMT


 


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!

--



how to know data successfully saved on server

by pramod.deore » Mon, 30 Aug 2010 15:29:13 GMT


 Thank you Sir,

--



Other Threads

1. Installing APK from Google Mail attachment

Hello,

I would like to install an APK from a Google Mail attachment.
Only I did not get that to work yet, in the emulator.
I did prepare a virtual sdcard and run the emulator with the "-sdcard"
switch and the card is available in the emulator.
I did check "Application settings" - "Unknown sources" in the
settings.
Only, when I click the attachment in the browser it says "downloading"
but then I get some unknown file type message.

Is it possible at all to install an APK from a google Mail attachment
or doesn't that work at all?
Is it about the special Mime type required for APK downloads?
If so, wouldn't it be great if Google configured that Mime type on
their servers for downloads from Mail?

regards

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

2. Android porting on IMX31 board

Hi mike,

 Now I have finally decided to use u  r kernel for the project it is latest
kernel which u have sent me.
 I went through the "make menuconfig" of kernel which u have sent me
surprisingly I found there was support
 for freescale i.mx31 borad in kernel itself!


 I have few questions to ask to u.

1. If freescale Imx31 board support is given in the release of Android
kernel linux2.6.25 , can I generate a kernel image which can directly work
with my board with any diff's and patches?  There is a option for
enable/disable for goldfish drivers in kernel , I can disable it by which I
dont think so any of the goldfish related things can come into picture ! is
there any thing other I have to disable???

2. I tried to compile u r kernel sources which u sent me, but it was giving
some compilation errors, I m using codesoucery gcc-none-eabi  toolchains,
but I am getting  unknow errors(at least to me!).

3. Can u send me u r .config (I believe this is the file which contains the
details of all wat we would have selected in make menuconfig), so that I can
place the same file which u have complied for, and again I do make
menuconfig by which I will get u r configration !, now I can only change the
platform from this make menuconfig and compile it for once to get image
related to my target.


correct me if I m wrong anyways.


Best Regards,
Rajesh N

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. I need change wifi AP information on GPS check my position.

4. G1 developer phone outside the first countries list

5. Android PM

6. Customized Opencore on G1 mobile

7. Import Bulk Data