LL.bindClass(“android.net.ConnectivityManager”);

LL.bindClass(“android.net.ConnectivityManager”);

var cm=LL.getContext().getSystemService(Context.CONNECTIVITY_SERVICE);

var i = null;

var wifi = cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI);

if (wifi.isConnected()) {

i = pm.getLaunchIntentForPackage(“com.opera.browser”);

} else {

i = pm.getLaunchIntentForPackage(“org.mozilla.firefox”);

}

LL.startActivity(i);

Any idea??? 

]]>
« (Previous Post)
(Next Post) »

2 Commentsto LL.bindClass(“android.net.ConnectivityManager”);

  1. Anonymous says:

    < ![CDATA[

    Solution 1: (root / xposed) https://play.google.com/store/apps/details?id=com.faendir.lightning_launcher.permission_manager



    Solution 2: Download Network permission package from Pierre. Can’t find the link currently …

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Thank you for the tip with the permission – now the Script is working.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *