When accessing a database in AsyncTask , if the database connection must be a member of the parent Activity or open / close in each AsyncTask ?
If the connection is a member of this action, I am concerned that when switching between my application actions, there is a possibility that the database connection may be closed before it finishes using this function.
source share