안드로이드 개발(149)
-
Mediapipe 안드로이드용 App 빌드하기
https://github.com/google/mediapipe GitHub - google/mediapipe: Cross-platform, customizable ML solutions for live and streaming media. Cross-platform, customizable ML solutions for live and streaming media. - GitHub - google/mediapipe: Cross-platform, customizable ML solutions for live and streaming media. github.com MediaPipe는 Pose Detection을 PC 뿐만 아니라 모바일 (Android, iOS)도 지원이 된다고 하기에, 큰 차이 없이 쉽..
2022.08.21 -
Only fullscreen opaque activities can request orientation 오류 발생시 대응 방법
액티비티의 배경을 투명하게 만들어서 팝업처럼 띄우도록 처리하면서, 동시에 화면을 세로로만 고정하도록 만드는 경우 "안드로이드 8.0" 버전에서만 "Only fullscreen opaque activities can request orientation"이라는 오류가 발생한다. 물론 그 이전/이후 버전에서는 해당 사항이 없는 문제로, 예외적인 조치가 필요하다. 안드로이드가 나온지 10년이 넘었는데도 아직도 이런 허접한 문제를 보이다니... 쩝 android manifest 파일에서 orientation을 고정했던 것을 제거하고, 액티비티의 onCreate에서 try catch로 예외처리된 상태로 orientation을 코드로 변경하는 방법이 가장 간단할듯. gun0912.tistory.com/79 [안드로이..
2020.10.14 -
액티비티 초기에 뷰 크기 구하기
ConstraintLayout constraintLayout = (ConstraintLayout) findViewById(R.id.constraint_layout); constraintLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { constraintLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this); int width = constraintLayout.getWidth(); int height = constraintLayout.getHe..
2020.04.06 -
안드로이드 앱 APK 업로드 API 연동 관련 팁
Print apks list of specific packageName using googleapi, androidpublisher and service account authentication (v3). const {google} = require('googleapis'); const key = require('./privateKey.json') const packageName = "com.company.example" let client = new google.auth.JWT( key.client_email, undefined, key.private_key, ['https://www.googleapis.com/auth/androidpublisher'] ) const androidApi = google..
2020.02.17 -
안드로이드 앱 APK 업로드 API 연동
https://developers.google.com/android-publisher/authorization Authorization | Google Play Developer API | Google Developers This section contains instructions specific to the Google Play Developer API. See the full OAuth2 documentation for more details. Initial configuration Access to the Google Play Android Developer API is authenticated using the OAuth 2.0 Web Server flow. Be developers.google..
2020.02.10 -
React Native 설치 및 안드로이드 앱 빌드, 실행
1. react-native 설치 및 프로젝트 생성 $ npm install -g react-native-cli $ react-native init TestProject $ cd TestProject $ npm install https://github.com/nashorn74/TestProject nashorn74/TestProject Contribute to nashorn74/TestProject development by creating an account on GitHub. github.com 2. 환경 변수 설정 (안드로이드용) windows의 경우 내컴퓨터 - 속성 - 고급 시스템설정 - 환경변수 로 들어가서 시스템 변수에 '변수이름 - ANDROID_HOME 변수 값 - C:\sdk의 경로' ..
2020.02.03