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.journeyapps.barcodescanner.CaptureActivity; | |
public class MyCaptureActivity extends CaptureActivity { } |
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 void takeQrCodePicture() { | |
IntentIntegrator integrator = new IntentIntegrator(this); | |
integrator.setCaptureActivity(MyCaptureActivity.class); | |
integrator.setDesiredBarcodeFormats(IntentIntegrator.QR_CODE_TYPES); | |
integrator.setOrientationLocked(false); | |
integrator.addExtra(Intents.Scan.BARCODE_IMAGE_ENABLED, true); | |
integrator.initiateScan(); | |
} | |
@Override |
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
protected void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
Context ctx = getApplicationContext(); | |
Configuration.getInstance().load(ctx, PreferenceManager.getDefaultSharedPreferences(ctx)); | |
setContentView(R.layout.activity_main); | |
map = findViewById(R.id.map); | |
map.setTileSource(TileSourceFactory.MAPNIK); | |
map.setMaxZoomLevel(20); |
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
Welcome to Scala version 2.9.1.r0-b20120125223512 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_02). | |
Type in expressions to have them evaluated. | |
Type :help for more information. | |
scala> trait A | |
defined trait A | |
scala> trait C extends A | |
defined trait C |
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
dependencies { | |
... | |
implementation 'com.journeyapps:zxing-android-embedded:4.0.2' | |
} |
OlderNewer