June, 2015

now browsing by month

 

How do I run scripts lock secuance script?

How do I run scripts lock secuance script?

]]>

Hi All.

Hi All. Need some guidance here. I just started playing with bindings and as a quick test, I set up a binding which changes the value of the reflection to 0 which causes the reflection to show. Simple. When I modify it to 1, it gets rid of the reflection. I’m keeping things simple. 🙂

Next, let’s push the envelope and use a variable instead. I created an icon and set it so if I click it, it assigns $Reflect to 0. I created a second icon which assigns the variable to 1. So far so good? Finally, I change the binding to use $Reflect. Now I click on one icon or another and it toggles the reflection property of the icon I am using for this test. Sweet! It’s like an instant change. I’m luvin it!

Now, let’s go crazy and use Tasker to do the same thing. I created two tasks each setting the lightning variable $Reflect to 1 and 0 respectively. However when I tested this, it didn’t work. First question : why didn’t it work?

I figured out how to get around this. Instead of selecting the Tasker plugin Lightning variable, I selected Lightning action and set the variable that way. This time it worked. But I noticed something. It was a half second slower. My second question (and equally important) is why it’s slower than without using Tasker, and what can I do to speed it up.

Any ideas? Thanks!

Home

I got a widget from Automagic (automagic4android.com) with double tap and long tap (hold) actions. But only the normal one tap function gives a result. I tried all options in LL to deactivate tap actions for desktop and LL self.

http://automagic4android.com
]]>

+Jay M

+Jay M

]]>

In the app drawer we can uninstall an item by long pressing an app icon and choosing uninstall, could this also work…

In the app drawer we can uninstall an item by long pressing an app icon and choosing uninstall, could this also work for the bin icon? I just think it would be quicker/easier and it makes sense to me because we bin stuff we don’t want and while I no that icon doesn’t do anything I can’t stop trying to uninstall apps that way.

]]>

I have this outline of a box, which I think is a panel, but which I can’t delete.

I have this outline of a box, which I think is a panel, but which I can’t delete. I get to the edit page, but there’s no delete icon.

]]>

Misty

Originally shared by Thomas Greer

Misty

Wall: G+

Zooper widget by me

Icons: whicons

https://play.google.com/store/apps/details?id=com.whicons.iconpack

Lightning Launcher Extreme

Power toggles

]]>

“CustomAdapter” ListView Customview example

“CustomAdapter” ListView Customview example

