I've made a form app that send data to my mysql server. All is good but I have a question: what should I use if my app doesn't have internet..the user enters the data and is submitted if I have internet but what if for 5 or 10 minutes i don't have internet acces and the user still sends data. Do I lose that data or is there a way to save the data and when the internet is activated again all the data saved is transmited to my mysql server...??
I've heard about JSON Parser but i don't know exactly how it works...
BroadcastReceiver
in your android applicationWhen your user submits some data and press submit then check for the internet connection of the device.If internet is not available then store the data in the local database or shared preferences(if data is small). Now when internet will be available,your broadcast receiver will be called and will check the data in the local database.If present ,it will have to send that data as you used to do already.