com.google.zxing.client.android.history.HistoryItem Java Examples

The following examples show how to use com.google.zxing.client.android.history.HistoryItem. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CaptureActivity.java    From ZXing-Standalone-library with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  if (resultCode == RESULT_OK && requestCode == HISTORY_REQUEST_CODE && historyManager != null) {
    int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
    if (itemNumber >= 0) {
      HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
      decodeOrStoreSavedBitmap(null, historyItem.getResult());
    }
  }
}
 
Example #2
Source File: CaptureActivity.java    From analyzer-of-android-for-Apache-Weex with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
	if (resultCode == RESULT_OK && requestCode == HISTORY_REQUEST_CODE
			&& historyManager != null) {
		int itemNumber = intent
				.getIntExtra(Intents.History.ITEM_NUMBER, -1);
		if (itemNumber >= 0) {
			HistoryItem historyItem = historyManager
					.buildHistoryItem(itemNumber);
			decodeOrStoreSavedBitmap(null, historyItem.getResult());
		}
	}
}
 
Example #3
Source File: CaptureActivity.java    From weex with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
	if (resultCode == RESULT_OK && requestCode == HISTORY_REQUEST_CODE
			&& historyManager != null) {
		int itemNumber = intent
				.getIntExtra(Intents.History.ITEM_NUMBER, -1);
		if (itemNumber >= 0) {
			HistoryItem historyItem = historyManager
					.buildHistoryItem(itemNumber);
			decodeOrStoreSavedBitmap(null, historyItem.getResult());
		}
	}
}
 
Example #4
Source File: CaptureActivity.java    From Study_Android_Demo with Apache License 2.0 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  if (resultCode == RESULT_OK && requestCode == HISTORY_REQUEST_CODE && historyManager != null) {
    int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
    if (itemNumber >= 0) {
      HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
      decodeOrStoreSavedBitmap(null, historyItem.getResult());
    }
  }
}
 
Example #5
Source File: CaptureActivity.java    From barcodescanner-lib-aar with MIT License 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  if (resultCode == RESULT_OK && requestCode == HISTORY_REQUEST_CODE && historyManager != null) {
    int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
    if (itemNumber >= 0) {
      HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
      decodeOrStoreSavedBitmap(null, historyItem.getResult());
    }
  }
}
 
Example #6
Source File: CaptureActivity.java    From reacteu-app with MIT License 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  if (resultCode == RESULT_OK) {
    if (requestCode == HISTORY_REQUEST_CODE) {
      int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
      if (itemNumber >= 0) {
        HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
        decodeOrStoreSavedBitmap(null, historyItem.getResult());
      }
    }
  }
}
 
Example #7
Source File: CaptureActivity.java    From android-apps with MIT License 5 votes vote down vote up
@Override
public void onActivityResult(int requestCode, int resultCode, Intent intent) {
  if (resultCode == RESULT_OK) {
    if (requestCode == HISTORY_REQUEST_CODE) {
      int itemNumber = intent.getIntExtra(Intents.History.ITEM_NUMBER, -1);
      if (itemNumber >= 0) {
        HistoryItem historyItem = historyManager.buildHistoryItem(itemNumber);
        decodeOrStoreSavedBitmap(null, historyItem.getResult());
      }
    }
  }
}