프로그래밍/Android
-
Android 14 - Additional restrictions on starting activities from the background프로그래밍/Android 2023. 6. 2. 15:26
그동안 Google은 Background 에서 실행되는 Android component를 제한해왔다. Android 10 Restrictions on starting activities from the background https://developer.android.com/guide/components/activities/background-starts?authuser=4&hl=ko Android 12 Foreground service launch restrictions https://developer.android.com/about/versions/12/behavior-changes-12#performance Restrictions on background starts https://developer..
-
Android 14 - Apps can kill only their own background processes프로그래밍/Android 2023. 5. 31. 11:45
From OS 14 (regardless of targeting OS 14), when your app calls killBackgroundProcesses(), the API can kill only the background processes of your own app. killBackgroundProcesses (API level 8) How to kill the background service process: // manifest // kill the background service process val activityManager = getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager activityManager.killBackgr..
-
Android 14 - Foreground Service types프로그래밍/Android 2023. 5. 30. 15:58
Objective The requirement to declare foreground service types allows you to clearly define the intent of the background work of your app while making it clear which use-cases are appropriate for foreground services. Definition of background work Foreground Service Audio recording, working out tracking, navigation, or media playback, etc WorkManager Otherwise most of the time usage Foreground Ser..
-
Jetpack compose - Custom layout프로그래밍/Android 2022. 12. 12. 11:31
2021 Android dev summit A deep dive into Jetpack Compose Layouts - https://www.youtube.com/watch?v=zMKMwh9gZuI https://developer.android.com/jetpack/compose/layouts/custom https://developer.android.com/codelabs/jetpack-compose-state#2 Android View - https://www.youtube.com/watch?v=4NNmMO8Aykw ---- Jetpack Compose has been updated 1.3.2. Set up Compose for an existing app To start using Compose, ..
-
Android 13 - Battery Resource Utilization프로그래밍/Android 2022. 8. 11. 18:28
앱별 배터리 리소스 제한 When? Android 9부터 Android 13에서는 규칙 수정이 생김 What? 앱이 백그라운드에서 시스템 리소스를 무한으로 사용하지 않도록 제한 Android 9부터 Battery optimization이나 Background restriction으로 관리 Why? 앱의 과도한 백그라운드 작업으로 사용자의 배터리가 빠르게 닳지 않도록 한다. How? 현재 사용 중인 앱에 대해서는 제한하지 않는다. Battery optimization App Standby Bucket 앱이 백그라운드로 내려갔을 때 여러 작업을 제한한다. 앱을 얼마나 최근에 자주 사용했는지 패턴을 파악하여 각 5가지의 앱 버킷에 위치시킨다. 앱 버킷의 중요도에 따라 시스템 리소스를 사용할 수 있도록 한다. ..
-
Android 13 - Programmable shaders프로그래밍/Android 2022. 6. 3. 11:56
New APIs from Android 13 RuntimeShader Android 13 adds support for programmable RuntimeShader objects, with behavior defined using the Android Graphics Shading Language (AGSL). Definition Programmerble shaders As you know OpenGL draws faster because of using GPU. It means we can do per-pixel lighting and other neat effects, like cartoon-cel shading at runtime. Vertices A set of independent point..
-
Android 13 - Granular media permissions프로그래밍/Android 2022. 5. 23. 16:42
Affected when? Application targets Android 13 Added new permissions Android 12 Android 13 New permissions Applications must request one or more new permissions instead of the READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE permissions. The set of permissions that you request depends on the type(s) of media that your app needs to access: Type of media Permission to request Remarks Images and pho..
-
Android 13 - FGS Task Manager프로그래밍/Android 2022. 5. 11. 19:11
What it is? FGS Foreground Service FGS Task Manager Regardless of target SDK version. Android 13 allows users to stop foreground services. 더보기 Foreground services Foreground services perform operations that are noticeable to the user. It show a status bar notification, so that users are actively aware that your app is performing a task in the foreground and is consuming system resources. The not..