XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Permanent Android Shortcuts https://www.bbs.xwidget.com/viewtopic.php?f=18&t=5829 |
Page 1 of 1 |
Author: | ianb [ July 19th, 2015, 6:55 am ] |
Post subject: | Permanent Android Shortcuts |
Is it possible to have a shortcut which is preset and does not have to be set by !ShowSetting. I tried using a widget binding the shortcutcore to text fields to determine the path which I tried to use, but this did not work. The path used was #intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=com.sec.android.app.clockpackage/.ClockPackage;end Should I be doing anything else or is this not possible yet. TIA |
Author: | Jimking [ July 20th, 2015, 12:52 am ] |
Post subject: | Re: Permanent Android Shortcuts |
Read here (HOTSPOTS topics 1,2,3): viewforum.php?f=23 |
Author: | ianb [ July 20th, 2015, 5:27 am ] |
Post subject: | Re: Permanent Android Shortcuts |
Thanks, but what I was trying to do was to assign the shortcut at design time rather than using a menuitem to call the !ShowSetting method of the shortcutcore at runtime. I tried setting the following: core Shortcut Path to #intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;launchFlags=0x10000000;component=com.sec.android.app.clockpackage/.ClockPackage;end core Display Name to Clock core Icon to Clock.png where Clock.png is the Icon picture for the ClockPackage. On running the widget the initial setup is entered with the Correct Icon shown but leaving this does not launch the App when the hotspot is clicked, only when selected from the apps shown will it work. |
Author: | Jimking [ July 20th, 2015, 9:08 am ] |
Post subject: | Re: Permanent Android Shortcuts |
As I can undertand you want to create something more complicated, but as I know (because I'm not the dev) the only way for now to use a shortcut on Android is these three modes/tutorials that I sent you. You can upload the .xwp here though to check it .. |
Author: | xwlove [ September 12th, 2016, 4:12 am ] |
Post subject: | Re: Permanent Android Shortcuts |
Hello forum! @ianb Yes it is possible. Short tutorial: 1. Create your widget on PC, with hotspots and link it with corresponding shortcut core ( like in jimking`s tutorial "HOTSPOTS Part3: Assign an application" ), just ( in my case ) it worked with "!open" selected in Event, OnClick action (with !ShowSetting selected i had a "loop" effect... strange...). In any case try both and see what works. 2. Save your widget, copy it to android and run it. For the 1st time click on your hotspot, chose your app, done. Every other time you clicked on that hotspot your app will run. 3. Now the IMPORTANT part! Assumed your device is rooted...Go (with ES or RootExplorer or...) to data/data/com.xwidgetsoft.xwidget/shared_prefs/. Copy "widget(some number).xml" file to usb or sd card and transfer that file to PC. 4. On PC open that xml with notepad++ or some other editor. You will see correct shortcut ("in path string") started with "#intent;act..........;end" . Copy that shortcut. Open your widget in xwidget editor and paste to Shortcut Path in Shortcut Setting. ![]() Display name field will appear automatically. Save widget. 5. Reinstall xwidget (optional) , delete your "old" widget. Copy your new widget to android, test it. Now your shortcut works instantly. 6. Enjoy ![]() @ jimking I love the way you design widgets. Excellent work! |
Author: | Jimking [ September 12th, 2016, 7:42 am ] |
Post subject: | Re: Permanent Android Shortcuts |
Thank you xwlove for your tutorial. Quote: @ jimking I love the way you design widgets. Excellent work! Thanks! ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |