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

AnkiDroid API for adding image to notes for third party apps #14272

Closed
krmanik opened this issue Aug 21, 2023 · 4 comments
Closed

AnkiDroid API for adding image to notes for third party apps #14272

krmanik opened this issue Aug 21, 2023 · 4 comments
Labels

Comments

@krmanik
Copy link
Member

krmanik commented Aug 21, 2023

Is your feature request related to a problem? Please describe.

I have developed Anki Occlusion app for Android which add images for notes to AnkiDroid. Earlier it was easy to access the path but now the Android/data folder seems hard to access from third party app.

The Image Occlusion feature will be available in later version of AnkiDroid but I think it should be better if we have API for adding image so other developer may find it easier to add images.

Describe the solution you'd like

The API get path and save image to its Android/data folder.

Describe alternatives you've considered

I have tried to follow the documentation of Android developer but it is written that it cannot be accessed by third party apps.

Additional context

@david-allison
Copy link
Member

There's an API endpoint which allows a user to add an image (admittedly but to a note).

Was this unsuitable?

@dae
Copy link
Contributor

dae commented Aug 21, 2023

Regarding I/O support, I'm sorry that had to cut I/O from the desktop 2.1.66 release - Glutanimate asked for a little more time. The code is still accessible in the repo though, so once ankidroid/Anki-Android-Backend#294 gets merged, it will be possible for AnkiDroid to expose it in the same way AnkiMobile has.

@krmanik
Copy link
Member Author

krmanik commented Aug 21, 2023

I have checked the AnkiDroid API and that will do, but I think I should work on the inbuilt feature using desktop code.

No issue with IO on desktop, it can be available in next version. I will implement the IO feature from desktop code for AnkiDroid.

Copy link
Contributor

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

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

No branches or pull requests

3 participants