Java 类org.apache.cordova.api.Plugin 实例源码

项目:phonegap-mixare    文件:BarcodeScanner.java   
/**
 * Starts an intent to scan and decode a barcode.
 */
public void scan() {
    Intent intentScan = new Intent(SCAN_INTENT);
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    this.cordova.startActivityForResult((Plugin) this, intentScan, REQUEST_CODE);
}
项目:phonegap-mixare    文件:BarcodeScanner.java   
/**
 * Starts an intent to scan and decode a barcode.
 */
public void scan() {
    Intent intentScan = new Intent(SCAN_INTENT);
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    this.cordova.startActivityForResult((Plugin) this, intentScan, REQUEST_CODE);
}
项目:phonegap-mixare    文件:BarcodeScanner.java   
/**
 * Starts an intent to scan and decode a barcode.
 */
public void scan() {
    Intent intentScan = new Intent(SCAN_INTENT);
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    this.cordova.startActivityForResult((Plugin) this, intentScan, REQUEST_CODE);
}
项目:phonegap-mixare    文件:BarcodeScanner.java   
/**
 * Starts an intent to scan and decode a barcode.
 */
public void scan() {
    Intent intentScan = new Intent(SCAN_INTENT);
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    this.cordova.startActivityForResult((Plugin) this, intentScan, REQUEST_CODE);
}
项目:BibSearch    文件:BarcodeScanner.java   
/**
 * Starts an intent to scan and decode a barcode.
 */
public void scan() {
    Intent intentScan = new Intent(SCAN_INTENT);
    intentScan.addCategory(Intent.CATEGORY_DEFAULT);

    this.cordova.startActivityForResult((Plugin) this, intentScan, REQUEST_CODE);
}
项目:foreground-gallery-plugin    文件:ForegroundGalleryLauncher.java   
/**
 * Get image from photo library.
 */
public void getImage()
{
    Intent intent = new Intent(this.cordova.getActivity().getApplicationContext() , GalleryActivity.class);
    this.cordova.startActivityForResult((Plugin) this, intent, 11);
}