300x250

이 글은 android.View 클래스 학습을 위해

아래 레파지토리 Google Samples / mlKit을 활용하였습니다.

 

mlkit/android/material-showcase at master · googlesamples/mlkit · GitHub

 

googlesamples/mlkit

A collection of sample apps to demonstrate how to use Google's ML Kit APIs on Android and iOS - googlesamples/mlkit

github.com

material-showcase

 

 

클래스 다이어그램.

 

 

반응형
300x250

* Android Studio 4.1 이후 부터 지원

 

1.에뮬레이터가 Tool Window에 시작하도록 허용

File > Settings > Emulator

 

 

 

2. Emulator 실행 후, " Emulator Tool Window " 가 활성화가 된 모습

Emulator Tool Window

반응형
300x250

Preview: Use of All files access (MANAGE_EXTERNAL_STORAGE) permission - Play Console 고객센터 (google.com)

 

Preview: Use of All files access (MANAGE_EXTERNAL_STORAGE) permission - Play Console 고객센터

도움이 되었나요? 어떻게 하면 개선할 수 있을까요? 예아니요

support.google.com

 

5월 5일부터는 앱에 광범위한 저장공간 액세스 권한이 필요한 이유를 알려야 합니다

2021년 4월 15일 02:26

앱의 App Bundle 또는 APK 중 1개 이상에서 매니페스트 파일에 requestLegacyExternalStorage 플래그가 포함되어 있다는 것이 확인되었습니다.

Android 11 이상을 실행하는 기기에 설치되는 앱의 개발자는 사용자가 기기 저장공간 액세스를 더 세밀하게 제어할 수 있도록 범위 지정 저장소를 사용해야 합니다. 5월 5일 후에 Android 11 이상을 대상으로 앱을 출시하려면 다음 중 하나를 해야 합니다.

  • 저장소 액세스 프레임워크 또는 Media Store API와 같이 개인정보를 더 안전하게 보호하는 권장사항을 따르도록 앱을 업데이트합니다.
  • 매니페스트 파일에서 모든 파일 액세스(MANAGE_EXTERNAL_STORAGE) 권한을 선언하도록 앱을 업데이트하고 5월 5일부터 Play Console에서 모든 파일 액세스 권한 선언을 완료합니다.
  • 앱에서 모든 파일 액세스 권한을 완전히 삭제합니다.

Android 11을 타겟팅하는 앱의 경우 requestLegacyExternalStorage 플래그가 무시됩니다. 광범위한 액세스를 유지하려면 모든 파일 액세스 권한을 사용해야 합니다.

허용된 용도 외에 모든 파일 액세스 권한에 액세스를 요청하는 앱은 Google Play에서 삭제되고, 업데이트를 게시할 수 없게 됩니다.

 

 

2021-04-21 요약


 

 

공식홈페이지 글

* Android 11(API 수준 30)을 타겟팅하며 모든 파일 액세스 권한을 요청하는 앱

* 앱에 모든 파일 액세스 권한이 필요하다고 생각되는 경우 현재로서는 타겟 SDK 레벨을 Android 11(API 수준 30)로 업데이트하지 않는 것이 좋습니다.

 

관련 링크


모든 파일 액세스(MANAGE_EXTERNAL_STORAGE) 권한 사용하기

support.google.com/googleplay/android-developer/answer/9956427#zippy=%2C예외

 

모든 파일 액세스(MANAGE_EXTERNAL_STORAGE) 권한 사용하기 - Play Console 고객센터

도움이 되었나요? 어떻게 하면 개선할 수 있을까요? 예아니요

support.google.com

Android 11의 저장소 업데이트  |  Android 개발자  |  Android Developers

 

Android 11의 저장소 업데이트  |  Android 개발자  |  Android Developers

Android 11(API 수준 30)에서는 플랫폼을 한층 더 강화하여 외부 저장소의 앱 및 사용자 데이터를 더욱 안전하게 보호합니다. 이 버전에는 미디어의 원시 파일 경로 액세스 선택, 미디어의 일괄 수

developer.android.com

 

 

반응형
300x250

이 글은 " Getting Started with CameraX " 을 참고하여 주관적으로 정리하였음.

Getting Started with CameraX (google.com)

 

Getting Started with CameraX  |  Google Codelabs

This codelab introduces how to create a camera app that uses CameraX to show a viewfinder, take photos and analyze an image stream from the camera.

codelabs.developers.google.com



CameraX 란?


 Camera2 API의 기능을 쉽게 활용할 수 있게 해주는 Jetpack의 부가기능

 

요점


A. 할 수 있는것 : 기능 위주

  • 카메라 미리보기 / Preview
  • 이미지 캡쳐 
  • 프레임 실시간 분석 ( Image Analysis)  -> Vision 등에 활용 

 

B. 이점

  • 파편화 된 카메라 장치에 대한 작업 비용 절감
  • 카메라 관련 리소스 관리에 대한 편의성 : LifeCycle 수명 주기 인식

 

 

준비


1. CameraX 라이브러리 ( Gradle Dependecy ) 

def camerax_version = "1.0.0-beta07"
// CameraX core library using camera2 implementation
implementation "androidx.camera:camera-camera2:$camerax_version"
// CameraX Lifecycle Library
implementation "androidx.camera:camera-lifecycle:$camerax_version"
// CameraX View class
implementation "androidx.camera:camera-view:1.0.0-alpha14"

 

2. 권한 및 장치 사용 -> AndroidManifest.xml
android.hardware.camera.any : 장치에 카메라 있는지 확인. 전면 혹은 후면 카메라

<uses-feature android:name="android.hardware.camera.any" />
<uses-permission android:name="android.permission.CAMERA" />

 

 

 

 

반응형

+ Recent posts