XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2018年 Jan 17日 21:57

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: 2015年 Jul 19日 06:55 
Offline

Joined: 2015年 Jul 19日 06:10
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: 2015年 Jul 20日 00:52 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
Read here (HOTSPOTS topics 1,2,3):
viewforum.php?f=23

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


Top
 Profile  
 
PostPosted: 2015年 Jul 20日 05:27 
Offline

Joined: 2015年 Jul 19日 06:10
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: 2015年 Jul 20日 09:08 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
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 ..

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


Top
 Profile  
 
PostPosted: 2016年 Sep 12日 04:12 
Offline

Joined: 2016年 Sep 12日 03:07
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.
Image
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: 2016年 Sep 12日 07:42 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4581
Thank you xwlove for your tutorial.
Quote:
@ jimking
I love the way you design widgets. Excellent work!

Thanks! :)

_________________
Image
...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 6 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:  

Powered by phpBB® Forum Software © phpBB Group