导航菜单

页面标题

页面副标题

bbinstant v6.24.0 - CaptureActivity.java 源代码

正在查看: bbinstant v6.24.0 应用的 CaptureActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.journeyapps.barcodescanner;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;

public class CaptureActivity extends Activity {
    private DecoratedBarcodeView barcodeScannerView;
    private j capture;

    protected DecoratedBarcodeView initializeContent() {
        setContentView(com.google.zxing.client.android.l.zxing_capture);
        return (DecoratedBarcodeView) findViewById(com.google.zxing.client.android.k.zxing_barcode_scanner);
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        this.barcodeScannerView = initializeContent();
        j jVar = new j(this, this.barcodeScannerView);
        this.capture = jVar;
        jVar.initializeFromIntent(getIntent(), bundle);
        this.capture.decode();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        this.capture.onDestroy();
    }

    @Override
    public boolean onKeyDown(int i2, KeyEvent keyEvent) {
        return this.barcodeScannerView.onKeyDown(i2, keyEvent) || super.onKeyDown(i2, keyEvent);
    }

    @Override
    protected void onPause() {
        super.onPause();
        this.capture.onPause();
    }

    @Override
    public void onRequestPermissionsResult(int i2, String[] strArr, int[] iArr) {
        this.capture.onRequestPermissionsResult(i2, strArr, iArr);
    }

    @Override
    protected void onResume() {
        super.onResume();
        this.capture.onResume();
    }

    @Override
    protected void onSaveInstanceState(Bundle bundle) {
        super.onSaveInstanceState(bundle);
        this.capture.onSaveInstanceState(bundle);
    }
}