Beispiel #1
0
 @Override
 public void onScanCompleted(String path, Uri uri) {
   if (toScan.size() == 0) {
     conn.disconnect();
     conn = null;
   }
 }
 public void onScanCompleted(String s, Uri uri)
 {
     if (mMediaScannerConnection != null)
     {
         mMediaScannerConnection.disconnect();
     }
 }
Beispiel #3
0
  public void startScan() {
    if (conn != null) {
      conn.disconnect();
    }

    conn = new MediaScannerConnection(context, this);
    conn.connect();
  }
 void disconnect() {
   mc.disconnect();
 }