Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replication between Android and Sql Server

I want to do the replication between sql server & android sqlite.I have done downloading(sql server to Android) using WCF service.Uploading part also that way I can do it.

My Problem is: After user change/enter table contents (e.g enter new invoice), it should start the upload(sqlite to sql sever) backed without effecting my current work/activity.

How we can implement this?

If it is mutithreading how it is possible.Need to run two activity same time.One will run foreground other one run in background....

Please help me or give me idea reading this?

Thanks in advance?

like image 319
Piraba Avatar asked Sep 28 '26 16:09

Piraba


1 Answers

The recommended design practice for this is to use a content provider which handles concurrent thread access to the database.

To handle the background service actions, just implement an IntentService and simply call startService(intent);

like image 198
Moog Avatar answered Oct 01 '26 07:10

Moog



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!