본문 바로가기

2018/04

[Android] adb shell 에서 문자 보내기 아래는 기본 명령어 형태 이다.adb shell am start -a android.intent.action.SENDTO -d sms:+1-222-333-444 --es sms_body 'text' --ez exit_on_sent true" 위 내용만 보면 'SENDTO' action을 보내는 데, 번호와 텍스트 데이터를 보내고, 메세지 기본앱이 종료 되었을 때메세지가 보내지는 명령어 이다. ##한 사람이 아니라 여러명에게 보낼 경우adb shell am start -a android.intent.action.SENDTO -d sms:+1-222-333-444,+1-555-666-7777 --es sms_body "내용" --ez exit_on_sent true ## 문자 내용에 개행 문자를 넣고 싶을 .. 더보기
[Android][lombok]Annotation processors must be explicitly declared now Android Studio 3.0 이상을 사용하다가 아래와 같은 에러가 발생할 경우가 있다.Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration. - lombok-1.12.4.jar (org.projectlombok:lombok:1.12.4)Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.. 더보기
[Android] Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Android Studio 3.0을 사용하다가 아래와 같은 에러가 나왔다. Information:Gradle: Executing tasks: [:app:assembleDebug, :app:assembleDebugUnitTest]Information:Gradle: BUILD FAILED in 4sInformation:Kotlin: Kotlin JPS plugin is disabledInformation:2018-04-19 오후 4:07 - Compilation completed with 5 errors and 0 warnings in 8s 510msError:Gradle: failed to create directory 'android-testing-master\unit\BasicSample-kotlinA.. 더보기
[정규표현식] '~' (Tilde) 를 찾고 싶을 때. 혹시, 문자열에서 '~' 문자를 제거 해야 한 일은 없었나?정규 표현식이나 조건문으로 찾고자 해도 매칭이 되지 않는다. 아무리 찾아봐도 먼가 쉬운방법이 없다가 결국 이 방법으로 하기로 했다... re.sub(u"\u223C", '', '2017 ~ 2018') Tilde 유니코드 값이 '\u223C' 이다. 혹시나 쓸데 없이 시간 보내고 있으신 분들을 위해 공유 한다. 더보기