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
[Feature request] Share/export #5
Comments
Hi and thank you for taking the time to write this feature-request! Currently two main things can be found in the database:
Is your proposal to
The first proposal (only the static habit-plan) should be easy, I could simply let the user copy some text and then import it somewhere else. Implementing the second proposal may be difficult though, as the current progress is actually a pretty long string and I'm not sure it's possible to copy that much text. |
What should be possible is to save both strings in a textfile that you could import/export... the main problem is that I'd like this app to run on no permissions. (no internet, no reading calendar/contacts, and no creating/editing specific files) |
Okay, I just tried to copy it, and it seems to be working. Not sure if the copying length varies among devices, though. Would that work out? |
I think i know how I'd design that page, it's kind of similar to what you suggested. I'll start with working on import/export for a habit-plan (but not the current progress) for now, and eventually I'll probably give in and extend it further. ;) |
Awesome! :D |
Ah! Looks like I've missed it. Then importing the progress isn't necessary, as setting it is just 2 taps away.
I have 2 devices, but I can't install much on the tablet as its storage is very low (says 8gb, it's actually 4gb, and 2gb are occupied by the system itself, according to DiskUsage). |
Hello @Glitchy-Tozier, I just discovered your app and the step-by-step idea looks quite interesting, nice idea! To manage export/import without read/write permissions, it is possible to use the Android Storage Access Framework (SAF) which will grant a special read or write permission on a user-selected file. You can find a practical example of this in the files ActivityExportImport.java and ExternalFile.java from my own app. If you are not using Java the way to do it may be different, but maybe it would give some other ideas :-) Best regards. |
Thank you, I hope it's useful to people (and me)
Very interesting, I was wondering how apps like FlorisBoard manage to do something like theme import/export without storage permissions! This app was written in Dart (using Flutter), but I'm sure they also provide great options for what you described. For now I'll stick to letting the user copy&paste text, as I think it's the easiest and most understandable. |
If you don't mind, could you give me feedback on something different? I don't think the term "steps" is a good one. It doesn't properly convey the "gradual-ness". Instead, it makes me think of doing things that are completely different and possibly unrelated to each other. Like Get the house cleaned
The app can be used this way, but it is not intended. You'd be better off using a regular to-do app. So the question raises itself: What would be a better word than "step"? I really like the word "degree" and what it implies. Do you have any other ideas? |
Having a look at FlorisBoard, the file managing this is ThemeManagerActivity.kt, so here is the Kotlin version :-)
=> I am not familiar with these technologies but you are probably right, the opposite would be surprising.
=> If the text is as long as shown in your comment, I am not sure the copy/paste would be the most user-friendly approach (it may also introduces mistakes if, for some reasons external to your app, the initial selection was not complete). But I think the copy/paste would be a good first step to implement.
Maybe "level" could also work? |
That's a good idea, too. It's a close contender (and it actually was the original name for "step", long before releasing the app). |
I have implemented an functionality. Currently it's done via the native share dialogue, where you can decide where to send the habit-plan-json. |
F-Droid just brought the newest update into the repo! |
Thank you for testing, that's great to hear! I was really afraid the app would crash on every device because i changed something in the database-structure, but apparently I implemented everything correctly :) |
Hi there!
An export feature would be beneficial for users with multiple devices (or who just bought a new phone and are too lazy to rewrite the steps).
If there's an import option that doesn't override the current Plans, would it be possible to save a file with just 1 plan, so it can later be imported by another user?
(Sorry, I don't know how this works yet)
In any case, exporting/importing everything all at once would be quite handy, what do you think?
Thank you!
The text was updated successfully, but these errors were encountered: