第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會有你想問的

發(fā)送信號。PID: 6939 SIG: 9 with zxing QR code scanner

發(fā)送信號。PID: 6939 SIG: 9 with zxing QR code scanner

吃雞游戲 2022-12-21 15:12:58
我正在開發(fā)一個(gè)帶有嵌入式二維碼閱讀器的應(yīng)用程序,在掃描代碼之后,我必須使用從二維碼中獲取的參數(shù)啟動(dòng)另一個(gè)活動(dòng)(名為 CodaActivity.class)。我從此處找到的教程開始:( https://www.androidtutorialonline.com/android-qr-code-scanner/ ) 并嘗試根據(jù)我的需要對其進(jìn)行自定義。這是 QRCodeScannerActivity 的代碼:import android.content.DialogInterface;import android.content.Intent;import android.content.pm.PackageManager;import android.net.Uri;import android.os.Build;import android.os.Bundle;import android.support.v4.app.ActivityCompat;import android.support.v4.content.ContextCompat;import andoid.support.v7.app.AlertDialog;import android.support.v7.app.AppCompatActivity;import android.util.Log;import android.widget.Toast;import com.google.zxing.Result;import me.dm7.barcodescanner.zxing.ZXingScannerView;import static android.Manifest.permission.CAMERA;public class QrCodeScannerActivity extends AppCompatActivity implements ZXingScannerView.ResultHandler {    private static final int REQUEST_CAMERA = 1;    private ZXingScannerView mScannerView;    @Override    protected void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        mScannerView = new ZXingScannerView(this);        setContentView(mScannerView);        int currentapiVersion = android.os.Build.VERSION.SDK_INT;        if (currentapiVersion >= android.os.Build.VERSION_CODES.M) {            if (checkPermission()) {                Toast.makeText(getApplicationContext(), "Permission already granted", Toast.LENGTH_LONG).show();            } else {                requestPermission();            }        }    }           }}但是在我掃描二維碼后(當(dāng)然是用物理設(shè)備),調(diào)試器退出并顯示以下消息:I/art: Object allocation is busy now, so prior to grow the heap. New heap size is 33 MBI/art: current process_level is : 0I/art: current process_level is : 0I/art: current process_level is : 0I/art: current process_level is : 0I/art: current process_level is : 0I/Process: Sending signal. PID: 8310 SIG: 9Application terminated.手機(jī)中的應(yīng)用程序仍然保持運(yùn)行狀態(tài),但會進(jìn)行不同的活動(dòng)。為什么?以及為什么我沒有錯(cuò)誤!感謝您的回答
查看完整描述

2 回答

?
隔江千里

TA貢獻(xiàn)1906條經(jīng)驗(yàn) 獲得超10個(gè)贊

我希望這可以幫助某人,我需要更多時(shí)間來找出它你應(yīng)該使用正確的版本:^1.0.1 并將其添加到 pupspec.yaml 中,如下所示:


dependencies:

  flutter:

    sdk: flutter


  flutter_barcode_scanner: ^1.0.1


查看完整回答
反對 回復(fù) 2022-12-21
?
交互式愛情

TA貢獻(xiàn)1712條經(jīng)驗(yàn) 獲得超3個(gè)贊

經(jīng)過多次測試并使用另一部手機(jī)(帶奧利奧)我終于發(fā)現(xiàn)我分割字符串是錯(cuò)誤的,令牌是錯(cuò)誤的但是以前的手機(jī)(android 6)沒有拋出異常,所以我無法弄清楚是什么發(fā)生。此外,仔細(xì)查看代碼,我在 startActivity () 調(diào)用之前插入了 finish () 語句...



查看完整回答
反對 回復(fù) 2022-12-21
  • 2 回答
  • 0 關(guān)注
  • 166 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號