목록DEVELOPE (113)
🌱 dreaming DiNO
class Counter { constructor() { this.counter = 0; } increase() { this.counter++; console.log(`counter : ${this.counter}`); if(this.counter %5 === 0){ console.log('yo!') } } } const coolCounter = new Counter(); function printSomething() { console.log('yo!') } coolCounter.increase(); // counter : 1 coolCounter.increase(); // counter : 2 coolCounter.increase(); // counter : 3 coolCounter.increase()..
$ adb install 'app-release.apk' adb: failed to install app-release.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI] TestOnly 앱으로 만들어지면 아래와 같이 -t옵션을 주어 설치를 해야 합니다. $ adb install -t 'app-release.apk' TestOnly 앱으로 만들어지면 프레임워크 레벨에서 권한 없이 특정 부분을 디버깅하는 등의 도움을 받을 수 있습니다. 대신 릴리즈 앱으로 쓰일 수 없습니다. Android Studio는 apk를 만들 때 AndroidManifest.xml에서 testOnly 속성을 보고 TestOnly apk를 빌드할지 결정합니다. 아래처럼 true로 설..
$ adb push app-debug.apk /data/local/tmp/com.beanandyu.myapplication com.android.ddmlib.AdbCommandRejectedException: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set Try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device. Error while Installing APK 위의 에러는 Android Device에서 USB Debugging을 허용하지 않았을 때에 발생. 해결방법은 Android device의 usb 연결을 뺏..

Glide란? 구글에서 공개한 이미지 라이브러리 가장 성능이 좋은 이미지 로딩 라이브러리로 알려져 있다. 기본적으로 사진 로딩과 동영상, gif 파일 로딩까지 지원한다. Gradle 추가 gradle에 Glide 라이브러리를 추가해준다. (https://github.com/bumptech/glide) build.gradle(Module:app) dependencies { implementation 'com.github.bumptech.glide:glide:4.10.0' annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0' } Glide 기본 사용법 val imageView: ImageView = findViewById(R.id.imageView..

🥺 문제 발생 private fun setViewData(data : MissingPersonEntity){ binding.image.setImageURI(data.image?.toUri()) binding.id.text = data.id.toString() binding.name.text = data.title.toString() binding.desc.text = data.description.toString() } data 값으로 뷰바인딩 작업을 해주는데, URI 만 세팅이 되지 않음 Why? 여기서 URI 와 URL 의 차이점을 알고 넘어가야함! URI (Uniform Resource Identifier) URI는 특정 리소스를 식별하는 통합 자원 식별자를 의미한다. 웹 기술에서 사용하는 논리적 ..
정규표현식으로 Integer 추출 다음 코드는 정규표현식으로 Integer만 추출하는 코드입니다. replace()에 정규표현식과 정규표현식에 해당하는 문자와 변경할 String을 전달합니다. fun main(args: Array){ val str = "aaa1234, ^&*2233pp" val number = str.replace("[^0-9]".toRegex(), "") println(number) }
// 로컬 git branch -d feature/삭제할branch명 // 서버 (remote) git push origin --delete 삭제할branch명
1. PNG, JPG -> SVG https://image.online-convert.com/convert-to-svg Online SVG image converter Convert your image to the SVG format with this free online image converter. Additionally add effects to obtain high quality images. image.online-convert.com 2. SVG -> XML https://svg2vector.com/ SVG to Vector Drawable Converter – Convert SVG, PNG, JPEG, GIF images to Android VectorDrawable XML resource ..

PostgreSQL PostgreSQL은 확장 가능성 및 표준 준수를 강조하는 객체-관계형 데이터베이스 관리 시스템의 하나 입니다. 오픈소스 RDBMS로서 사용율은 Oracle, MySQL, Microsoft SQL에 이어 4위를 기록하고 있으며 특히 MacOS 서버의 경우에는 PostgreSQL이 기본 데이터베이스 입니다. brew install postgresql => 나는 14.1 깔아짐 설치가 완료되었습니다. To start postgresql : 이라며 친절하게 시작하는 방법을 알려주네요, 그대로 입력합니다. brew services start postgresql 설치가 완료되었으니, 버전을 확인 해 보겠습니다. postgres -V 이제 DB에 접속 해 보겠습니다. https..
adb 명령어 보기 adb help 기기(ip address) 연결 adb connect ip address:port number 연결 해제 adb disconnect 연결된 기기 보기 adb devices 연결된 기기의 package list 보기 adb shell pm list packages -f apk 설치 adb install -r apk파일경로 * -r : 설치할 apk가 존재할경우 덮어쓰기 adb install -r ./WatchFaceStudio/com.hae.~~~~.apk adb install app_name.apk 특정 device에 설치 adb -s 192.168.1.36 install -r ./WatchFaceStudio/~~~~.apk apk 삭제 adb uninstall pac..