When a execute SQL, all code go to module.
This module open database, execute sql, get data (jdbcresult), etc.
if the conexión are broken (internet off or similir), the execute method return and error, but this error, this is que question,
- must be detect inAll executes o getData in all activitys?
i think do a:
DO
try reconnect 1, 2, 3....
WHILE
or lunch a activity to show a big error to user, and put a RE-DO connect try or simil.
what do yo think about this? or what is best technique?
This module open database, execute sql, get data (jdbcresult), etc.
if the conexión are broken (internet off or similir), the execute method return and error, but this error, this is que question,
- must be detect inAll executes o getData in all activitys?
i think do a:
DO
try reconnect 1, 2, 3....
WHILE
or lunch a activity to show a big error to user, and put a RE-DO connect try or simil.
what do yo think about this? or what is best technique?
Last edited: