본문 바로가기

일기장

(72)
[Android]TOAST 알림 CUSTOM 변경하기 이번 포스트는 Android studio 에서 가장 많이 사용한다고 말할수있는 Toast 알림에 관련된 포스팅이다. Toast 알림의 경우 아래와 같이 많이 사용하곤한다. Toast.makeText(act, "알림창아떠라!", Toast.LENGTH_SHORT).show(); 이 TOAST 알림창을 변형하는 방법을 알아보자. 1. Toast 를 변형할 화면을 구성한다. -> 아래 밑줄친 TextView의 배경화면은 사용자 마음대로 넣어주시면됩니다. 2. 함수 선언 public void setCustomToast(){ LayoutInflater inflater = getLayoutInflater(); View layout = inflater.inflate(R.layout.layout_custom_toast..
[Android]Path.op() not supported 해결 Renderding Problem Path.op() not supported 위 사항은 Android Studio Gradle build 종속성과 관련된 문제입니다. implementation 'com.google.android.material:material:1.2.0-alpha05' -> implementation 'com.google.android.material:material:1.2.0-alpha02' 로 다운그레이드 해주시면 됩니다. implementation 'com.google.android.material:material:1.2.0-alpha06' 만약 다운그레이드 해도 적용되지 않을경우 SDK버전을 참고 하여 위버전으로 버전을 올려주셔도 해결하실수있습니다. ※파트너스 활동을 통해 일정액..
[Android]javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 오류해결 javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:Trust anchor for certification path not found. E/CONSCRYPT: ------------------Untrusted chain: ---------------------- == Chain0 == Version: 3 AuthorityKeyIdentifier: 418301680148d8c5ec454ad8ae177e99bf99b05e1b8018d61e1 SubjectKeyIdentifier: 4160414260abb09202ab9c6951242867312418672d96a6e 안드로이드 개발중 갑자기 위와 같은 오류를 본적이 ..
[Android] did not contain a valid NDK and and couldn't be used did not contain a valid NDK and and couldn't be used 에러 안드로이드 개발 시 Execution failed for task , ':app:stripDebugDebugSymbols'. did not contain a valid NDK and and couldn't be used 위와 같은 에러가 발생할 경우가 있다. 원인 -> 안드로이드 프로젝트 내부의 NDK 경로가 바뀌어서 발생한 문제이다 해결방법 -> local.properties (SDK Location) -> ndk.dir= 설정된 NDK 경로를 바뀐 NDK 경로로 변경하여준다. * 대부분 아래와같은 경로로 되어있기 때문에 사용자 각각의 경로에 맞추어 세팅하면 된다. C\:\\Users\\HO(사용자컴퓨터..
[Android]a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade 에러 a failure occurred while executing com.android.build.gradle.internal.tasks.workers$actionfacade 에러가 발생할경우!! 1. invalidate cache and restart 실행하기 * 그래도 안된다면 import가 안되어있는 액티비티가 있는지 확인 하여 본다.
[Android]default activity not found 해결방법 에러내용 : default activity not found 위 Android Studio 에러의 경우 많은 해결방법이 나와있다. 1. General - Lanunch 항목에서 ... 클릭하여 제일 처음 진입 Activity를 설정해 주는 방법. 2. IDE Cashes 비우기 FIle - Invalidate Caches/Restart 하는방법 3. Build - Clean Project or Rebuild Project 하는 방법 하지만 필자의 경우 세가지 방법으로 모두 해결할 수가 없었다. ※ 이럴 경우 Manifests - AndroidManifest 로 진입하여 중복으로 등록이 된 Activity 파일을 찾아서 삭제하여 준다. 1시간 삽질 하였지만 고작 문제는 Activity 파일 중복문제.. 다..
[Android]For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// gi.. 안드로이드 오류 내용 For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b uild.gradle file. 번역 >>..
[Android] 외부 어플리케이션 실행하기 외부 어플리케이션 실행하기 관련 포스팅 1. 나의 핸드폰에 있는 어플리케이션 리스트를 가지고 와서 패키지명을 비교하여 어플리케이션 설치 유무를 판단한다. public boolean getPackageListCheck() { boolean isExist = false; PackageManager pkgMgr = getPackageManager(); List mApps; Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory(Intent.CATEGORY_LAUNCHER); mApps = pkgMgr.queryIntentActivities(mainIntent, 0); try { for (int i = 0; i < mApp..