Closed hssm closed 9 years ago
Reported by nicolas.raoul
on 2014-12-04 02:39:45
Accepted
An amazing idea. I came here since I was looking for the same function. The smartwqtch
is a great and handy gadget but is lacking productive programmes like this idea proposes.
Please implement the requested feature, I would also be willing to donate for this
feature.
Reported by oramate
on 2015-02-06 00:31:44
I've wanted smartwatches to come out for years JUST for this Anki functionality.
I would add one feature that would put this idea over the top for me: scheduling cards
down to the hour or minute, rather than the day. Getting hit with 30 or more (sometimes
way more) cards at the beginning of the day can be discouraging, but if they trickled
in every hour and your watch notified you each time, and you could just knock out four
or five at a time, it would be really easy to have nothing due practically all the
time with what would feel like almost no time investment. Plus, you get that satisfying
feeling of reaching the completion screen several times a day.
Even if you didn't want to change the actual scheduling to be more specific, you could
just spread out the cards due over the course of a day. Then, imagine you're waiting
in line, walking, or riding the train somewhere, and your watch buzzes you. You do
one to five cards then and there and you feel no obligation to do more because you
know your watch will buzz you again with a new small batch soon enough.
Reported by jessedavey
on 2015-03-29 21:42:18
Hey guys,
I've implemented a extension for AnkiDroid to work with Android Wear. It's still very
rough (implementation and design wise) but I have been using it for a couple of days
now and am quite satisfied with it :P
The code is on github
https://github.com/wlky/Anki-Android
And I also made a short video for you:
http://youtu.be/5j3b7VVN-OY
I'd be happy about any help/recommendations :)
Reported by greepee1337
on 2015-04-16 08:51:44
That's awesome! Thanks for your hard work! Can't wait to try it.
Reported by adi.velicu
on 2015-04-16 08:53:07
Wow, that is awesome !
Is there any way to try it without Android Studio ? I mean simple way, not the developer
way ? :)
Reported by glwisnia
on 2015-04-16 09:50:06
I tried to build the project but it can't find resources @drawable/pb_hard and other
buttons like easy,failed etc...
Reported by glwisnia
on 2015-04-16 10:38:44
Ah sorry man, for some reason it didn't track those files when I moved from the "wear"
branch to the "develop" branch. Should be fixed now.
Regarding the question how to try it:
The easiest way is to connect your phone (with usb debugging enabled) and donwload
the Android Wear app.
Then you start the Android Wear emulator from AndroidStudio.
When you start the Android Wear app on your phone you can pair it with a device, but
with the menu item (three dots on the top right corner) you can also connect to an
emulator.
When its connected you build+run the wear package on the emulator.
Or you go ahead and buy a SmartWatch :D
Reported by greepee1337
on 2015-04-16 11:19:29
I do have the watch of course, how do I go about installing it ?
Reported by glwisnia
on 2015-04-16 11:52:30
It depends on the watch. The LG G Watch comes with a kind of docking station you can
hook up to your computer.
When you go into the settings on the Watch, Click About and than click on the "Build
number" a couple of times you unlock the developer settings. So when you go back to
the Settings, all the way on the bottom you find the development options. In there
you can enable ADB debugging.
Then when you put the watch in the docking station, Android studio should detect your
device and you can build the wear package and install it on the watch.
For other watches you might need to deploy it over bluetooth, I don't exactly know
how that works but there should be tutorials if you google
Reported by greepee1337
on 2015-04-16 12:29:05
Thanks, I managed to install it on Sony SW3.
It's an amazing start but couple things come to mind straight away.
1. Font size
It's BIG... I mean HUGE :) Even 1 longer word won't fit in one line and one sentence
will not fit on the screen - I think ability to adjust the size is extremely important.
A lot of people have good near vision and can easily get away with very small font
2. This is kind of a bug I think. When the question is displayed and does not fit the
screen, trying to scroll down to see the rest will result in displaying the answer
straight away.
3. Audio files are not played by the phone. Instead the sound tag is displayed on the
watch (like: [sound:pronunciation.mp3])
4. Time of the next review is always shown regardless of the settings in anki droid
app.
I love the way you handled the answers with 4 buttons coming from top and bottom and
swiping them. In general it looks really cool - with first three issues resolved it
would already be usable for me.
Please carry on great work, you're awesome! :)
Reported by glwisnia
on 2015-04-16 13:07:57
Nice, what do you think about making this a standalone app by extending the ContentProvider
in AnkiDroid so that you can access the scheduler from external applications? My personal
opinion is that I'd like to avoid adding any more non-core features to AnkiDroid which
users expect us to maintain.
Reported by perceptualchaos2
on 2015-04-17 00:07:06
WaitingForFeedback
Just to clarify, by standalone app I mean an app which is installed separately but in
addition to AnkiDroid. Your app would probably not necessarily have to be GPL if you
wanted to sell it
Reported by perceptualchaos2
on 2015-04-17 00:11:26
Cool, so it runs on watches other than mine as well :)
I'll take a look at the issues.
1, 2 and 4 are easy to fix, 3 I'm not sure yet.
Regarding the standalone app:
I would have preferred to have it all in one app.
But I see your point, and am probably gonna make it an open source standalone app.
It also probably makes sense to have this interface to other apps allowing apps to
extend the reviewing part of anki
But there is no such interface yet, right?
Reported by greepee1337
on 2015-04-17 09:04:37
> But there is no such interface yet, right?
Yeah, basically not. We now have a ContentProvider which allows 3rd party apps to add
notes/cards directly to the db and also edit existing notes. This doesn't currently
provide an interface to the scheduler, but I don't think that would involve a huge
amount of work for someone motivated.
I'm not necessarily saying that this would never be merged into AnkiDroid, but it's
a discussion that we would need to have, and if someone were willing to extend the
ContentProvider to give out html for the due cards, then I would definitely favor that
approach.
Reported by perceptualchaos2
on 2015-04-17 15:25:34
All right, a little update:
I migrated the android wear related stuff to a separate app and extended the CardContentProvider
and the FlashCardsContract. I added two classes, ReviewInfo and Deck. ReviewInfo can
be used to get the next scheduled card, Deck can be used to get all deck names and
ids. (the updated classes can be found here: https://github.com/wlky/Anki-Android/blob/develop_standalone/AnkiDroid/src/main/java/com/ichi2/anki/provider/CardContentProvider.java
and https://github.com/wlky/Anki-Android/blob/develop_standalone/AnkiDroid/src/main/java/com/ichi2/anki/provider/FlashCardsContract.java)
In order to test the current version please go ahead and install the attached AnkiDroid_Wear_Release.apk
file on your phone. This will automatically install the corresponding app on the watch.
You also need to get the changed AnkiDroid project (from here https://github.com/wlky/Anki-Android/tree/develop_standalone)
open it in AndroidStudio and build&run it on your phone.
Implemented Features:
AnkiDroid Wear app on Phone:
*Settings for:
**font size
**card flip animation
**double tap/ single tap to show question again from answer screen
Anki on Wear:
*Review cards
*Choose deck to review cards from
TODO:
*Handle media files (sound and images) --> any Idea on how to get them from AnkiDroid
to my app? I don't think using a ContentProvider/ContentResolver would be the way to
go for this
*Better documentation
*Better looking deck chooser screen (wear app)
*Better indication of whether the settings have been sent to wear (phone app)
Here is a short video of the wear app in its current version:
http://youtu.be/SHSFHlBhnuU
looking forward to your comments :P
Reported by greepee1337
on 2015-05-01 10:33:30
Hi great, thanks for the update!
The ContentProvider code should be in AnkiDroid rather than the standalone app... would
you be able to send a pull request?
Reported by perceptualchaos2
on 2015-05-01 16:24:37
created the pull request, see
https://github.com/ankidroid/Anki-Android/pull/823
Reported by greepee1337
on 2015-05-01 17:46:20
Hi, I installed new version.
I think you made a little mistake with: https://jcenter.bintray.com/com/afollestad/material-dialogs/0.7.1.3/material-dialogs-0.7.1.3.pom
It should be version 0.7.3.1 or it returns an error that it can't find it.
1. Font settings is great now.
2. Obviously there is no images or sound, have you got any idea how to implement that
?
3. Meantime is there any chance of not displaying the [sound] tag with a filename inside
a card ?
4. Is it possible to set how long will the card be displayed until watch goes dim and
then switches screen off ?
5. Great work :)
Reported by glwisnia
on 2015-05-04 22:11:32
Hi,
I don't see any error, which file is causing the error message on your build?
Also here is an updated version.
You will also have to get and build a new version of AnkiDroid https://github.com/wlky/Anki-Android
new features:
- Setting for additional delay until watch goes dim
- Images and sounds are working now (the correct media folder path must be specified
in the settings)
- Additional Settings for images and sounds on the phone app
- better looking deck chooser
- replaced sound tag with unicode icon for sound
let me know what you think about it^^
Reported by greepee1337
on 2015-05-11 17:22:16
Hi,
I've compiled and installed new version and there was no errors so I think we can forget
about it :)
Oh man it's looking really good now. I'll test it over the next few days in real life
as my decks are done for today and I only tried custom study to check it out. But seriously
- I'm impressed!
Some VERY minor things I noticed quickly are:
- on my SW3 "screen timeout delay" value is _added_ to default 30sec delay... so if
I set it to 30s it will be 60s... if I set it to 60s it will be 90s... etc
- ability to play sounds automatically is awesome (I was afraid you will miss it but
your're good:) but the setting to play it automatically or not could probably be in
settings on the phone rather than asking every time when watch app is started (like
3rd option in Sounds: 1. do not play sounds 2. play sounds on phone 3. play sounds
on phone automatically)
- I think "day/night mode" value from AnkiDroid could be taken and accordingly screen
would be like it is now (white background, black letters) if set to "day mode" and
inverted when set to "night mode" (black background, white letters), or maybe just
setting for it on the phone...
There's one more thing that comes to my mind. As we know Wi-Fi is coming to Android
Wear (or has already come in some watches), do you think it is going to work over Wi-Fi
as well ? I don't think it's something important if too much work is required, just
curious :)
Can't wait to fully test it in the coming days.
Awesome work, you've just doubled productivity value of my SW3 :)
Reported by glwisnia
on 2015-05-11 18:39:28
So far so good.
I've noticed one issue, which looks a bit like result of losing connection of watch
app with phone app. Every now and then, the sound will not be played. It's not very
often so it does not make app unusable but it happens (happened about 5 times in 100
cards review).
If the sound is not played and instead of tapping on the card to see the result, I'll
shut the app and run again the sound will be played. So it's not the issue with certain
cards, it happens randomly.
Reported by glwisnia
on 2015-05-12 16:44:02
Hmm interesting, I'll look into the connection loss problem, I've already got an Idea
where the problem might be. (btw. 100 cards? that's pretty impressive! :D)
Regarding your other comments:
- yeah the screen timeout delay is just an additional value. So the minimum real delay
is the default watch delay (I think it usually is 30s) and I can add time to that.
Should probably make this clearer in the app though... Maybe by setting the minimum
of the screen timeout delay to 30?
- I agree, the current solution is not very good in the long run for every one. I noticed
that in some cases I wanted the reminder that sounds are going to be played if I open
the next card (e.g. if I'm in the subway). This is the main reason I added the dialog
once per session, because context might change between the sessions, and I dont't want
to pick up the phone and change the settings. In the long run I think this setting
would make sense to be changeable on the watch (maybe on a third android card, to the
right of the deck chooser card.
- Day/night mode does make sense! I'm not sure if I'll get the setting from Anki, otherwise
it would be another setting in the watch app.
Regarding Wi-Fi I'm not really sure. I haven't heard too much about the specific implementations
and since my watch won't support wifi it's gonna be hard to develop for... but I might
take a look how difficult it is.
There is another feature of the new Android Wear version: being able to show the app
in black & white after the display dimms down. That might also make sense instead/
in addition to the additional delay.
thx for your input and your testing :)
Reported by greepee1337
on 2015-05-12 20:06:43
I'm happy to help, and use your app :)
Ok so here are my impression after using it few days.
It's amazing, couldn't find any major issues. The lack of sound happens about once
a day with like 80 cards to review so it's not really a problem.
Minor things I could offer for your consideration would be:
- instead of only tapping to see the answer it would be easier if we could tap or swipe
on the watch (that's the way it works on phone app when you have gestures enabled)
because it's easier/faster
- number of cards left to review in decks screen
- gestures, if enabled - completely removing coloured bars on top and bottom and allowing
to configure (or even easier - get the gestures configuration from the phone) swipes
on the watch, for example I only use 2 gestures: swipe down for wrong answer and swipe
up for recommended good answer. The reason is that it allows to do reviews without
even looking at the watch if you have sounds for questions and answers. To swipe little
bars I have to look at my watch, to swipe up/down anywhere on the screen I don't.
- now if you swipe right from the card, there is decks screen, maybe adding one screen
in between to have MARK option and UNDO ?
- adding indication what answer was chosen when next card comes on a screen, on the
phone it's done with little coloured dots that appear briefly - it helps when you're
not sure if you swiped correctly and you're not sure what answer you've chosen. It
could be dots or maybe edge of the screen glowing briefly in certain colour (red,orange,yellow,green)
These are just my ideas to improve the app if you have time but if you want to leave
as it is - it's already very very good and I'm happy you were willing to do it for
us, thanks again :)
Reported by glwisnia
on 2015-05-17 11:49:29
Hello, I was wondering if can somebody please post the final version AnkiDroid_Wear_v1.2.apk
I managed to install version 1 on my watch but it didn't function at all. Then I tried
to install v1.2 but it didn't allow me to install.
Then I tried to follow instructions to get it from github and even tried to build it
on android studio but couldn't get it to work. I tried to watch youtube videos but
it did not help at all since I don't know anything about coding.
I would really appreciat it if somebody would help me out. Thank You.
Reported by thomasdinh25
on 2015-05-31 22:30:25
This is great! I've been looking for this since I even started considering getting a
smart watch!
Reported by amir.me
on 2015-06-01 00:34:25
Thx again for your input @glwis.. I will definitely implement them as soon as i find
the time. Would you mind creating some "issue" tickets on github? https://github.com/wlky/AnkiDroid-Wear/issues
I think it is better for the overview to put feature requests and issues there.
@tomasdi... you have to install v1.2 on your phone, and it will automatically install
the app on your watch. But you also need to compile and install the development version
of AnkiDroid on your phone. You can get it here: https://github.com/wlky/Anki-Android.
I know this is a little much work to do, but it will be much easier once the official
AnkiDroid app will contain the changes necessary for my app to work.
Reported by greepee1337
on 2015-06-01 13:31:03
@amir...@gmail.com…..Iwas in your situation. The only reason that I wanted a smartwatch
was for using with anki. I would wait if I were you because smartwatch right now are
really crappy. The software for all their apps are really really limited. Its like
when the first google phone that came out.
@greepee1...@gmail.com
I managed to install the anki wear version 1 only. My phone wouldn't let me install
the 1.2. Its not that I'm not willing to find out how to do things on my own, but
I know nothing about programing or what the heck is build, gradle, or android studio.
I spent like 6 hrs yesterday trying to install this app and got fustrated with it.
I'll just wait untill this is more mature because it seems like the only ones on here
that can use this are people with programing experiences.
Reported by thomasdinh25
on 2015-06-01 16:02:31
Hopefully we can get an official AnkiDroid alpha version out soon which you can install,
we're just working through the final details of the code with greepee1337
Reported by perceptualchaos2
on 2015-06-01 16:10:33
@thomas
I would agree with suggestion to wait for official AnkiDroid alpha that will be easily
installed with apk file. Compiling it from github might be an issue for someone without
any previous experience with programming. It's probably around the corner anyway :)
It's worth it and maybe some bugs will be squashed by that time so you will have better
experience with the app. I actually do most of my anki cards on my watch at the moment
and when annoying "disconnecting" bug is dead and few improvements are made I'll probably
rarely pull my phone out to do anki on it.
Be patient, guys are working hard to make it happen :)
@greepee
Sure, I'll try to gather my thoughts and transfer them to github so it's all more organised
and easier to manage. Thanks for your hard work on the app.
Any success with that disconnecting issue ? It's weird as sometimes it will happen
right in the middle of playing audio, you'll hear crackling sound and then audio stops.
After answering that card most of the time I will see spinning circle on my watch that
just stays there spinning. Not sure how long as I usually close the app after like
30sec and run it again.
Reported by glwisnia
on 2015-06-01 16:33:11
hmm sounds like the smartphone part of my app stops working at some point.
I tried to reproduce the bug but without any luck so far.
It would be very helpful if you could create a log of when the error occurs. Do you
know how to view the console output of an App e.g. in AndroidStudio?
Reported by greepee1337
on 2015-06-01 18:51:08
To be honest I had a system reinstall and don't even have AndroidStudio at the moment,
I just kept apk of Anki :)
If that bug has never happened to you, it might be because there's something with the
audio files that I have a lot in my deck and the way they are played. I have almost
10000 media files in my deck.
Deck is constructed in a way that question card is text + audio (mp3 file, it's the
question text said by TTS software). Question text and audio are in separate fields
that are shown together as a new card. It's after displaying question (before choosing
answer), when that usually long mp3 is played, when it happens.
There's also the fact that watch app behaves differently to ankidroid when it comes
to playing audio. If you do reviews on ankidroid and question audio is played but it's
a long audio and you know the answer before it's finished, you choose your answer and
question audio automatically stops and it goes to answer when answer audio is played.
With the watch, all the audio files are always finished no matter if you chose the
answer before it's done. In fact, with long question audio files you can queue up quite
a few cards if you're answering quickly. So there might be a situation when the audio
from card1 is still played and you're on card5 already.
Reported by glwisnia
on 2015-06-01 19:17:23
For some reason this just crashes for me running nexus rooted with exposed. Specifically
the ankidroid-wear app force closes every time i tried to open the app on the watcn
Reported by chinedu40
on 2015-06-07 01:35:39
2.5alpha 34 has the changes included to support 3rd party Android wear apps
Reported by perceptualchaos2
on 2015-06-08 01:07:22
FixedInDev
Sweet! So now everyone can get a compatible version of AnkiDroid just by downloading
and installing the latest dev apk.
I have put together the general installation instructions. You can find them here:
https://github.com/wlky/AnkiDroid-Wear/blob/master/README.md
Similarly, if you find any bugs/problems/missing features please create a new "issue"
on github:
https://github.com/wlky/AnkiDroid-Wear/issues
@glwis... the latest release stops playing the audio, when you leave the card/request
a new card. I hope I also fixed the other bug you were having, but im not sure :P
@chined... did you install the supported AnkiDroid version? If not, you can do so pretty
easily now. Just follow the github link above and take a look at the Installation instructions.
Reported by greepee1337
on 2015-06-08 12:06:41
Great news!
First issue reported, lets start tracking the rest :)
Reported by glwisnia
on 2015-06-08 12:27:47
@wlky
Thanks a lot for all your work on this, I think people will find your app very useful
for taking advantage of all possible downtime, and I'm very excited about all the new
possibilities for developers to link their apps with AnkiDroid thanks to your great
work on the ContentProvider!!!
By the way, you could possibly run out of version numbers relatively quickly with the
numbering scheme you're using. If you run into problems, you may like to check our
numbering scheme:
https://github.com/ankidroid/Anki-Android/commit/0f6f67f9225f7a6d84d39ee2e6cf71602e18ae95
Reported by perceptualchaos2
on 2015-06-08 12:46:53
You might also want to consider distributing the app via the Google Play alpha channel,
so that you can automatically get stack traces for crashes. For AnkiDroid we added
the Google Group email address (anki-android@googlegroups.com) to list of testers,
then users can sign up by joining the group and then opting in (as written in the manual):
https://ankidroid.org/docs/manual.html#betaTesting
Of course I also encourage you to add the AnkiDroid Google Group email address to your
list of testers on Google Play. :)
Reported by perceptualchaos2
on 2015-06-08 13:06:38
thx for the tips!
Yeah I didn't really thing the numbering scheme through :P
Regarding the alpha testing:
I have submitted the app to the alpha channel, but I guess it will take up to a day
till it's actually visible.
I also added the AnkiDroid group email address (all people wanting to test my app have
to be alpha testers of AnkiDroid anyways xP)
Reported by greepee1337
on 2015-06-08 16:06:10
What does the option "Ask once before playing sounds" is supposed to do ? It does nothing
to that question if sounds should be played when you run the program. What am I missing
? ;)
As to the the bug with sound in question not being played... I'm afraid it's still
there... happened 3 times today in 80 cards. It's got to be something with the fact
that is the _question_ sound as it doesn't happen with the answers.
Reported by glwisnia
on 2015-06-08 21:02:20
Hey guys!
Good news, I'm now also using the Google Play alpha channel, so you can automatically
receive updates. I've updated the installation instructions accordingly: https://github.com/wlky/AnkiDroid-Wear/blob/master/README.md
@glwis the "Ask once before playing sounds" option will do what it's supposed to do,
once you get the newest update ;) Sorry, for some reason I stopped implementing that
half way in O.o ^^
Regarding that annoying bug, I'd really like to fix that for you. Is the deck you're
using a public deck?
Reported by greepee1337
on 2015-06-10 18:49:12
Ok I'm a tester now and indeed the options to not ask before playing sounds is working.
I can export let's say 100 cards from my deck and send it to you as anki apkg file
if you're willing to try to reproduce that bug.
Reported by glwisnia
on 2015-06-10 21:27:24
yeah sure, lets try that. Don't know if it works though, might be a smartwatch / smartphone
/ combination based error, but I'll try on the devices I have here
Reported by greepee1337
on 2015-06-11 21:11:05
errr where do I find your email address or send you a private message ?
Reported by glwisnia
on 2015-06-12 17:27:38
just send it to wlky1337@gmail.com ;P
Reported by greepee1337
on 2015-06-12 17:48:28
Alpha4 does not work for me at all. It quits instantly after running it without even
"hello" at the beginning.
Reported by glwisnia
on 2015-06-16 15:21:03
Ok, that was weird O.o it worked without problems on my LG G Watch, but on the Emulator
it showed the same behavior you described - disappeared without any error message or
anything.
I changed some small things in the start up and it's now working in the emulator and
on my G Watch. Let me know if it works for you too :)
Reported by greepee1337
on 2015-06-16 20:03:47
Yes it does work now and night mode seems to work as well :)
Btw have you been able to replicate the issue with sounds using my deck ?
Reported by glwisnia
on 2015-06-16 20:36:57
Good to hear that it works :)
I think I might. But for me the app doesn't stop working, instead the sound file just
isn't played. But it is on very different occasion and different cards (and also on
both, front and back sides)
I'll have to investigate some more, but thx very much for the deck!
Reported by greepee1337
on 2015-06-16 21:13:38
Oh yes, for me app is also working (doesn't crash)- just the sound isn't played. It's
very random but I don't recall that happening on answer cards.
Reported by glwisnia
on 2015-06-16 21:44:39
Originally reported on Google Code with ID 2430
Reported by
glwisnia
on 2014-12-03 19:01:17