AquaMail Forum

English - Android => General Discussion => Topic started by: ewill on December 23, 2016, 05:17:41 pm

Title: Shortcuts?
Post by: ewill on December 23, 2016, 05:17:41 pm
Is there a way to create a shortcut with Aqua mail.  For example, I would like to define a launcher gesture to open a mailbox that is different than the default location when Aqua is opened.  I realize that I can create a widget, but I would like to do this via shortcut - which can be associated to a gesture action. 

I have tasker, so even if I could do this via some type of broadcast or intent...

Thank you
Title: Re: Shortcuts?
Post by: Kostya Vasilyev on December 23, 2016, 09:49:33 pm
Are you talking about Android 7 and its "launcher shortcuts"?

Sorry there is no support for shortcuts yet (and I can see that user needs would vary a lot).

Re: Tasker

Is it possible to start activities and pass data to them? As in, URLs?

You can start the app's AccountListActivity$Material (or $Light or $Dark, just make sure it matches the app's theme setting)

with a data URL like:

content://org.kman.AquaMail.data/accounts/2/folders/9

This will open folder #9 which is in account #2. You can see these URLs (and get the #'s) if you enable the app's debug log and then open a folder's message list.
Title: Re: Shortcuts?
Post by: ewill on December 23, 2016, 10:21:53 pm
I am not yet on Android 7, but use Nova launcher.

In any case - the instructions for Tasker are great - and this works perfectly!   Thank you.

One more question - could I do something similar for the smart folder - and if so, what would the URL be?
Title: Re: Shortcuts?
Post by: ewill on December 23, 2016, 10:31:17 pm
Never mind - I looked a bit deeper and answered my question

For smart list use - content://org.kman.AquaMail.data/global/smart/list

Perfect!
Title: Re: Shortcuts?
Post by: Kostya Vasilyev on December 23, 2016, 10:46:59 pm
:)