Created
April 2, 2020 07:09
-
-
Save MrCrambo/a61de4d1bc1674da69dfb4d07df7bdce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mWifiBroadcastReceiver = new BroadcastReceiver() | |
{ | |
@Override public void onReceive(Context c, Intent intent) | |
{ | |
try | |
{ | |
// Your code here | |
} | |
catch (Throwable e) | |
{ | |
Logger.d(TAG, 1, Log.getStackTraceString(e)); | |
} | |
} | |
}; | |
mContext.registerReceiver(mWifiBroadcastReceiver, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment