Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据导出功能 #7

Open
jangufo opened this issue Feb 5, 2024 · 1 comment
Open

数据导出功能 #7

jangufo opened this issue Feb 5, 2024 · 1 comment

Comments

@jangufo
Copy link

jangufo commented Feb 5, 2024

众所周知,一般安卓手机的寿命为三到四年,而这些账单记录可能需要记录更长时间。我浅陋的研究一下,数据库是存在了 app 的私有目录下,这需要 root 权限才能访问,我希望能将数据导出到一个可以访问的目录。我通过某 csdn 的教程用 Environment.getExternalStorageDirectory () 希望它可以存储到外部目录,但是报错了打不开数据库文件。。。我对 Android 开发确实不了解。但是我确实希望有数据导出功能

我有两个想法:

  1. 数据库就存在私有目录。然后在设置页做一个数据导出的功能,导出成.xls .xlsx .xml .json格式的数据可供使用
  2. 数据库就存在共有目录 /storage/emulated/0/Android/data/com.xiaojinzi.tally/database 这样不用root就能访问,直接拿到tally.db 用一些本地数据库可视化工具也能做一些操作

这两种方案你觉得哪一种好?我觉得数据导出这个功能需要做一做

这个项目实在是太和我的意了,本地存储,完全私有化,图片可以存gitee,带标签分类账单,能否发个微信赞助码,我愿意赞助30~50元左右,请开发者喝杯咖啡。

@xiaojinzi123
Copy link
Owner

赞助就不必了.
另外你觉得好, 那你就自己用, 反正是开源的, 自己可以添加功能.
我不会给你来做需求的.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants