[APP][DEV] K-9 Mail for Wear OS (standalone)

Search This thread

moneytoo

Recognized Developer
Feb 20, 2007
1,421
1,285
brouken.com
Official K-9 Mail (or basically any other email clients) doesn't run on Wear OS because of missing WebView component. This modification of K-9 replaces WebView with TextView (among few other tweaks) that makes it usable on Wear OS (fetch messages, navigate folders, read & send mail).

There's Mail client from appfour but it requires phone companion app and doesn't work "standalone". Having an option to occasionally check emails from watch (with cellular module) is the primary reason for this modification (and leaving phone powered off or at home).

k9-wear-1.png k9-wear-2.png k9-wear-3.png k9-wear-4.png k9-wear-5.png

It's still rough around the edges (some features may crash/not work or be hard to reach) but this is the first version and it allows me to read emails (tested with Gmail, was able to send email as well; on Huawei Watch 2). Newsletters obviously won't work as only the text part of emails is rendered.

Let me know what you think. I do not plan on any major UI rework but I can fix thing or two (if there are some fellow watch only users ;)).

TIP: Consider using "adb shell input text" for entering complex strings during account setup.
 

Attachments

  • k9mail-release.apk
    7.6 MB · Views: 832
  • K-9_Mail_for_Wear_OS.patch
    23.9 KB · Views: 373
  • k9mail-release-v2.apk
    7.6 MB · Views: 788
  • K-9_Mail_for_Wear_OS_v2.patch
    101.5 KB · Views: 413
Last edited:

moneytoo

Recognized Developer
Feb 20, 2007
1,421
1,285
brouken.com
I've just uploaded v2 which improves few things:

  • Extra padding at the bottom when reading email
  • Full screen keybord for entering email address
  • Easier pull to refresh
  • Hide unsupported search
  • Move (dangerous) delete action from bar to menu

What is the .patch file for?

It's just the actual changes made to the source code. https://en.wikipedia.org/wiki/Patch_(Unix)

Thanks! How do you apply the patch and also how can I add more then one email account?

Access this app Settings via the top right "More options" menu (not fully visible but reasonably well tappable) and look for "Add account".

How do I install it?

One has to use "adb" to push apk directly to the watch or using phone as proxy. Search for a friendly guide https://forum.xda-developers.com/an...-to-sideload-apks-android-wear-watch-t3726276
 

jdogg4000

Senior Member
Dec 31, 2008
243
28
Samsung Galaxy Watch 4
Access this app Settings via the top right "More options" menu (not fully visible but reasonably well tappable) and look for "Add account".

Thank you, it would be great if those with crowns (scroll wheel) on the side of our watches could use it when reading an email. It currently works when looking at the inbox but not reading the email it self. Anyway to implement this?

Regardless thanks for taking the time to do this.

UPDATE: Actually whats weird is if I open a notification and read the email the crown works. If I go to an email through the app it does not. Oh well I can live with reading from tapping on the notification which is what I do most the time anyways.
 
Last edited:

jdogg4000

Senior Member
Dec 31, 2008
243
28
Samsung Galaxy Watch 4
Anyone know of a way to import k-9 mail settings to the watch?

I exported them from my phone and transferred it to my watch but when I hit import settings on the watch it says there is "no application can handle this process"
 
Last edited:

moneytoo

Recognized Developer
Feb 20, 2007
1,421
1,285
brouken.com
Thank you, it would be great if those with crowns (scroll wheel) on the side of our watches could use it when reading an email. It currently works when looking at the inbox but not reading the email it self. Anyway to implement this?.

Thanks for reporting that. My watch has no crown so I had no idea about that. I might take a look later when I have some time to spare and debug that.

Anyone know of a way to import k-9 mail settings to the watch?

I exported them from my phone and transferred it to my watch but when I hit import settings on the watch it says there is "no application can handle this process"

