티스토리 뷰
build.gradle(Module: app)에
dependencies 추가
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.journeyapps:zxing-android-embedded:3.5.0'
new IntentIntegrator(this).initiateScan()
qr 리더기 화면으로 이동
인식 성공 시 자동으로 전 화면 이동
전 화면 돌아왔을 때
protected void onActivityResult (int requestCode, int resultCode, Intent data) {
if (requestCode == IntentIntegrator.REQUEST_CODE) {
IntentResult result = IntentIntegrator.parseActivityResult(requestCode, resultCode, data);
if (result == null) {
//데이터가 없음. //그냥 뒤로가기 누른 케이스
} else {
//데이터 : result.getContents()
}
} else {
super.onActivityResult(requestCode, resultCode, data);
}
}
이 코드로 데이터 확인,
'android' 카테고리의 다른 글
| 타이틀, 하단 홈 백버튼 등 안보이게 처리하기 (0) | 2020.01.21 |
|---|---|
| 인텐트 oem 연동 리스트 (0) | 2019.09.23 |
| 로또 open api 레트로핏 예제 (0) | 2019.06.14 |
| 외부 키 입력 받기, (0) | 2019.06.12 |
| 안드로이드 텍스트 강조하기, 특정 텍스트 색 바꾸기 (0) | 2019.05.30 |
- Total
- Today
- Yesterday
- 데이터베이스
- 차번호 정규표현식
- mongo db
- ubunut android
- adb 환경변수
- react native state
- 함수형 코드
- 귀찮아;;
- not working adb
- insert
- not starting .bash_profile
- 명령어
- 자바
- mac android
- 안드로이드
- MongoDB
- not found adb
- React Native
- 구글 맵 경로 그리기
- 구글 맵 선그리기
- https://medium.com/@limgyumin/%EC%BD%94%ED%8B%80%EB%A6%B0-%EC%9D%98-apply-with-let-also-run-%EC%9D%80-%EC%96%B8%EC%A0%9C-%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94%EA%B0%80-4a517292df29
- text 부분 색 칠하기
- ubunut 설치 link
- Android
- 차번호 정규식
- https://hwan-shell.tistory.com/244
- nosql
- 클래스형 코드
- spannableText
- rn
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
