2

How to create a pinned shortcut like this so when the user long clicks on the app launcher logo create a shortcut that navigates to a certain activity like: 1:Record voice note 2:Type note 3:......

Preferably using java.

Community
  • 1
  • 1
tohid noori
  • 221
  • 1
  • 11
  • There are three types of shortcuts you can read about them here: https://developer.android.com/guide/topics/ui/shortcuts/creating-shortcuts – Abed May 13 '20 at 18:33

1 Answers1

1

Those are App shortcuts. The official android developer documentation shows here how to create static and dynamic shortcuts.

Static shortcuts don't change during a version of your app.As stated in the documentation, a good example would be a shortcut to the "sent messages" in a messaging app.

Dynamic shortcuts can change. In a messanging app this could be for example a shortcut to "send message to last contact".

Alexander Hoffmann
  • 5,104
  • 3
  • 17
  • 23