Native Shopify Mobile App with 20 new features
Kickstart your hyperlocal marketplace in Corona pandemic with a starter guide
Android App Development
iOS App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 184.108.40.206 release ready!
Owner and Founder. Opencart
If your android application target device Android N (API 25) or higher we can create shortcuts for the activities on launcher icon without using any library. There are two ways to create app shortcuts in android application Static shortcuts, Dynamic shortcuts.
1. Static app shortcuts.
First, declare meta-data in your manifest inside the activity which action is (android.intent.action.MAIN) and category is (android.intent.category.LAUNCHER).
then, create shortcuts.xml inside res/xml. Inside your shortcuts.xml you can define icon for your shortcut.
In an intent node in your Shortcuts.xml targetPackage define your Application ID and targetClass your target Activity in which you want to redirect to the user.
2. Using Dynamic Shortcuts
These shortcuts are constructed and included in the list with shortcuts on the fly. They can be created based on some usage statistics and can change over time. There is no need to publish a new version of your app, in order to update your dynamic shortcuts.
Initialize shortcutManger and create an object of shortcutinfo. In shortcutinfo there are method like setShortLabel,setIcon and setIntent where we can define the label,icon and intent.
If there any query feel free to comment we would like to help you.
Your email address will not be published. Required fields are marked*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
I sincerely thank everyone on the team for putting in your efforts so I can work 100% in my country without worrying that some local company will overcharge me and do the job wrong so I would definitely recommend anyone once again to work with the Webkul team.
If I had to do this again I would definitely hire you without a second thought! thanks and wish you the best hope we keep working for a long time!
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.