반응형 분류 전체보기12 Foreground Service 구현android.app.ForegroundServiceStartNotAllowedException 처리 Background Service : Android 6.0 (api level 23) 도입된 배터리 절약 기능 Doze 모드에 의해 시스템에 의해 Kill 당할 수 있다.Foreground Service : 사용자가 인지할 수 있는 작업을 수행하며, 이 과정에서 반드시 알림을 통해 서비스가 실행 중임을 사용자에게 표시해야 합니다. 이러한 서비스는 사용자가 명시적으로 중지하지 않는 한 계속 실행되며, 중요한 작업이 중단되지 않도록 시스템에 의해 강제로 종료되지 않습니다.Foreground Service는 상태 표시줄에 알림을 표시하며, 이 알림을 통해 사용자는 서비스가 활성화된 상태에서 시스템 리소스를 소비하고 있다는 것을 인지할 수 있습니다.일반적인 Foreground Service 사용 사례로는 다음과.. 2024. 8. 29. Compose xml -> compose 변환 Jetpack ComposeJetpack Compose는 새롭게 등장한 안드로이드 네이티브 UI 개발 도구다. xml 대체한 선언형(declarative) UI로 UI 개발을 간소화하고 가속화한 도구로 UI개발에 편리하다고 하여 실제 적용하면서 xml -> compose 변환시 어려웠던 일들을 정리해본다. 1. background image 로 사용하던 shape compose로 수정하기 xml compose 로 변환.background(Color.LightGray, shape = RoundedCornerShape(16.dp)) 2. color.xml 로 정의하던 color 값 compose로 수정하기 xml#f2f7fa compose 로 변환colorResource(id = R.color.co.. 2024. 2. 4. 안드로이드 실행중인 서비스인지 체크 안드로이드 서비스가 실행중인지 체크하는 함수isServiceRunning(context, 클래스이름::class.java.name)/*** 서비스 실행중인지 체크*/fun isServiceRunning(context: Context, name:String) : Boolean { val activityManager = context.getSystemService(ACTIVITY_SERVICE) as ActivityManager val serviceList = activityManager.getRunningServices(Int.MAX_VALUE) for(serviceInfo in serviceList){ if(serviceInfo.service.className == name).. 2024. 1. 17. Android Braze Setting 4탄 Android Braze Setting InAppMessage 적용해 볼까? site : https://www.braze.com/docs/developer_guide/platform_integration_guides/android/in-app_messaging/integration/ In-App Message Integration for Android and FireOS In-app messages help you get content to your users without interrupting their day with a push notification. Customized and tailored in-app messages enhance the user experience and help your.. 2023. 12. 11. 이전 1 2 3 다음 반응형