Shortcut Tool: Make some shortcuts!

Introduction

Version:  1.1
Date: 19 / 01

An extension to create shortcuts which opens an activity like Screen or URL.


Documentation

Learn how to use the blocks and their purpose:

created

Raised when shortcut created

shortcutID: Created shortcut's ID

err

Raised when an error occurred

message: Error message

removedall

Raised when removed all shortcuts


removedid

Raised when removed shortcut

shortcutID: Removed shortcut ID

create

CreateShortcut: Block to create a shortcut

action: Scree name / URL
title: Full title of the shortcut
shortTitle: Short title of the shortcut
icon: Icon of the shortcut, if the value is empty, the application icon will be used
shortcutID: Unique id of the shortcut
isApplicationShortcut: Set to true if the shortcut belongs to the application

exists

Exists: Check if shortcut exists

shortcutID: Shortcut to check

removeall

RemoveAll: Removes all the shortcuts made


remove

RemoveShortcut: Removes the shortcut using the ID

shortcutID: ID of the shortcut to remove

shortcuts

Returns the list of available shortcuts


totall

Returns the size of shortcuts created


details

Returns the max icon height and width


Note the points


  1. Extension may not work in the companion

  2. You can make a max of 4 or 5 shortcuts else you get a message "Maximum shortcuts reached"

  3. Thanks to @MohamedTamer for beta testing and suggestions

  4. Extension may not work in old Android devices

  5. Needs minumum API 28 (Oreo)


Result



Download

:arrow_down: Direct download: com.kumaraswamy.shortcuttool.aix

:arrow_heading_down: Google drive: Shortcut Tool

:arrow_down: Download AIA (App inventor): ShortcutTool.aia

Old version

Download

  1. Direct download: com.kumaraswamy.shortcuttool.aix

  2. Google drive: Shortcut Tool

  3. Download AIA file (App Inventor): ShortcutTool.aia


Any suggestions or improvements are appreciated!
Thank you!

19 Likes

@Kumaraswamy Nice extension. It is a handy little tool. Thinking about using it to make some of my apps easier to access. Can the shortcut go anywhere on the devices? I have a new Samsung, so I'm interested in the possibilities.
Any specific reason it might not work in the companion app?
And why the max shortcuts?
And because as you said,

what's the oldest android you've found it works on?
And to @MohamedTamer, thanks for being the tester. Someone has to do it! XD
Keep up the good work!
-NetMinderNo.9Apps

2 Likes

For more info you should mention the minimum api level.

2 Likes

Awesome extension @Kumaraswamy! :grinning:

1 Like

I have tested it on Android 9. According to the Android docs it was added on API 25 (7.1 Android) and it's some methods were added in the later versions.

You could add a screen for the shortcut and urls, you could tell me what else you want :slightly_smiling_face:


Yes, I will.

1 Like

Great work ! It was a pleasure to test it :grinning:

3 Likes

Cool extension.
I understand that this adds shortcuts to the context menu that appears after a long press on the application icon. Is it possible to make such a shortcut as an icon on the phone's home screen? On the so-called desktop.

5 Likes

Awesome work that you made it! :heart_eyes:

1 Like

I think it's a really useful extension, good job @Kumaraswamy :+1: :kissing_heart:

1 Like

If you want to support older versions then you should use below extension which does not have similar features but does what you are expecting:
http://sunnythedeveloper.epizy.com/2019/12/21/pkgutils-an-extension-to-work-with-packages/

1 Like

Yes, but it creates a shortcut in the home page of the phone and not the shortcut when you long-click the app icon.

I think it's because of permissions.

I don't know when I create 5th shortcut, it says that max shortcuts created...

Only 5 shortcuts are allowed by android.

1 Like

Yes, and that's why it supports older versions.
Pinned Shortcuts need Oreo.

Really I waited for this extension for huge time,and I decided to make it but more faster u made it thanks a lot :star_struck:

1 Like

also a doubt will it work for nova launcher,...other launchers r only default launcher

1 Like

Hi @Kumaraswamy, I tried it but when I created the shortcut it is showing this error-

Actually, it was made days ago, but was published late...


You can try it.

Hello, can you please post you're blocks, and that should not have occurred.

Ok........

blocks (6)
This is the blocks. I made it in Kodular. :grin: