일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- git
- cloud-firestore
- OZViewer
- BottomSheetDialog
- JNI
- socket-client
- 워치
- 오즈뷰어
- mosquitto
- socket-server
- Java8
- Firebase
- NoSuchMethodError
- Kotlin
- firebase-database
- ActivityResult-API
- Android
- Dva
- git-push
- Galaxy Watch
- mqtt
- ozd
- gradle
- hung-up
- socket.io
- Flavors
- AWS
- firebase-storage
- TIZEN
- google-login
- Today
- Total
목록전체 글 (109)
Hyeyeon blog
1. ObjectAnimator 사용을 위해 Java1.8 설정 // build.gradle(app) android { compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = "1.8" } } 2. Fade In (나타나는 효과) val fadeOut = ObjectAnimator.ofFloat(imageView, "alpha", 0f, 1f) fadeOut.duration = 1500 fadeOut.start() 3. Fade Out (사라지는 효과) val fadeOut = ObjectAnimator.ofFloat(i..
1. ssh 명령어를 통해 ec2 인스턴스에 접속 ssh -i {.pem 파일 경로} ubuntu@{ec2 퍼블릭 IPv4 주소 혹은 DNS} 2. 비밀번호 설정 sudo passwd root New password: Retype new password: passwd: password updated successfully 2. ssh 설정 변경 vim /etc/ssh/sshd_configPermitRootLogin yesPasswordAuthentication yes 3. ssh 재시작 - 오류 메세지가 발생한다면, sudo sshd -t 명령어로 sshd_config 내용에 이상이 없는지 확인해볼 것 service ssh restart 4. root로 ec2 접속 ssh root@{ec2 퍼블릭 IPv..
1. 유저정보 파일 생성 vim /etc/mosquitto/pwdInfo // /etc/mosquitto/{파일 명}user1:pwd1234 // {유저 명}:{비밀번호} 형태로 입력 2. 비밀번호 암호화 mosquitto_passwd -U /etc/mosquitto/pwdInfo 3. mosquitto.conf 내용 변경 vim /etc/mosquitto/mosquitto.confallow_anonymous false password_file /etc/mosquitto/pwdInfo 4. mosquitto 서버 재시작 service mosquitto restart 위 명령어가 동작하지 않을 경우, 아래와 같이 재실행 killall mosquittomosquitto> 1605692796: mosquitt..
AndroidManifest.xml 에 READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE 퍼미션을 선언해주었음에도 java.io.FileNotFoundException: .. open failed: EACCES (Permission denied) 에러가 발생하는 경우, AndroidManifest.xml의 에 아래의 내용을 추가 * Android 11 의 경우 참고 [Android 11의 저장소 업데이트] Android 11의 저장소 업데이트 | Android 개발자 | Android Developers Android 11에서는 플랫폼을 더욱 강화하여 외부 저장소의 앱 및 사용자 데이터를 보다 안전하게 보호합니다. 미리보기 출시에서는 지난해 Android Dev Summi..
1. selector.xml 생성 2. CheckBox 혹은 RadioButton의 button에 적용
1. JsonArray String -> 2차 배열 변환 val json: String = "[[0, 0, 0, 0], [1, 1, 1, 1], [2, 2, 2, 2], [3, 3, 3, 3]]" val jsonArray: JsonArray = JsonParser().parse(json) as JsonArray for (arr1 in jsonArray) { for (arr2 in arr1.asJsonArray) { print(arr2) } println() } 0000 1111 2222 3333 2. JsonArray String -> 3차 배열 변환 val json: String = "[[[0, 0, 0, 0], [0, 0, 0, 0] ], [[1, 1, 1, 1], [1, 1, 1, 1]]]" val..
1. dp -> px dp * Resources.getSystem().displayMetrics.density 2. px -> dp px / Resources.getSystem().displayMetrics.density