SQL query every 30 minutes triggers Android notification -
i have webview application connecting clients mobile friendly website. admins, have functionality run sql query (that have) every 30 minutes. if returns true want notification triggered.
i have done research , have downloaded jdbc driver connect mssql database.
i know best way have app run query every 30 minutes , conditionally trigger notification.
any tips or appreciated. please let me know if duplicate, did search before posting.
tbg
use alarmmanager allows schedule application run @ point in future, in case every 30 minutes. make sure run heavy query in background using asynctask or that.
check learn more alarmmanager https://developer.android.com/training/scheduling/alarms.html , how use it.
Comments
Post a Comment