android - How to store data in SQLite and send that to web server when connected, via JSON format -
hi app wifi scan , send data (using json array) splunk server(web server) periodically, @ time of wifi disconnection cant send, planning store scan result using sqlite database , automatically send them server when reconnect wifi network. kindly me how that.
fyi: when user disconnected app scan , store data every 1 min , when reconnect should send automatically stored data server.
thank in advance.
you should use broadcast reciever notified on internet connection , in onrecieve of broadcast reciever perform action follow this guide more guidance
Comments
Post a Comment