Page 1 of 1
Start an Android App with Dashticz
Posted: Saturday 03 October 2020 21:50
by DarkG
Hello
I have an Android Tablet with Fully Kiosk. Is it possible to execute an App in Dashticz?
Ich have several Apps for Door Ring, Lightcontrol and so on.
The best way should be a button to execute an App which is local installed on the Pad.
Re: Start an Android App with Dashticz
Posted: Tuesday 06 October 2020 17:52
by DarkG
From another Forum I got this here.
<img src="sonos_controller_app_icon.jpg" height="95" wight="95" class="top-space" onclick="fully.startApplication('com.sonos.acr')"></img>
<img src="spotify-logo.jpg" height="95" wight="95" class="top-space" onclick="fully.startApplication('com.spotify.music')"></img>
<img src="Amazon-logo.jpg" height="95" wight="95" class="top-space" onclick="fully.startApplication('com.amazon.mp3')"></img>
Can someone with knowledge can try this?
Frame? Someone tested it with htmlview
<div data-type="link"
class="centered round"
data-width="142"
data-height="35"
data-icon-left="oa-sani_irrigation"
data-color="#8d8d8d"
data-border-color="#8d8d8d"
data-border-width="1px"
onclick="fully.startApplication('com.wago.webvisu')">WAGO
</div>
Re: Start an Android App with Dashticz
Posted: Tuesday 06 October 2020 19:04
by Lokonli
Via a button you can start an Android intent.
For instance, a block definition to open the barcode scanner app via a Dashticz button:
Code: Select all
{
title:'intent example bar code',
url:'intent://scan/#Intent;scheme=zxing;package=com.google.zxing.client.android;end',
newwindow:0
}
or to open spotify:
Code: Select all
{
title:'Spotify',
url:'intent://spotify/#Intent;scheme=spotify;package=com.spotify.music;end',
newwindow:0
}
This are some copy/paste example: I do not know exactly how to find the right intent url.
Instead of creating a button you can also make use of a custom html block. (since beta 3.6.1)
See
https://dashticz.readthedocs.io/en/beta ... customhtml
Edit:
To find intents, see:
https://support.actiontiles.com/knowled ... from-fully
or:
https://support.actiontiles.com/communi ... ment-15859
Re: Start an Android App with Dashticz
Posted: Wednesday 07 October 2020 13:32
by twoenter
intents are the best way indeed.
Here you have buttons with working intents for the apps I use.
Spotify
Netflix
Videoland
NLziet
DSvideo
DSphoto
Tune In
Juke
Google home
Youtube
Chrome
Code: Select all
buttons = {}
buttons.youtube = {
width:6,
icon:'fab fa-youtube',
title: 'Youtube',
newwindow: 0,
url: 'intent:#Intent;launchFlags=0x10000000;component=com.google.android.youtube/.app.honeycomb.Shell%24HomeActivity;end'
};
buttons.alleapps = {
width:12,
icon:'fab fa-android',
title: 'Alle apps',
newwindow: 0,
url: "fully://launcher"
};
buttons.googlehome = {
width:6,
icon:'fab fa-google',
title: 'Google Home',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.google.android.apps.chromecast.app/.DiscoveryActivity;end"
};
buttons.luvion = {
width:12,
icon:'/luvion.png',
title: 'Babyfoon',
newwindow: 0,
url: 'intent:#Intent;launchFlags=0x10000000;component=com.twentyfouri.luvionconnect/com.twentyfouri.easyicam.SplashScreenActivity;end'
};
buttons.NLziet = {
width:6,
image: '/nlziet.png',
title: 'NL ziet (TV kijken)',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=nl.nlziet/.ui.login.SplashActivity;end"
};
buttons.juke = {
width:4,
image:'/juke.png',
title: 'Juke (Radio)',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.e247.radio538/.MainActivity;end"
};
buttons.tunein = {
width:4,
image:'/tunein.png',
title: 'TuneIn (Radio)',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=tunein.player/tunein.ui.activities.TuneInHomeActivity;end"
};
buttons.netflix = {
width:6,
image: '/netflix.jpg',
title: 'Netflix',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.netflix.mediaclient/.ui.launch.UIWebViewActivity;end"
};
buttons.videoland = {
width: 6,
image:'/videoland.png',
title: 'Videoland',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=nl.rtl.videoland/.ui.onboarding.OnboardingActivity;end"
};
buttons.spotify = {
width:6,
image:'/spotify.png',
title: 'Spotify',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.spotify.music/.MainActivity;end"
};
buttons.dsphoto = {
width:6,
image:'/dsphoto.png',
title: 'DS Photo',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.synology.dsphoto/.SplashActivity;end"
};
buttons.dsvideo = {
width:6,
image:'/dsvideo.png',
title: 'DS Video',
newwindow: 0,
url: "intent:#Intent;launchFlags=0x10000000;component=com.synology.dsvideo/.SplashActivity;end"
};
buttons.chrome = {
width:6,
image:'/chrome.png',
title: 'Chrome',
newwindow: 0,
url:"intent:#Intent;launchFlags=0x10000000;component=com.android.chrome/com.google.android.apps.chrome.Main;end"
};
Re: Start an Android App with Dashticz
Posted: Wednesday 28 October 2020 21:15
by Arkie
I managed to start the sonos app with a button, but can i add a second function to a button?
If i switch on or the state changes to on ( button with a idx to switch on a harmony hub activity ) i also want to start the android app.
How can i do this?
Regards
Re: Start an Android App with Dashticz
Posted: Thursday 29 October 2020 7:52
by Lokonli
Currenly I think you can only start one action per button. It will not be too difficult to extend it to multiple actions. I'll add it to the list.
I'm not sure I completely understand your second question. Is it related to the first one?
If you have a Domoticz switch in Dashticz, you can also try the 'openpopupOn' parameter.
Re: Start an Android App with Dashticz
Posted: Thursday 29 October 2020 21:42
by Arkie
I'm not sure I completely understand your second question. Is it related to the first one?
If you have a Domoticz switch in Dashticz, you can also try the 'openpopupOn' parameter.

