Android Open Source - Metascan-Online Observer Service






From Project

Back to project page Metascan-Online.

License

The source code is released under:

Apache License

If you think the Android project Metascan-Online listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.opswat.metascan;
// w ww.  j  a  v  a2  s .  c om
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;

public class ObserverService extends Service{
  //private static final String TAG = "MainActivity.java";
  RecursiveFileObserver ob;
  @Override
  public void onCreate(){
    ob = new RecursiveFileObserver("/storage/emulated/0");
  }
  @Override
  public IBinder onBind(Intent arg0) {
    // TODO Auto-generated method stub
    return null;
  }
  @Override
  public int onStartCommand(Intent intent, int flags, int startid){
    ob.startWatching();
    return START_NOT_STICKY;    
  }
  @Override
  public void onDestroy(){
    ob.stopWatching();
    stopSelf();
  }
}




Java Source Code List

com.opswat.metascan.DBTable.java
com.opswat.metascan.DirectoryChooserDialog.java
com.opswat.metascan.DownloadListener.java
com.opswat.metascan.FolderScan.java
com.opswat.metascan.HttpPostReceive.java
com.opswat.metascan.MainActivity.java
com.opswat.metascan.MySQLiteDB.java
com.opswat.metascan.ObserverService.java
com.opswat.metascan.ParseJSON.java
com.opswat.metascan.PostDataAsyncTask.java
com.opswat.metascan.RecursiveFileObserver.java
com.opswat.metascan.Results.java
com.opswat.metascan.Scan.java
com.opswat.metascan.Settings.java
com.opswat.metascan.TabAdapter.java
processing.files.SelectActivity.java
processing.files.SelectMode.java