Push message를 받았을 때에 화면에 새로운 창을 띄워주기 위해 Activity를 만들었으나화면 잠금 상태에서 보이지 않는 문제가 있어 Window의 attributes 속성값을 변경하여 작업. 잠금 화면 상태에서도 설정한 화면이 잘 보이게 되었다. requestWindowFeature(Window.FEATURE_NO_TITLE); WindowManager.LayoutParams layoutParams = new WindowManager.LayoutParams(); layoutParams.flags = WindowManager.LayoutParams.FLAG_DIM_BEHIND | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.La..
INSERT INTO SELECT 이번 프로젝트에서 Primary Key를 여러 column으로 묶어 사용하는 바람에PK를 기존의 column에서 +1하여 사용해야 했다. query를 2번 해야되나 찾아보다가Insert query에서 한번에 해결 가능하네요. INSERT INTO SELECT SyntaxCopy all columns from one table to another table:INSERT INTO table2 SELECT * FROM table1 WHERE condition;Copy only some columns from one table into another table:INSERT INTO table2 (column1, column2, column3, ...) SELECT column1..
Base64 인코딩/디코딩을 하다보니 한글이 깨지는 문제가 있네요. 검색을 해보니 한글은 16bit라서 그냥 Encoding을 하는게 아니라 byte로 변환해서 Encoding을 해야 하네요.. * 한글 인코딩String base64Encoding = new String(Base64.encode(jSonBigInfo.toString().getBytes(), Base64.DEFAULT)); * 한글 디코딩base64Decoding은 위에서 인코딩한 Stringtry { String decodingStr = new String(Base64.decode(base64Encoding, 0), "UTF-8").trim(); } catch (UnsupportedEncodingException e) { e.printS..
- Total
- Today
- Yesterday
- nodejs
- Android
- 알림허용
- 난왜테스트가안될까
- 작업은했는데
- height변경
- areNotificationsEnabled
- #buildconofig
- onShowCustomView
- 웹뷰
- webview
- 인앱 업데이트
- 안드로이드
- base64
- Activity 크기 변경
- 새로올린테스트앱이안보이네
- Kotlin
- px to dp
- 알림소리묵음처리
- VolleyFileUploadRequest
- #gradle.properties
- SWIFT
- px -> dp
- 이미지파일공유
- FileDataPart
- 한글깨짐
- 음원파일재생
- 알림소리끄기
- 이미지파일보기
- app restart
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |