add log
This commit is contained in:
@@ -10,10 +10,15 @@ import com.mogo.cloud.utils.logger.Logger;
|
||||
|
||||
public class WifiBroadCastReceiver extends BroadcastReceiver {
|
||||
|
||||
private WifiBroadCastReceiver() {
|
||||
Logger.d(TAG, "WifiBroadCastReceiver init");
|
||||
}
|
||||
|
||||
private static final String TAG = "WifiBroadCastReceiver";
|
||||
|
||||
@Override
|
||||
public void onReceive(Context context, Intent intent) {
|
||||
Logger.d(TAG, "onReceive 接收intent action : " + intent.getAction());
|
||||
int wifiState = intent.getIntExtra("wifi_state", 0);
|
||||
WifiManager wifiManager = ((WifiManager) context.getApplicationContext().getSystemService(Context.WIFI_SERVICE));
|
||||
WifiInfo wifiInfo = wifiManager.getConnectionInfo();
|
||||
|
||||
Reference in New Issue
Block a user