wlky / AnkiDroid-Wear

Anki for Android Wear devices
GNU General Public License v2.0
48 stars 11 forks source link

AnkiWear not working on Samsung Galaxy Watch 4. #33

Open MyAnkiWearNotWorking opened 2 years ago

MyAnkiWearNotWorking commented 2 years ago

Greetings friends, I recently purchased the Samsung Galaxy Watch 4 (46mm) and installed AnkiWear on my Samsung Note 9, but the app did not download/install on the watch. It's been more than 24 hours now. I was wondering if this is just an issue at my end or have more people been facing this similar issue? Are there any work arounds to this, like maybe manually installing the app onto my watch using my computer? Thanks again for the great work -AWNW

LemmusLemmus commented 2 years ago

I'm glad to hear that you are interested in AnkiWear!

Unfortunately, it is a known issue on newer versions of WearOS. Google removed the method of installing the wear-part of the app that AnkiWear uses, in favor of integrating the installation process with the Google Play store on the watch. Fortunately, it is a relatively easy fix by manually installing the wear-part of the app. I know of two methods to do so, choose the one you feel more comfortable with.

  1. Use Android Debug Bridge (adb) on your computer. Once you have installed adb (and enabled adb-debugging in the developer settings on your watch) you can run the commands "adb connect " and "adb install <the app .apk file>" (you will have to download an appropriate .apk file from here on GitHub).
  2. Use the Android app Wear Installer. Follow the instructions on-screen and select either the already installed AnkiWear or a downloaded .apk file.

Once you have got the app up and running correctly on your watch however, you will probably encounter this issue #23. It has been fixed in the source code but the new app has not yet been released on GitHub or the Google Play store. You could build the app yourself using an old version of Android Studio, but it is honestly a pain to do so. I could therefore provide you with the .apk myself if you so wish. On a side note, I could tidy up my own attempt at updating the application (see #30) and release the .apk file. That version introduces automatic resizing of text to fit to the screen of the smart watch, new smaller answer buttons and a new (optional) mode of viewing cards (by letting you scroll between the question and the answer once you have flipped the card. This mode however does not support audio well, not that I've ever experienced audio working well in AnkiWear before either).

P.S. Since you are new to AnkiWear, you should be aware of some of the limitations. Mostly since WearOS does not support WebView, there are several limitations on the contents of the cards:

1F357 commented 2 years ago

I'm glad to hear that you are interested in AnkiWear!

Unfortunately, it is a known issue on newer versions of WearOS. Google removed the method of installing the wear-part of the app that AnkiWear uses, in favor of integrating the installation process with the Google Play store on the watch. Fortunately, it is a relatively easy fix by manually installing the wear-part of the app. I know of two methods to do so, choose the one you feel more comfortable with.

1. Use Android Debug Bridge (adb) on your computer. Once you have installed adb (and enabled adb-debugging in the developer settings on your watch) you can run the commands "adb connect " and "adb install <the app .apk file>" (you will have to download an appropriate .apk file from here on GitHub).

