This file contains 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
public class History { | |
public String date; | |
public HistoryElements elements; | |
} |
This file contains 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
import com.google.android.gms.vision.MultiProcessor; | |
import com.google.android.gms.vision.Tracker; | |
import com.google.android.gms.vision.barcode.Barcode; | |
/** | |
* Factory for creating a tracker and associated graphic to be associated with a new barcode. The | |
* multi-processor uses this factory to create barcode trackers as needed -- one for each barcode. | |
*/ | |
class BarcodeTrackerFactory implements MultiProcessor.Factory<Barcode> { |
This file contains 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
import com.google.android.gms.vision.Detector; | |
import com.google.android.gms.vision.Tracker; | |
import com.google.android.gms.vision.barcode.Barcode; | |
/** | |
* Generic tracker which is used for tracking or reading a barcode (and can really be used for | |
* any type of item). This is used to receive newly detected items, add a graphical representation | |
* to an overlay, update the graphics as the item changes, and remove the graphics when the item | |
* goes away. | |
*/ |
This file contains 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
import android.Manifest; | |
import android.annotation.SuppressLint; | |
import android.app.AlertDialog; | |
import android.app.Dialog; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.content.pm.PackageManager; | |
import android.hardware.Camera; |
This file contains 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
import android.Manifest; | |
import android.content.Context; | |
import android.content.res.Configuration; | |
import android.support.annotation.RequiresPermission; | |
import android.util.AttributeSet; | |
import android.util.Log; | |
import android.view.SurfaceHolder; | |
import android.view.SurfaceView; | |
import android.view.ViewGroup; |
This file contains 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
import android.Manifest; | |
import android.annotation.SuppressLint; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.graphics.ImageFormat; | |
import android.graphics.SurfaceTexture; | |
import android.hardware.Camera; | |
import android.hardware.Camera.CameraInfo; | |
import android.os.Build; | |
import android.os.SystemClock; |