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. Max number of entries per table for SQLiteDatabase ontent provider

Hi,

I have an application that has a Content Provider with an
SQLiteDatabase. I noticed that

-- 

2. Call a static method from an AppWidget

Hi :)

I want to call a static method of a class when i click on the image of
my AppWidget.

I know how to call an activity :
Intent intent = new Intent(context, EnableWifi.class);
PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0,
intent, 0);
RemoteViews views = new RemoteViews(context.getPackageName(),
R.layout.main);
views.setOnClickPendingIntent(R.id.wifi_widget_icon, pendingIntent);

But i don't know how to call just a method.

Thanks

-- 

3. What is different between @id/android:list and @+id/android:list ?

4. Samsung Galaxy Spica (I5700) Bluetooth SPP with Android 2.1

5. HELP: A Verizon Droid puzzle.

6. OpenglES issue with Acer liquid.

7. world war