[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Permanent Android Shortcuts

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 15th, 2024, 11:27 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: July 19th, 2015, 6:55 am 
Offline

Joined: July 19th, 2015, 6:10 am
Posts: 2
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


Top
 Profile  
 
PostPosted: July 20th, 2015, 12:52 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Read here (HOTSPOTS topics 1,2,3):
viewforum.php?f=23

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: July 20th, 2015, 5:27 am 
Offline

Joined: July 19th, 2015, 6:10 am
Posts: 2
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.


Top
 Profile  
 
PostPosted: July 20th, 2015, 9:08 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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 ..

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: September 12th, 2016, 4:12 am 
Offline

Joined: September 12th, 2016, 3:07 am
Posts: 1
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!


Top
 Profile  
 
PostPosted: September 12th, 2016, 7:42 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group