I think the reason why the journal files are deleted is that AnkiDroid
closes all the database when all activities are closed, so that should
be reproducible.
The application is very likely to still be running, as the system is
unlikely to close it just because the use has backed out of all
activities.
You can check if the application is running by using something like:
adb shell ps | grep com.ichi2.anki
Note that in Android application usually do not quit.
It is up to the system whether to keep the application running or not.
However, applications should be well behaved and not keep a hold of
unnecessary resources.
In the case of AnkiDroid, I believe if the system is updating a
notification or updating the content of the widget, they the
application will keep the database open, as it is needed in that case.
Moreover, I think most of AnkiDroid's long running AsyncTasks are not
stopped when there are no running activities, which might be something
we can improve upon.
For a discussion of why application do not usually quit, see:
http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon
my 2c
-Flavio
On Mon, Aug 20, 2012 at 4:12 PM, <
ovgo...@gmail.com> wrote:
> I'm not sure is it always works. I just tested it only once.
> Anyway, it's not clear to a new user if pressing Back will write all the
> changes to the Database. I think there should be an explicit button to exit
> AnkiDroid and write all changes to DB.
>
https://groups.google.com/d/msg/anki-android/-/c8NJ4rb5BxwJ.
--
Flavio Lerda