Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.39 KB | None | 0 0
  1.     @Override
  2.     protected void onPause() {
  3.         super.onPause();
  4.         fileFlush();
  5.         stopService(new Intent(Fingerprinter.INTENT_START_SERVICE));
  6.     }
  7.  
  8.     @Override
  9.     protected void onResume() {
  10.         super.onResume();
  11.         registerReceiver(mReceiver, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION) );
  12.         try {
  13.             createFileOnDevice(true);
  14.         } catch (IOException e) {
  15.             e.printStackTrace();
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement