Abdullah Alahdal
now browsing by tag
I found that getItems() return the list of items from a container in a comma separated format.
I used below trying to get the list in an array, but all comes in items[0] as one item.
It would be nice to have an option to get all items’ names in an array.
var e=LL.getEvent();
var c=LL.getCurrentDesktop();
var pnl = c.getItemByName(‘pnlPersonal’).getContainer();
var items = new Array (pnl.getItems());
Android.makeNewToast(items[0], true).show();
]]>I use Nine from 9folders.com as my Exchange Clint Application and I found that it sends intent to open email items…
06-15 09:03:20.812 15472 16311 I ActivityManager: START u0 {act=android.intent.action.VIEW dat=content://com.ninefolders.hd3.provider/uimessage/1816?appVersion=108021&folderUri=content://com.ninefolders.hd3.provider/uifolder/42 typ=application/nine-email-ls flg=0x1300c000 cmp=com.ninefolders.hd3/.activity.MailActivityEmail (has extras)} from uid 10242 on display 0
How can I use this in intent for shortcuts.
]]>What am I doing wrong with the script.
What am I doing wrong with the script. Box left alignment is not fixed through the script. However, when I open the editor, I find that left alignment is selected and when I just click on it again, the alignment is fixed. See the short video.
var item = LL.getEvent().getItem();
var editor = item.getProperties().edit();
var box = editor.getBox(“i.box”);
box.setAlignment(“LEFT”,”MIDDLE”);
editor.commit();
]]>This one is most probably ‘a bug’.
This one is most probably ‘a bug’.
I have below Script to be run on resumed event for a text item to make it as a countdown bar.
It runs fine most of the time when I press Back to exit current app/activity and go to home screen. However, if I press the home button, an error is occurred.
var npt = LL.getVariables().getInteger(‘varNextPrayerTime’);
var mnpt = LL.getVariables().getFloat(‘varMintoNPT’);
var mtp = Math.round((((npt – Math.floor(Date.now() / 1000)) / 60) / mnpt) * 710);
if (mtp >= 0) {
var e=LL.getEvent();
var c=e.getContainer();
var item = c.getItemByName(‘barPrayer’);
item.setSize(mtp,17);
Android.makeNewToast(mtp, true).show();
}
]]>As I said earlier I am extra cautious of my mobile resources (power, ram and processing, etc…).
My question: Is “Resumed” event friendly for me. Is it directly effected with the number of items i.e. if I use the event “Resumed” in 5 – 10 items in the home screen.
]]>2 things:
1 – How can I use a variable in a script. I tried LL.getVariable() but it returns irrelevant value.
2 – Is there away to call a Tasker Global/Built-in variable into a script without using Tasker (on the fly).
One more:
Is there a way to group items together or select multiple items in edit mode. Most of the time, I want to move more than an items but I want to keep the same distant, but I fail 🙁
]]>Honestly, I don’t know if it is a bug but this has happened with me after last update.
Honestly, I don’t know if it is a bug but this has happened with me after last update. The 1st row in App Drawer is hidden under the title bar. You can see the icon labels in attached Screenshot.
]]>