blonsky95 / DigiCoachAndroid

0 stars 0 forks source link

0.12.1 Moving files to app folder #29

Closed blonsky95 closed 4 years ago

blonsky95 commented 4 years ago

In import export utils

blonsky95 commented 4 years ago

import exercises removed from viewer

So the idea, is in Library add a menu option that says "move file" and it opens an intent to select a document - this intent should be startAActivityForResult, and should return the file location that wants to be moved which will be moved to folder. So

  1. Add menu
  2. Play around with opening the android doc provider - and using it to provide File to be moved
blonsky95 commented 4 years ago

Bit of a blocker

  1. Can't get full file path from the document provider and it's essentially the only and best way of getting the user to move a file from wherever it is to our own folder
  2. Document provider doesn't display .txt files, dont want to dive into why, could be the category openable or the MIME type but whatever.

HOWEVER, this is quite unorthodox and shitty Ideally in the future, sets of exercises will be sent from userID to userID - this can be done with Firebase which also has Firebase messaging (send push notifications to devices). So will work on sharing exercises between users after release 1.0

So at the moment, users can create exercises, and blocks (sets of exercises)

In the ExerciseViewer users can export selections of exercises, this makes them appear in library under the name they chose, as they also generate a txt file for them. At the moment there is no use for them. In future release they will be sent between users.