codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Save information to a file (gnucash xml) #730

Closed gutierri closed 6 years ago

gutierri commented 7 years ago

Similar to TODO.txt (android) where it saves the modifications to a file. It would be interesting to have the same "functionality" that would facilitate synchronization with other devices (with help with syncthink or some cloud service for example)

codinguser commented 7 years ago

Your request is not clear (to me at least). GnuCash Android can export to a file already.

gutierri commented 7 years ago

@codinguser Yes, it can export, but every time we need to synchronize we have to export the XML file.

My example with TODO.txt (Android application) is that it saves a physical file on the smartphone and writes in this file, this is good because it is not necessary to be exporting but simply copy from the smartphone to other places.

codinguser commented 7 years ago

@gutierri I see what you mean. GnuCash Android works internally with a database where all accounts and transactions are stored and only creates an XML when you export.

If we want to work with purely with a file, it would mean loading all the contents (and they can be big) into memory each time the app opens and then dumping it when it closes (or if the app goes into the background for any reason).

This model works on the desktop, but I do not think it is a good one to use on mobile.

codinguser commented 6 years ago

I'll close this issue now