Archives
now browsing by author
Anybody know how to get gestures working? Can’t seem to get swipe down to expand notification tray
Anybody know how to get gestures working? Can’t seem to get swipe down to expand notification tray
Jay M TrianguloY Pierre Hébert
Is it possible to send 2 variables when running a script ?
I want to run the SMS script passing tel num and message
]]>Hi Pierre Hébert when will come the possibility to schedule batch scripts ?
Or is it already possible and how ?
Ex : I want to run a script every week on Sunday morning
]]>/*
Quick Message
This script will send a preformatted message to someone.
you will need to install this sweet apk by the dev himself to give the launcher permission to send sms messages
http://www.lightninglauncher.com/permissions//
If your running Marshmallow just installing the apk is not enough there is 1 more step you need to take, go to your device settings and open your application manager press the cog icon on the toolbar and choose app permissions find the sms permission tap it and flick the switch on the new permission and your good to go.
Note: This step will probably be a little diferent on your device but should be nearly the same.
*/
LL.bindClass(“android.net.Uri”);
LL.bindClass(“android.content.Intent”);
LL.bindClass(“java.language.IllegalArgumentException”);
LL.bindClass(“android.telephony.TelephonyManager”);
LL.bindClass(“android.telephony.SmsManager”);
var mctx = LL.getContext();
var num = “######”; // replace with phone#
var message = “This is is a test”; // replace with your message
function check()
{
var service = mctx.getSystemService(Context.TELEPHONY_SERVICE);
// Check if device supports telephony
if (service.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE)
{
alert(“This device doesnt support telephony”);
}
else
{
// continue
}
}
check();
try{
var textMan = SmsManager.getDefault();
textMan.sendTextMessage(num, null, message, null,null);
Android.makeNewToast(“Sent”, false).show();
}catch(e){
alert(e)
}
]]>//Quick Dial
LL.bindClass(“android.net.Uri”);
LL.bindClass(“android.content.Intent”);
LL.bindClass(“android.content.ActivityNotFoundException”);
LL.bindClass(“android.telephony.TelephonyManager”);
var mctx = LL.getContext();
var num = “4444”; // replace with phone#
function check()
{
var service = mctx.getSystemService(Context.TELEPHONY_SERVICE);
// Check if device supports telephony
if (service.getPhoneType() == TelephonyManager.PHONE_TYPE_NONE)
{
alert(“This device doesnt support telephony”);
}
else
{
// continue
}
}
check();
try
{
var i = new Intent(Intent.ACTION_DIAL);
i.setData(Uri.parse(“tel:” + num));
mctx.startActivity(i);
}
catch (anfe)
{
alert(anfe);
}
]]>Here’s a weird one:
I have a Direct Dial shortcut for my wife on my LL desktop, but when I tap it, LL says: “Item is not installed. Search Google Play, or pick another app?”
I tried removing the shortcut and readding it: same result.
I’m not sure when this stopped working, but it was probably when I upgraded from an S6 to an S7. Has anyone seen this strange behaviour before?
]]>








D5 Creation