본문 바로가기
728x90

android6

[Android] Kotlin Chronometer 초단위 타임워치 구현 가능 2023. 8. 29.
[Crash] Fatal Exception: java.lang.IllegalStateException: Fragment ~not attached to an activity. 따라가 보자, 왜그런가... requireActivity() 본체는 아래와 같으며 결국 getActivity() 에서 null 이다. /** * Return the {@link FragmentActivity} this fragment is currently associated with. * * @throws IllegalStateException if not currently associated with an activity or if associated * only with a context. * @see #getActivity() */ @NonNull public final FragmentActivity requireActivity() { FragmentActivity activity = getAct.. 2023. 8. 24.
[Android] Integration OpenCv https://opencv.org/releases/ Releases Become a Member Stay up to date on OpenCV and Computer Vision news Join our Newsletter opencv.org Release 선택 최신 버전의 Android 선택하면 다운로드됨. 적당한 곳에 download & 압축 해제. Android Project 생성. SDK 모듈 추가. 아래와 같이 노출. 아까 다운받은 SDK 경로를 찾아 기입 아래와 같이 모듈 네임을 OpenCV 로 설정. OpenCV 모듈의 gradle 에 아래의 라인 주석 apply plugin: 'kotlin-android' file -> project structure 모듈 디펜던시 추가. 아래 로그 나오면.. 2023. 8. 4.
[Android] android 13-14 대응 RECEIVER_NOT_EXPORTED 컨텍스트 등록 수신기의 안전한 내보내기 런타임 수신기를 더 안전하게 만들기 위해, Android 13에서는 앱의 특정 broadcast receiver가 내보내져야 하며 기기의 다른 앱이 볼 수 있어야 하는지 여부를 지정할 수 있습니다. broadcast receiver가 내보내진 경우, 앱으로 다른 앱이 보호되지 않은 브로드캐스트를 보낼 수 있습니다. Android 13 이상을 타겟팅하는 앱에서 사용할 수 있는 이와 같은 내보내기 구성은 앱 취약성의 주요 원인 중 하나를 방지하도록 도와줍니다. 이전 버전의 Android에서는 수신기가 서명 권한에 의해 보호되지 않은 한 기기의 모든 앱이 동적으로 등록된 수신기로 보호되지 않은 브로드캐스트를 보낼 수 있었습니다. 안전을 강화해 주는 이 조치를 구현하려면 .. 2023. 8. 4.
[Android][Media Pipe] 인공지능 AI Media Pipe Media Pipe 를 이용해 할수 있는 매력적인것들이 많아요.. Media Pipe Framework integration on Android Media Pipe Framework 를 설치하고, 안드로이드 샘플앱가지 연동하는 과정을 끄적여본다. 아래 사이트는 한번 읽어보고.. 넘어간다. https://developers.google.com/mediapipe/framework/getting_started/android MediaPipe Framework on Android | Google for Developers MediaPipe Framework on Android Stay organized with collections Save and categorize content based on your pr.. 2023. 7. 28.
[Crash] Only fullscreen opaque activities can request orientation java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2957) if (getApplicationInfo().targetSdkVersion > O && mActivityInfo.isFixedOrientation()) { final TypedArray ta = obtainStyledAttributes(com.android.internal.R.styleable.Window); final boolean isTranslucentOrFloating = ActivityInfo.is.. 2023. 7. 26.
728x90