Elektrine lite

← Feed

@n8chz@hachyderm.io

2026-09-28 17:38 UTC

I'm spoiled by the Unix philosophy that everything is a file and am trying to adjust to the #Android philosophy that nothing is a file. My app is simple, and I simply want it to input data interactively and append each entry to a csv file stored in the device's local filesystem, ideally a part of it that is accessible by adb, mtp, Android file bananagers, etc. Is this too much to ask for?

Replies (1)

  • @VerdettoQR@mastodon.social 2026-09-28 18:42

    @n8chz@hachyderm.io Not too much. Insert one row into MediaStore.Downloads with the name and text/csv, keep the Uri it returns, then each entry is openOutputStream(uri, "wa"): no permission on Android 10 and up, and the file sits in Download for adb, MTP and any file manager. Does it need to outlive an uninstall?

    Open ##5235518