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

Google Export / import #9

Open
nerkn opened this issue Nov 5, 2015 · 3 comments
Open

Google Export / import #9

nerkn opened this issue Nov 5, 2015 · 3 comments

Comments

@nerkn
Copy link

nerkn commented Nov 5, 2015

I opened exported file with a sqlite editor and saved back to drive but in app they are unselectable.

@u8sand
Copy link

u8sand commented Mar 10, 2016

I also experienced this, I've generated some flash cards and put them into the sqlite database exported by Gambit, but it doesn't seem to be selectable. Is there a workaround to get Gambit to recognize the modified file as acceptable?

Edit: I suspect this is because of this: https://github.com/ming13/gambit/blob/master/src/main/java/ru/ming13/gambit/backup/BackupFilePicker.java#L33

I'm in the process of figuring out a simple way to set the mimetype manually when re uploading to google drive. (The mimetype is being changed during reupload)

Edit 2: Success! Using https://github.com/prasmussen/gdrive
To re-upload to your GDrive use
gdrive-linux-x64 upload --mime 'application/vnd.gambit.backup' Gambit\ Backup

@arturdryomov
Copy link
Owner

Your guess is correct. Backups have a specific MIME to protect the application from importing not supported files. It’s great that there is API for setting MIME manually, so you can use it as you please. One important notice though—I cannot guarantee that this manual DB changing will not break the app. Theoretically nothing can go wrong if you don’t change the DB scheme, but anyway.

@geshaggn
Copy link

geshaggn commented Nov 3, 2020

Артур, здравствуйте. У меня возникла проблема с экспортом в облако. Я буду Вам очень благодарен, если есть возможность исправить. К сожалению сам я только начал изучать Питон и совсем не разбираюсь в Яве. У меня андроид 10. Вообще уже мечтаю сам такую программу написать, но я ещё не добрался до андроида. Пользуюсь Вашими карточками давно, очень доволен. Есть идеи по программе, некоторые просто необходимы, если Вы хотите написать ещё, с удовольствием поделюсь, мне легче. Буду ждать обратной связи. Геннадий

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

4 participants