package com.cr5w.scan;

import android.content.Context;
import android.content.Intent;

public class ScanKeyEventRunnable implements Runnable {
	public boolean isrun = true;
	private Context context;

	public ScanKeyEventRunnable(Context context) {
		this.context = context;
	}

	public void run() {
		while (isrun) {
			Intent intent = new Intent();
			intent.setAction("com.barcode.sendBroadcastScan");
			context.sendBroadcast(intent);
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
