-1

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?

dario
  • 5,149
  • 12
  • 28
  • 32
Tony Yu
  • 21
  • 3

2 Answers2

2
  1. Create a BroadCastReceiver class for internet connectivity change, define the same in manifest file. Connectivity BroadCast Receiver

  2. Create a class which extends IntentService, to upload you records (write network stuff here)

  3. In BroadCast Receiver class check for Data Connection if its true then start IntentService.

  4. Test it.

Community
  • 1
  • 1
Bharatesh
  • 8,943
  • 3
  • 38
  • 67
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