Skip to content

Instantly share code, notes, and snippets.

View misto's full-sized avatar

Mirko Stocker misto

  • OST – Ostschweizer Fachhochschule
  • Switzerland
View GitHub Profile

Scala

Build

Eclipse

@misto
misto / search-menu-plugin.xml
Created March 16, 2016 07:57
Adding an entry to Eclipse's Search Menu
<extension point="org.eclipse.ui.actionSets">
<actionSet
description="Scaps Search Actions"
id="org.scala-search.actionSet"
label="Scaps Search Actions"
visible="true">
<menu
label="Search"
path="navigate"
@misto
misto / MyActivity.java
Last active August 11, 2016 12:47
Scan and Decode QR-Code
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
import com.journeyapps.barcodescanner.CaptureActivity;
public class MyCaptureActivity extends CaptureActivity { }
dependencies {
...
implementation 'com.journeyapps:zxing-android-embedded:4.0.2'
}