Mobile 5

[iOS, css] ios 16.4 transform 문제 (하이브리드앱)

광야클럽 앱을 보면 저렇게 카드 뒤집는 애니메이션이 있다 내가 개발하는 하이브리드앱에서도 저거랑 비슷하게 동작하는 부분이 있다. 그러던 어느 날... 누군가 ios 16.4로 업데이트를 했고 카드가 돌아는 가지만 화면을 절반으로 나눴을 때 오른쪽은 터치가 먹히고 왼쪽은 터치가 안 먹히는 이상한 현상이 일어난 것임 .card { perspective: 1000px; transition: transform 1s; transform-style: preserve-3d; } .frontCard { backface-visibility: hidden; transform: rotateY(0deg); } .backCard { backface-visibility: hidden; transform: rotateY(180de..

Mobile 2023.03.29

[Android] Dialog에서 App 종료 시키기

SplashActivity 에서 dialog 생성 dialog = new UpdateDialog(SplashActivity.this, callback);​ UpdateDialog 생성자 - context 받아옴 public UpdateDialog(Context mContext) { super(mContext); this.mContext = mContext; } UpdateDialog에서 OwnerActivity 를 설정해줌 setOwnerActivity((SplashActivity)mContext); UpdateDialog 에서 getOwnerActivity 함수를 통해 App 종료 시킴 ActivityCompat.finishAffinity(getOwnerActivity()); System.exit(0);

Mobile 2021.09.06

[Android] Context

컨텍스트 관련 잘 정리된 글을 보고 간단히 정리 Understanding Context In Android Application What is Context? As there are different types of context in Android, we as an Android Developer often get confused about which context to use at which place. So let’s understand what are those, how to use those and when to use which one. blog.mindorks.com Context 컨텍스트는 무엇인가 어플리케이션의 현재 상태 activity, application 관련 정보를 가짐 - res..

Mobile 2021.08.20

[Android] configChanges 구성 변경 처리 방법

Activity가 직접 구성 변경을 처리할 시 Activity 종료 후 재시작 됨 (ex. 화면 가로 세로 전환 시 / 안드로이드 기기에 외부 키보드, 스캐너 등 부착 시 재시작) 이를 방지하기 위해 AndroidManifest.xml에 configChanges를 설정해줘야함 ExActivity 클래스에도 configChanges를 위한 코드 작성 필요 @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); } 구성이 변경 되면 onConfigurationChanged() 함수를 타고 Activity가 재시작 되지 않음 configChanges 옵션 및 설명 ..

Mobile 2021.08.17

[Android] 안드로이드 기본 정리

안드초보자의 안드 공부 Intent : 메시징 객체, 포넌트 간 통신 (작업요청) - 명시적 인텐트 : 앱 내 Activity 간 화면 전환 - 암시적 인텐트 : 외부 앱 전환 AndroidManifest.xml : 앱 필수 정보 설정 파일 - 패키지명, 컴포넌트,권한 등 안드로이드 4대 컴포넌트 - Activity: 화면 UI, 한번에 한 액티비티 └ Fragment: 화면 내 일부 UI, 분할 - Service : 긴 시간 백그라운드에서 작업 수행 ex. 음악재생 - Broadcast Receiver : 특정 이벤트 발생 시 짧은 시간 백그라운드에서 작업 수행 ex.알람, 위젯 - Content Provider : 어플리케이션 데이터 접근 관리 ex.사진, 연락처 등 접근 * service, broa..

Mobile 2021.08.13