Android Question Best technique for Error Control in EXECUTE sql (to sql server or sqlite or others?

netsistemas

Active Member
Licensed User
Longtime User
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?
 
Last edited:
Cookies are required to use this site. You must accept them to continue using the site. Learn more…