Now I know that Wear OS is also missing the component (chooser) for selecting/opening files. It should be possible to replace that with 3rd party library (something like https://github.com/spacecowboy/NoNonsense-FilePicker). IMHO this is a niche feature so I won't be fixing that any time soon.
 
  • Like
Reactions: jdogg4000

sfortin

Member
Sep 9, 2017
36
9
Norcross, GA
I've just uploaded v2 which improves few things:

  • Extra padding at the bottom when reading email
  • Full screen keybord for entering email address
  • Easier pull to refresh
  • Hide unsupported search
  • Move (dangerous) delete action from bar to menu
Please excuse this naive question, but is this going to be offered in the PlayStore for loading on the OS or is sideloading it's only future?
 

moneytoo

Recognized Developer
Feb 20, 2007
1,421
1,285
brouken.com
Please excuse this naive question, but is this going to be offered in the PlayStore for loading on the OS or is sideloading it's only future?

I thought about that but I still think that this app (and mainly its interface) is too much for people coming from Play Store (and expecting nice UI). Plus K-9 itself is still missing support for runtime permissions which means it's currently not publishable on the Play Store (without some work, though there are some pull requests on github).
 

moneytoo

Recognized Developer
Feb 20, 2007
1,421
1,285
brouken.com
I'm K-9's original creator, though I haven't been involved in the project in a while.

I just wanted to stop by to say that this is awesome. Nicely done.

-Jesse

Great to hear directly from you, Jesse. K-9 running on Wear OS is mostly unchanged from its latest upstream, just few lines changes here and there (one patched library takes most of the patch - to fix placing of software keyboard). It wouldn't be possible without you and K-9 - thank you for that. :good:
 

pmtaylor

Member
Jul 31, 2010
11
0
I've just uploaded v2 which improves few things:

  • Extra padding at the bottom when reading email
  • Full screen keybord for entering email address
  • Easier pull to refresh
  • Hide unsupported search
  • Move (dangerous) delete action from bar to menu



It's just the actual changes made to the source code. https://en.wikipedia.org/wiki/Patch_(Unix)



Access this app Settings via the top right "More options" menu (not fully visible but reasonably well tappable) and look for "Add account".



One has to use "adb" to push apk directly to the watch or using phone as proxy. Search for a friendly guide https://forum.xda-developers.com/an...-to-sideload-apks-android-wear-watch-t3726276

where is the more options menu? all that is in the top right is the sync button.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 8
    Official K-9 Mail (or basically any other email clients) doesn't run on Wear OS because of missing WebView component. This modification of K-9 replaces WebView with TextView (among few other tweaks) that makes it usable on Wear OS (fetch messages, navigate folders, read & send mail).

    There's Mail client from appfour but it requires phone companion app and doesn't work "standalone". Having an option to occasionally check emails from watch (with cellular module) is the primary reason for this modification (and leaving phone powered off or at home).

    k9-wear-1.png k9-wear-2.png k9-wear-3.png k9-wear-4.png k9-wear-5.png

    It's still rough around the edges (some features may crash/not work or be hard to reach) but this is the first version and it allows me to read emails (tested with Gmail, was able to send email as well; on Huawei Watch 2). Newsletters obviously won't work as only the text part of emails is rendered.

    Let me know what you think. I do not plan on any major UI rework but I can fix thing or two (if there are some fellow watch only users ;)).

    TIP: Consider using "adb shell input text" for entering complex strings during account setup.
    3
    I've just uploaded v2 which improves few things:

    • Extra padding at the bottom when reading email
    • Full screen keybord for entering email address
    • Easier pull to refresh
    • Hide unsupported search
    • Move (dangerous) delete action from bar to menu

    What is the .patch file for?

    It's just the actual changes made to the source code. https://en.wikipedia.org/wiki/Patch_(Unix)

    Thanks! How do you apply the patch and also how can I add more then one email account?

    Access this app Settings via the top right "More options" menu (not fully visible but reasonably well tappable) and look for "Add account".

    How do I install it?

    One has to use "adb" to push apk directly to the watch or using phone as proxy. Search for a friendly guide https://forum.xda-developers.com/an...-to-sideload-apks-android-wear-watch-t3726276
    3
    Whoa!

    I'm K-9's original creator, though I haven't been involved in the project in a while.

    I just wanted to stop by to say that this is awesome. Nicely done.

    -Jesse
    1
    Thank you, it would be great if those with crowns (scroll wheel) on the side of our watches could use it when reading an email. It currently works when looking at the inbox but not reading the email it self. Anyway to implement this?.

    Thanks for reporting that. My watch has no crown so I had no idea about that. I might take a look later when I have some time to spare and debug that.

    Anyone know of a way to import k-9 mail settings to the watch?

    I exported them from my phone and transferred it to my watch but when I hit import settings on the watch it says there is "no application can handle this process"

    Now I know that Wear OS is also missing the component (chooser) for selecting/opening files. It should be possible to replace that with 3rd party library (something like https://github.com/spacecowboy/NoNonsense-FilePicker). IMHO this is a niche feature so I won't be fixing that any time soon.