Skip to content

Instantly share code, notes, and snippets.

/**
* OUTER LOOP - THIS IS THE LOOP OF CLIENT
*/
for (Auth0Client client : clientList) {
log("checking client:" + client.name);
/**
* INNER LOOP - FOR EACH CLIENT YOU ARE LOOPING THROUGHT THE LIST OF RULES
* AND CHECKING THE CLIENT NAME IN THE SCRIPTS FIELD
package mqes;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.preference.PreferenceManager;
import android.util.Log;
import org.eclipse.paho.client.mqttv3.IMqttActionListener;
@hadrianhu
hadrianhu / MpockMqService.java
Created March 28, 2016 16:15
Mqtt Sample Service
package mqes;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;