본문 바로가기

안드로이드 바코드 스캐너 적용.

카테고리 없음 by 낼스 2021. 12. 27.

# 바코드 스캐너 적용.

# build.gradle

repositories {
   jcenter()
}
    implementation 'me.dm7.barcodescanner:zxing:1.8.4'
#implementation 'me.dm7.barcodescanner:zxing:1.9.13'

# AndroidManifest.xml

        <activity
            android:clearTaskOnLaunch="true"
            android:configChanges="orientation|keyboardHidden"
            android:exported="false"
            android:name="SimpleScannerActivity"
            android:screenOrientation="portrait"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            android:windowSoftInputMode="stateAlwaysHidden">
            <intent-filter>
                <action android:name="com.phonegap.plugins.barcodescanner.SCAN" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

댓글