Created
          November 23, 2012 18:06 
        
      - 
      
- 
        Save meeDamian/4136689 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or 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
    
  
  
    
  | package pl.d30.ntpm.checker; | |
| import android.graphics.Bitmap; | |
| import android.os.Bundle; | |
| import android.view.Menu; | |
| import android.widget.Toast; | |
| import com.google.zxing.Result; | |
| import com.google.zxing.client.android.CaptureActivity; | |
| public class CheckerActivity extends CaptureActivity { | |
| @Override | |
| public void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_checker); | |
| } | |
| @Override | |
| public boolean onCreateOptionsMenu(Menu menu) { | |
| getMenuInflater().inflate(R.menu.activity_chcker, menu); | |
| return true; | |
| } | |
| @Override | |
| public void handleDecode(Result rawResult, Bitmap barcode) { | |
| Toast.makeText(this.getApplicationContext(), "Scanned code "+ rawResult.getText(), Toast.LENGTH_LONG).show(); | |
| } | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment