@@ -0,0 +1,1526 @@
+package com.github.tuxdude.yani.wifi;%0A%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.net.wifi.WifiManager;%0Aimport android.widget.Toast;%0A%0Aimport com.github.tuxdude.yani.utils.Logger;%0A%0Apublic class WifiBroadcastListener extends BroadcastReceiver %7B%0A%0A    private static WifiBroadcastListener instance = null;%0A%0A    @Override%0A    public void onReceive(Context context, Intent intent) %7B%0A        Logger.trace();%0A        if (intent.getAction().equals(Intent.ACTION_AIRPLANE_MODE_CHANGED)) %7B%0A            Toast.makeText(context, %22Airplane Mode Changed!%22, Toast.LENGTH_LONG).show();%0A            Logger.d(%22Airplane Mode Changed%22);%0A        %7D%0A        else if (intent.getAction().equals(WifiManager.WIFI_STATE_CHANGED_ACTION)) %7B%0A            Toast.makeText(context, %22Wifi State Changed!%22, Toast.LENGTH_LONG).show();%0A            Logger.d(%22Wifi State Changed%22);%0A        %7D%0A        else if (intent.getAction().equals(WifiManager.NETWORK_STATE_CHANGED_ACTION)) %7B%0A            Toast.makeText(context, %22Network State Changed!%22, Toast.LENGTH_LONG).show();%0A            Logger.d(%22Network State Changed%22);%0A        %7D%0A        else %7B%0A            Logger.d(%22Unhandled intent: %22 + intent.getAction().toString());%0A        %7D%0A    %7D%0A%0A    private WifiBroadcastListener() %7B%0A        // Empty constructor%0A    %7D%0A%0A    public static WifiBroadcastListener getInstance() %7B%0A        if (instance == null) %7B%0A            instance = new WifiBroadcastListener();%0A        %7D%0A        return instance;%0A    %7D%0A%7D%0A

Add WifiBroadcastListener.