본문 바로가기

728x90
반응형

분류 전체보기

(149)
안드로이드 Clean Architecture 구현하기 Clean Architecture 위의 Uncle Bob Clean Architecture(CA)는 오늘날 많은 어플리케이션의 핵심 Architecture가 되었습니다. Dependecy Rule 하위 계층으로 갈수록 상위 계층을 몰라야 합니다. 내부 원의 어떤것도 외부 원의 어떤것에 대해 전혀 알 수 없습니다. 특히, 외부 원에 선언된 이름(class, function, variable 등)은 내부 원에 있는 코드에서 언급되지 않아야 합니다. CA의 각 계층 Entities : 비지니스 규칙(business rule) (예: 근무시간에 따라 급여를 계산하는 공식, 직원에 대한 가장 기본적인 데이터가 들어있는 POJO) Use cases : 단순히 실행 가능한 작업. Intereactor라고도 함. an..
오드로이드/안드로이드 화면 돌리기 adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0 자동회전 고정 후 adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1 value:i:0~3의 값(회전 방향)을 입력해 주면 된다.
nRF52 long button click milliseconds time 수정 bsp_config.h에 있는 BSP_LONG_PUSH_TIMEOUT_MS 수정
안드로이드 스튜디오 Warning : It seems you're using 'idea.system.path' property... It seems you're using 'idea.system.path' property to specify the location of the caches directory. In 2020.1, default locations of application directories were changed. For compatibility, the IDE picked the old location of logs, but to avoid any ambiguity in the future (and to get rid of this warning) please set 'idea.log.path' property, too. Shift 키를 두번 눌러 Search Everywhere Dialog를 연다. Edit Cus..
안드로이드 Manifest intent-filter 동적으로 비활성화하기 앱을 런처로 만들어주는 intent-filter를 추가하였습니다. 특정 빌드버전에서는 이를 비활성화 하고 싶었습니다. 위의 intent-filter를 따로 빼서 activity-alias에 넣어줍니다. 다만, 위의 한줄도 같이 넣어주어야 런처 홈화면으로 작동하더라는.. 시작 Activity의 onCreate에서 다음과 같이 추가해주어 활성화/비활성화가 가능합니다. 비활성화 packageManager.setComponentEnabledSetting( ComponentName(packageName, "$packageName.AliasMainActivity"), PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.DONT_KILL_APP ) 활성화..
오드로이드 부팅시 하드커널 로고 없애기 https://wiki.odroid.com/odroid-c4/application_note/bootlogo_c4 위의 파일형식으로 이미지를 만들어(이름 똑같이!) 덮어쓰기했습니다. 다만 gz형식으로 압축해야하는데, 그냥 이미지파일만 넣어도된다고하여, 기존에있던 gz파일을 없애고 이미지파일을 넣어주었습니다. PS C:\platform-tools> adb shell odroidn2:/ # cd /odm odroidn2:/odm # rm boot-logo.bmp.gz odroidn2:/odm # exit PS C:\platform-tools> adb push boot-logo.bmp /odm PS C:\platform-tools> adb reboot
오드로이드 부팅시 안드로이드 로고 없애기 안드로이드 로고 없애기 $ adb remount $ adb shell # vi /system/build.prop debug.sf.nobootanimation=1 vi편집기로 파일을열어 debug.sf.nobootanimation=1 한줄을 추가했습니다.
안드로이드 RxBle 사용하기, 예제 안드로이드에서의 ble 예제를 올렸었는데요. [Android/통신] - [안드로이드 Kotlin] BLE(Bluetooth Low Energy) 통신 예제 [Android/Architecutre] - [안드로이드 Service] MVVM구조에서 BluetoothLE Service 사용하기 이번 포스트에서는 Rx를 사용하는 편리한 RxBle 라이브러리를 소개합니다. RxAndroidBle Polidea/RxAndroidBle An Android Bluetooth Low Energy (BLE) Library with RxJava2 interface - Polidea/RxAndroidBle github.com 위의 라이브리러리를 사용해 반응형으로 Ble를 구현한것으로, RxJava에 생소하다면 어려울 수 있습..

728x90
반응형