I am trying to develop Android and iOS app. I am trying to store the user input in the storage and upload them when the user can access internet. Is there any API/library I can use to implement this function?
Asked
Active
Viewed 1,252 times
2 Answers
2
Create a BroadCastReceiver class for internet connectivity change, define the same in manifest file. Connectivity BroadCast Receiver
Create a class which extends IntentService, to upload you records (write network stuff here)
In BroadCast Receiver class check for Data Connection if its true then start IntentService.
Test it.
0
You need to write function on the background of the app thet send Json to the server and get from the server.
Link To use onbackground in android Cus i android devlopement Asyngtask
its easy to learn and use Json.
Hope its help...

Community
- 1
- 1

user5010376
- 40
- 3