Android

1. Scoped Storage란? 구글 플레이스토어에 앱을 업로드 하기 위해서는 Target SDK 30 이상을 맞춰야하는 이슈가 생겼다. SDK 30 이상부터는 기존 접근 권한 과는 다르게 파일에 접근해야 하는 이슈가 생겼는데 다음과 같다. (1) API Levels SDK 28 이하 WRITE_EXTERNAL_STORAGE READ_EXTERNAL_STORAGE MANAGE_EXTERNAL_STORAGE SDK 32 이하 READ_EXTERNAL_STORAGE SDK 33 이상 READ_MEDIA_IMAGES READ_MEDIA_VIDEO READ_MEDIA_AUDIO (2) Permission 요청 SDK 28이하 에서는 권한 요청을 모두 해야 하고, 유저로부터 승인을 받아야 한다. 하지만 "Sc..
1. Action 알림(Notification)에는 버튼(Action)을 추가할 수 있고, 여러가지 이벤트를 추가하여 간편하게 사용할 수 있다. Intent readPushIntent = new Intent(context, ActionPushReceiver.class); readPushIntent.setAction("ReadPushIntent"); readPushIntent.putExtra("notificationId", notificationId); PendingIntent readPushPendingIntent = null; if (android.os.Build.VERSION.SDK_INT >= 31) { readPushPendingIntent = PendingIntent.getBroadcast(co..
1. 예제(1) TwoWeekSecondEx1class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { val onClick : () -> Unit = {} PrimaryButton(enabled = true, text = "확인", onClick = onClick) } }}//실습 1@Composablefun PrimaryButton( onClick: () -> Unit, modifier: Modifier =..
1. 예제 (1) TowWeeFirstEx1 class MainActivity : ComponentActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContent { } } } //2주차 1번째수업 실습1 @Composable fun DeveloperTypeSurvey() { val developers =listOf( Developer(R.string.developer_type_android), Developer(R.string.developer_type_ios), Developer(R.string.developer_type_web), Developer(R.string...
🔔벨91
'Android' 카테고리의 글 목록 (2 Page)