walles / cleverdrawer

Android app drawer that reads your mind
MIT License
0 stars 0 forks source link

Enable Long-Press Activation #3

Open walles opened 6 years ago

walles commented 6 years ago

Try implement this intent... https://developer.android.com/reference/android/content/Intent#ACTION_ASSIST ... and see if that makes it possible for the user to launch us through home button long press.

From: https://forums.androidcentral.com/showthread.php?t=808278&s=7a68d5816e7e848e7a3ebd99f5993314&p=5889321&viewfull=1#post5889321

  1. From your device’s Settings, tap Apps.
  2. Tap the 3-dot menu button > Default apps > Device assistance app
  3. Tap Device assistance app, and then select Google.

When following these instructions, CleverDrawer should be one of the apps that show up.

walles commented 6 years ago

Nope, responding to ACTION_ASSIST won't help.

Some docs here on how to do it according to Google: https://developer.android.com/training/articles/assistant#implementing_your_own_assistant