it was only one question, so related indeed.
It's the example for the second function of a button.
So if i press the button (On) in dashticz, an action in domoticz starts and the app is starting on my dashticz tablet.
But also when i start this action in domoticz with homekit or the domoticz webbrowser it should start the app on my dashticz tablet.
Maybe it's also possible to kill the app when pressing the off button? <-- second question
Thanks and regards
Re: Start an Android App with Dashticz
Posted: Thursday 29 October 2020 23:28
by Arkie
If you have a Domoticz switch in Dashticz, you can also try the 'openpopupOn' parameter.
Starting the sonos app and my harmony activity with the press of 1 button works with the openpopupOn parameter, even when i switch the activity on the domoticz webbrowser or homekit app.
But now i only want to kill the popup at the end of the activity, if this is possible
Regards
Re: Start an Android App with Dashticz
Posted: Thursday 29 October 2020 23:50
by Lokonli
There is an auto close parameter for that.
Sent from my SM-A320FL using Tapatalk
Re: Start an Android App with Dashticz
Posted: Saturday 31 October 2020 17:21
by Arkie
There is an auto close parameter for that.
oke, but auto close is on time, i only want to close the app if the button is switched off.
Re: Start an Android App with Dashticz
Posted: Saturday 31 October 2020 22:51
by Arkie
i managed to start the sonos app with a button press on and switch back to the fully kiosk app with a button press off.
Code: Select all
blocks[192] = {} //harmony
blocks[192]['width'] = 12;
blocks[192]['title'] = 'Muziek'
blocks[192]['hide_data'] = true;
blocks[192]['icon'] = 'fab fa-itunes-note';
blocks[192]['openpopupOn'] = {}
blocks[192]['openpopupOn']['auto_close'] = 0.1; //seconds
blocks[192]['openpopupOn']['url'] ='intent:#Intent;launchFlags=0x10000000;component=com.sonos.acr2/com.sonos.acr.SonosLaunchActivity;end';
blocks[192]['openpopupOff'] = {}
blocks[192]['openpopupOff']['auto_close'] = 0.1; //seconds
blocks[192]['openpopupOff']['url'] ='intent:#Intent;launchFlags=0x10000000;component=de.ozerov.fully/de.ozerov.fully.MainActivity;end';
The pop-up is a blank page that can be closed directly, the app stays active