Back to project page barcodescanner.
The source code is released under:
Apache License
If you think the Android project barcodescanner listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.dm7.barcodescanner.zbar.sample; //from w w w . ja v a2 s . c om import android.content.Intent; import android.os.Bundle; import android.support.v7.app.ActionBarActivity; import android.view.View; public class MainActivity extends ActionBarActivity { @Override public void onCreate(Bundle state) { super.onCreate(state); setContentView(R.layout.activity_main); } public void launchSimpleActivity(View v) { Intent intent = new Intent(this, SimpleScannerActivity.class); startActivity(intent); } public void launchSimpleFragmentActivity(View v) { Intent intent = new Intent(this, SimpleScannerFragmentActivity.class); startActivity(intent); } public void launchActivity(View v) { Intent intent = new Intent(this, ScannerActivity.class); startActivity(intent); } public void launchFragmentActivity(View v) { Intent intent = new Intent(this, ScannerFragmentActivity.class); startActivity(intent); } }