2. Use the Android app [Wear Installer](https://play.google.com/store/apps/details?id=org.freepoc.wearinstaller). Follow the instructions on-screen and select either the already installed AnkiWear or a downloaded .apk file.

Once you have got the app up and running correctly on your watch however, you will probably encounter this issue #23. It has been fixed in the source code but the new app has not yet been released on GitHub or the Google Play store. You could build the app yourself using an old version of Android Studio, but it is honestly a pain to do so. I could therefore provide you with the .apk myself if you so wish. On a side note, I could tidy up my own attempt at updating the application (see #30) and release the .apk file. That version introduces automatic resizing of text to fit to the screen of the smart watch, new smaller answer buttons and a new (optional) mode of viewing cards (by letting you scroll between the question and the answer once you have flipped the card. This mode however does not support audio well, not that I've ever experienced audio working well in AnkiWear before either).

P.S. Since you are new to AnkiWear, you should be aware of some of the limitations. Mostly since WearOS does not support WebView, there are several limitations on the contents of the cards:

* Only one font can be displayed

* Some text formatting options do not work, for example colored text.

* Scripts in cards do not work

* Vector images currently do not work (png, jpeg etc. are all fine though)

* The screen is very small. You will probably want to avoid too much content in your cards. (as such, I personally primarily use AnkiWear for vocabulary).

Can I get a copy of the new .apk (shouter.05-famous@icloud.com)? I tried to build it with Android Studio and it was really an extreme pain as you said. Thanks a lot!

LemmusLemmus commented 2 years ago

@1F357 Do you want the experimental .apk with the new features I've been working on or do you want the .apk with only issue #23 fixed?

MyAnkiWearNotWorking commented 2 years ago

Yes please, both APKs would be great, I can trial and error both

On Tue, May 17, 2022, 23:06 LemmusLemmus @.***> wrote:

@1F357 https://github.com/1F357 Do you want the experimental .apk with the new features I've been working on or do you want the .apk with only issue #23 https://github.com/wlky/AnkiDroid-Wear/issues/23 fixed?

— Reply to this email directly, view it on GitHub https://github.com/wlky/AnkiDroid-Wear/issues/33#issuecomment-1129165403, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYXKRDY4NARTYKL6VH7Z2IDVKPN35ANCNFSM5TPREEYA . You are receiving this because you authored the thread.Message ID: @.***>

LemmusLemmus commented 2 years ago

I've attached the .apk-files I could find. I only had the .apks for the experimental version already compiled, I will have to compile new .apk-files later.

The .zip file contains two apk-files, wear-release.apk should be installed on your watch and the other one on your phone. There is a new setting in the phone app called "Alternative Card Mode" that I recommend you try out.

The new buttons do not dynamically support different screen sizes yet, so I'll have to swap out the button images depending on your screen format to ensure that the buttons position themselves correctly and are correctly sized. Currently they may look weird, depending on your watch's screen. Generally the app lacks testing and I know that there are some graphical bugs. It should at least be able to serve as a demonstration. If there is any interest, I will get around to fixing the code later. When you find bugs, please report them in my fork if you'd like to see them fixed eventually.

MyAnkiWearNotWorking commented 2 years ago

Lovely, thank you so much. My watch is the Samsung Galaxy Watch 4 Classic (46mm)

On Tue, May 17, 2022, 23:34 LemmusLemmus @.***> wrote:

@1F357 https://github.com/1F357 What's the screen resolution and shape (round vs square) of your watch (or just state the model of your watch)? The new buttons do not dynamically support different screen sizes yet, so I'll have to swap out the button images depending on your screen format to ensure that the buttons position themselves correctly and are correctly sized.

Anyhow, I've attached the .apk-files https://github.com/wlky/AnkiDroid-Wear/files/8710642/files.zip I could find. I only had the .apks for the experimental version already compiled, I will have to compile new .apk-files later.

The .zip file contains two apk-files, wear-release.apk should be installed on your watch and the other one on your phone. There is a new setting in the phone app called "Alternative Card Mode" that I recommend you try out.

As mentioned before, I've yet to adjust the buttons' size. As such they may look weird, depending on your watch's screen. Generally the app lacks testing and I know that there are some graphical bugs. It should at least be able to serve as a demonstration. If there is any interest, I will get around to fixing the code later. When you find bugs, please report them in my fork https://github.com/LemmusLemmus/AnkiDroid-Wear/tree/dev if you'd like to see them fixed eventually.

— Reply to this email directly, view it on GitHub https://github.com/wlky/AnkiDroid-Wear/issues/33#issuecomment-1129192679, or unsubscribe https://github.com/notifications/unsubscribe-auth/AYXKRD5VH7G3IN5R7JPGYQTVKPRETANCNFSM5TPREEYA . You are receiving this because you authored the thread.Message ID: @.***>

LemmusLemmus commented 2 years ago

@MyAnkiWearNotWorking Sorry, I thought you were 1F357. You had already stated your watch model when you opened the issue xD

1F357 commented 2 years ago

@1F357 Do you want the experimental .apk with the new features I've been working on or do you want the .apk with only issue #23 fixed?

(My English is not very good, I used translation software when I typed the following paragraph, I hope you can understand it.)

Both would be great,I'm sorry I forgot to reply to you。 My watch is Mi Watch(something looks like AppleWatch but with WearOS and is only sold in China, you may can't find the relevant information on google), square, 368x448, DPI 320, Wear OS 2.27, Android 9, Qualcomm MSM8909W(It seems to be called Snapdragon 2400? I'm not so sure.)。 i don't know if this information is enough, the current ankiwear 1.0alpha31 is working fine on it. Also, can the newer version of ankiwear use the scroll wheel to scroll the text? the current version of ankiwear can. (Yeah ,the Mi Watch copied AppleWatch, even that scroll wheel)

Sincere thanks! 不胜感激!

LemmusLemmus commented 2 years ago

@1F357

Wow, you really didn't have to go out of your way to list all of the specs :), I'm only interested in your screen resolution and if it is round or square (although knowing your DPI will also be very useful). Unfortunately, my new buttons won't look nice on your screen right now, I'll get around to fixing them once my exam period is over. Additionally, I haven't tested its appearance on a square device yet, but if the text looks off, you might be able to fix it by changing the new "extra padding" option.

Also, can the newer version of ankiwear use the scroll wheel to scroll the text? the current version of ankiwear can. (Yeah ,the Mi Watch copied AppleWatch, even that scroll wheel)

Good question! Unfortunately, such functionality was for some reason lost when updating the project to a newer version of Android. Fortunately, I was able to re-add it to the card screen (so you can still freely scroll your cards), but I've yet to manage to re-add it to the deck list screen. I'll see if I can do anything about it (again, later :/).

1F357 commented 2 years ago

@1F357

Wow, you really didn't have to go out of your way to list all of the specs :), I'm only interested in your screen resolution and if it is round or square (although knowing your DPI will also be very useful). Unfortunately, my new buttons won't look nice on your screen right now, I'll get around to fixing them once my exam period is over. Additionally, I haven't tested its appearance on a square device yet, but if the text looks off, you might be able to fix it by changing the new "extra padding" option.

Also, can the newer version of ankiwear use the scroll wheel to scroll the text? the current version of ankiwear can. (Yeah ,the Mi Watch copied AppleWatch, even that scroll wheel)

Good question! Unfortunately, such functionality was for some reason lost when updating the project to a newer version of Android. Fortunately, I was able to re-add it to the card screen (so you can still freely scroll your cards), but I've yet to manage to re-add it to the deck list screen. I'll see if I can do anything about it (again, later :/).

I'm so lucky to have met you as a warm-hearted person!

I'm preparing for an upcoming exam in about three weeks and right now I'm reviewing with ankiwear, and it will be already great for me to have ankiwear with issue 23 fixed.

Also, the current ankiwear alpha31 allows scrolling with the scroll wheel on the card screen, but not on the deck screen, too. So it's not important for me to be able to scroll in the deck screen

I plan to study Android apps development after my exams (if my results are not so bad that I need to prepare for another year XD), and I've always wanted to do something to improve ankiwear, I hope I can offer help then!

Thanks again.

wlky commented 2 years ago

I think it's really cool that there's still interest for my app even after so many years. And big thanks to @LemmusLemmus for keeping it somewhat alive xD

I've been wanting to get a functioning app in the store again for a while but just don't have the time :/ But maybe together we can figure it out. To be hosnes I'm not sure if I still have all the signing certificates and stuff to update the app in the store xD but we'll cross that bridge when we get to it. @1F357 good luck at the exam ;P

LemmusLemmus commented 2 years ago

@1F357 @MyAnkiWearNotWorking I've compiled the dev-branch, i.e. the version with only issue #23 fixed: AnkiWear.zip. Again, wear-release.apk is for your watch and the other apk-file is for your phone.

Thanks for all the kind words!