I am developing an android app.
I am confused on how to store mysql data until a connection is restored. I want to have something in place if a user does not have a connection then data is stored in a database locally on the android device, but when connection is restored it would add data to the database.
How can I constantly check for a connection? Even when the app is off and then the data is added online to the mysql database. Ideally the connection would be checked every 30mins.
Are there any online examples for this please?(Checking for connection then doing a task?) I have checked but did not get many links.
Many thanks