Little changes DroidScript page’s code(http://droidscript.blogspot.jp/2010/03/custom-listadapter-in-using-java-proxy.html)

It’s working. This example, ListView item contains layouted three TextView.

I’m using it as RSS widget replacement with Tasker.

(2015/06/29 edit this post)

LL.bindClass(“java.util.HashMap”);

LL.bindClass(“java.util.ArrayList”);

LL.bindClass(“android.view.View”);

LL.bindClass(“android.view.Gravity”);

LL.bindClass(“android.widget.ListAdapter”);

LL.bindClass(“android.widget.ListView”);

LL.bindClass(“android.widget.LinearLayout”);

LL.bindClass(“android.widget.TextView”);

LL.bindClass(“java.lang.reflect.Array”);

LL.bindClass(“java.lang.reflect.Proxy”);

LL.bindClass(“java.lang.Class”);

LL.bindClass(“java.lang.ClassLoader”);

LL.bindClass(“java.lang.String”);

LL.bindClass(“java.lang.Boolean”);

LL.bindClass(“java.lang.Integer”);

LL.bindClass(“java.lang.Long”);

LL.bindClass(“java.lang.Double”);

LL.bindClass(“java.lang.Number”);

retDataList = new ArrayList(LL.getContext());

for (n=0; n<20; n++) {

retDataList.add({

title:”Lightning Launcher”,

description:”ListView CustomAdapter test. ListView CustomAdapter test. ListView CustomAdapter test.”,

date:”24:00″,

});

}

item.setVerticalGrab(true);

var context = LL.getContext();

var listView = new ListView(context);

listView.setBackgroundColor(Color.parseColor(“#ff222222”));

listView.setDivider(new ColorDrawable(Color.parseColor(“#ffeeeeee”)));

listView.setDividerHeight(1);

listView.setPadding(16,8,16,8);

var adapter = createListViewArrayAdapter(

retDataList,

function(position, convertView)

{

var view1 = convertView;

var view2;

var text1;

var text2;

var text3;

var text1text = retDataList.get(position).title;

var text2text = retDataList.get(position).description;

var text3text = retDataList.get(position).date;

if (null == view1) {

view1 = new LinearLayout(context);

view1.setOrientation(LinearLayout.HORIZONTAL);

view1.setLayoutParams(LinearLayout.LayoutParams(LinearLayout.LayoutParams.MATCH_PARENT,LinearLayout.LayoutParams.WRAP_CONTENT));

view1.setPadding(8,8,8,8);

view2 = new LinearLayout(context);

view2.setOrientation(LinearLayout.VERTICAL);

view2.setLayoutParams(LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT,1));

view2.setPadding(0,0,0,0);

view1.addView(view2);

text1 = new TextView(context);

text1.setId(01);

text1.setTextColor(Color.parseColor(“#ffeeeeee”));

text1.setTextSize(15);

text1.setTypeface(Typeface.SERIF,Typeface.BOLD);

text1.setLayoutParams(LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT,0));

text1.setText(text1text);

view2.addView(text1);

text2 = new TextView(context);

text2.setId(02);

text2.setTextColor(Color.parseColor(“#ffeeeeee”));

text2.setTextSize(13);

text2.setTypeface(Typeface.SANS_SERIF,Typeface.ITALIC);

text2.setLayoutParams(LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.WRAP_CONTENT,0));

text2.setText(text2text);

view2.addView(text2);

text3 = new TextView(context);

text3.setId(03);

text3.setTextColor(Color.parseColor(“#ffeeeeee”));

text3.setTextSize(11);

text3.setTypeface(Typeface.MONOSPACE,Typeface.NORMAL);

text3.setGravity(Gravity.RIGHT);

text3.setLayoutParams(LinearLayout.LayoutParams(LinearLayout.LayoutParams.WRAP_CONTENT,LinearLayout.LayoutParams.MATCH_PARENT,0));

text3.setText(text3text);

view1.addView(text3);

}

else if (null != view1) {

text1=TextView(convertView.findViewById(01));

text1.setText(text1text);

text2=TextView(convertView.findViewById(02));

text2.setText(text2text);

text3=TextView(convertView.findViewById(03));

text3.setText(text3text);

}

return view1;

});

listView.setAdapter(adapter);

return listView;

function javaArrayToJsArray(javaArray)

{

var jsArray = [];

for (i = 0; i < javaArray.length; ++i) {

jsArray[i] = javaArray[i];

}

return jsArray;

}

function createInstance(javaInterface, handler)

{

var interfaces = Array.newInstance(Class, 1);

interfaces[0] = javaInterface;

var obj = Proxy.newProxyInstance(

ClassLoader.getSystemClassLoader(),

interfaces,

function(proxy, method, args) {

return handler[method.getName()].apply(

null,

javaArrayToJsArray(args)

);

});

return obj;

}

function createListViewArrayAdapter(items, viewFun)

{

var observer;

var handler = {

areAllItemsEnabled : function() {

return true; },

isEnabled : function(position) {

return true; },

getCount : function() {

return new Integer(items.size()); },

getItem : function(position) {

return new String(items.get(position)); },

getItemId : function(position) {

return new Long(position); },

getItemViewType : function(position) {

return new Integer(0); },

getView : function(position, convertView, parent) {

return viewFun(position, convertView); },

getViewTypeCount : function(position) {

return new Integer(1); },

hasStableIds : function(position) {

return true; },

isEmpty : function(position) {

return 0 == items.size(); },

registerDataSetObserver : function(theObserver) {

observer = theObserver; },

unregisterDataSetObserver : function(theObserver) {

observer = null; },

};

return createInstance(ListAdapter, handler);

}

]]>

Hi, everyone, a question about app drawer ;

Hi, everyone, a question about app drawer ;

I add a folder in My Drawer, but I can’ t see it in Alphabetical   .

Is it OK OR NOT .

]]>

It’s possible to create a kind of “music widget” (obviously through CustomViews) for all music players without using…

It’s possible to create a kind of “music widget” (obviously through CustomViews) for all music players without using the notification access?

]]>