[Android] 알림(Notification) 클릭이 먹히지않을 때 해결방법: PendingIntent , setFullScreenIntent
백그라운서비스 코드에서 알림을 보내고 있었다. 그러나 알림(Notification)을 클릭했을 때 앱의 메인화면이나 지정한 화면으로 이동처리하기위해 PendingIntent를 Notification 생성시 FullScreenIntent로 추가하였다. 그러나 알림(Notification)을 클릭해도 아무런 변화가 없었다....
[Android, 안드로이드] ViewPager 사용시 Fragment 동적 처리방법
ViewPager 사용시 Fragment 동적 처리 ViewPager와 Fragment를 사용하여 앱 개발시 리시버로 부터 전달받은 데이터를 토대로 Fragment에 데이터를 전달하여 UI를 변경해야할 경우 참고하세요. 첫번째로 어댑터 클래스를...
[루머] 애플 M1, M2, M1 Pro, M1 Max CPU(AP) 생산 단가 및 수율
M1 : 44$ 수율 89%M2 : 61$ 수율 86%M1 Pro : 109$ 수율 79%M1 Max : 224$ 수율 67% 출처: 애플 M1 Max 제조 단가가...
Android(안드로이드) 카운트다운 (CountDownTimer) 만드는 방법
CountDownTimer 클래스를 활용하라 자바 클래스 중에 CountDownTimer 라는 클래스를 활용하면 아주 쉽게 만들 수 있다. CountDownTimer 는 android.os 패키지에 있다. 샘플코드는 아래와 같다. 다이얼로그를 띄우고...
[Android, Java] 월 2자릿수로 맞추는 방법( 일자 및 시간 두자리 수 )
월데이터 두자릿수 맞추기 개발을 하다 보면 월에 대한 값을 가져올 때, 1월 2월 3월 4월 처럼 한 자리 수 일때 두 자리 수로 맟추기 위한...
모바일 앱 보안 취약점 진단 후기
안드로이드 모바일 앱 보안 취약점 진단 컨설팅 대박 황당한 경험을 하게 되었다. 회사 앱을 우리 회사의 고객사에서 안랩(Ahnlab)에 취약점 진단 컨설팅을 의뢰했다. 그리고 그 취약점에 대한...
[Android] Buildconfig 클래스 활용
안드로이드 Buildconfig 활용 앱을 빌드할때 테스트 환경과 실서버 환경에 따라 다른 값을 적용해야할 때가 있다. 가령, 로그를 남기거나, 테스트URL 과 실서버 URL이 다를 때 분기용도로...
[MS-SQL] 쿼리(Query)에서 열 이름(column names)을 가져오는 방법
쿼리에서 열 이름(column names)을 가져오기 엑셀 다운로드를 위한 쿼리를 작성하였는데 엑셀 헤더값으로 들어갈 컬럼을 동적으로 가져와야하는 상황이 생겼다. 해결방법은 SYS 테이블을 이용하는 것이다. SELECT name...
[MSSQL] 소수점관리 반올림(ROUND), 올림(CEILING), 내림(FLOOR), FORMAT함수를 사용한 0 자릿수 채우기, 문자열 반복 REPLICATE 함수
MSSQL 소수점관리 반올림, 올림, 내림 관련하여 ROUND, CEILING, FLOOR 함수에 대한 사용법을 알아보자. 다음과 같이 소숫점 자리를 제외한 정수값을 리턴받는 자바스크립트 예시가 있다. const rate...
[MS-SQL] 쿼리 조회 시간이 오래 걸리는 쿼리에 대한 성능 분석하는 방법 (SET STATISTICS IO, SET STATISTICS TIME )
쿼리에 대한 성능 분석하는 방법 쿼리(Query) 실행시간이 오래 걸리는 쿼리가 있을 때 실행시간을 줄이기 위해(오래걸리는 문제를 해결) 쿼리의 성능을 분석해야하는 상황이 발생한다. 프로파일러 및 실행...