Jay M
now browsing by tag
It would be nice if we could tint or make greyscale widgets some apps have widgets that stand out a mile away eg.


Lil bug in latest version may of been there in older version, steps to reproduce.
Long press desktop
Press +
Press icon
Add an icon from any icon pack
Go back to desktop the icon doesnt display its the default blueprint icon instead killing the launcher doesnt fix it.
]]>I just got this nifty lil bit of kit and i noticed these commands work as expected.
I just got this nifty lil bit of kit and i noticed these commands work as expected.
Ctrl + A = Select All
Ctrl + X = Delete All
Ctrl + C = Copy
Ctrl + V = Paste
Is there any other commands i should know about? I know this was/is never going to be a full blown code editor but if these^ work it must have some commands implemented right?
]]>Pierre Hébert any chance of adding the SEND_SMS permission to this page…
/*
/*
Quick Message
This script will send a preformatted message to someone.
you will need to use this sweet app to give the launcher SEND_SMS permission.
https://play.google.com/store/apps/details?id=com.faendir.lightning_launcher.permission_manager
Make sure you read the app description*/
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 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);
}
]]>/So I deleted my other script and changed some stuff to create this one which gives you more control.
/So I deleted my other script and changed some stuff to create this one which gives you more control. You now have 3 options what to do with the bars. See Screenshot./
//System bar color changer
var defaultColor = 0xffff5722; // LL Orange
var desktop = LL.getCurrentDesktop();
var property = desktop.getProperties();
var editor = property.edit();
var choice = prompt(“1 = Use same color for both bars\n2 = Use different colors for each bar\n3 = Use Lightning Launchers Orange”, “”);
if (choice == 3)
{
editor.setInteger(“statusBarColor”, 0xffff5722);
editor.setInteger(“navigationBarColor”, 0xffff5722);
editor.commit();
Android.makeNewToast(“Excellent choice!”, true).show();
}
if (choice == null)
{
//Android.makeNewToast(“null selected”, true).show();
}
else if ((choice != 1) && (choice != 2) && (choice != 3))
{
Android.makeNewToast(“Use only 1 2 or 3”, true).show();
}
else if (choice == 1)
{
//Android.makeNewToast(“1 selected”, true).show();
var barsColor = LL.pickColor(“Statusbar and Navbar Color”, defaultColor, true);
if (barsColor != null)
{
editor.setInteger(“statusBarColor”, barsColor);
editor.setInteger(“navigationBarColor”, barsColor);
editor.commit();
}
}
else if (choice == 2)
{
Android.makeNewToast(“Statusbar color”, true).show();
var statusColor = LL.pickColor(“Statusbar Color”, defaultColor, true);
if (statusColor != null)
{
Android.makeNewToast(“Navbar color”, true).show();
editor.setInteger(“statusBarColor”, statusColor);
editor.commit();
var navbarColor = LL.pickColor(“Navbarbar Color”, defaultColor, true);
if (navbarColor != null)
{
editor.setInteger(“navigationBarColor”, navbarColor);
editor.commit();
}
}
}
]]>
D5 Creation