Dev332 switch 의 버튼 비활성화는 setEnabled(boolean) switch 의 버튼 비활성화는 setEnabled(boolean) Android Switch 버튼의 비활성화는 setEnabled() 메서드로 처리를 한다. 2018. 1. 5. 디자인 패턴 - Strategy Pattern 디자인 패턴 - Strategy Pattern Interface 와 구현체들그리고 Interface 를 Delegate 한 ClassDelegate 한 클래스를 사용하는 Main Class 강의 : https://www.inflearn.com/course/%EC%9E%90%EB%B0%94-%EB%94%94%EC%9E%90%EC%9D%B8-%ED%8C%A8%ED%84%B4/ 2018. 1. 2. Listview 관련 Error - The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread Listview 관련 ErrorThe content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a background thread, but only from the UI thread 상황 : 현재 SM-T813 디바이스 에서 발생. 성능이 더 좋은 디바이스(SM-T815NO)에서는 발생하지 않는 이슈. 해결 : 참고 블로그의 말대로 UI 쓰레드를 돌리면서 진행. 다만, 이런 문제도 디바이스 성능이 뛰어나면 나오지 않는걸 보고, 디바이스가 너무 좋으면 코드가 개판이래도 돌아가니깐, 내가 짠 코드가 문제 없구나를 생각할.. 2017. 12. 27. 카메라 앱 열면서 앱 중지 android.os.FileUriExposedException 카메라 앱 열면서 앱 중지android.os.FileUriExposedException 현상 : 카메라 앱 열면서 앱 중지 원인 : targetSdkVersion 을 올렸기 때문에 발생 (23 -> 26)해결 : 이전대로 targetSkdVersion 을 낮추던지 아래와 같이 파일 접근 방법을 바꾸던지Uri photoURI = FileProvider.getUriForFile(context, context.getApplicationContext().getPackageName() + ".my.package.name.provider", createImageFile()); E/AndroidRuntime: FATAL EXCEPTION: mainProcess: com.iofit.tablet, PID: 30756an.. 2017. 12. 22. Android ConnectivityManager.getNetworkInfo() NullPointerException ConnectivityManager.getNetworkInfo() NullPointerException 디바이스 : 태블릿 Galaxy Tab S2 (SM-T813)OS : AndroidOS Version: 7.0특징 : SM-T815N0 은 괜찮음. ConnectivityManager connectivityManager = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo mobile = connectivityManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); NetworkInfo wifi = connectivityManager.ge.. 2017. 12. 21. trouble processing "javax/xml/XMLConstants.class" / 'com.squareup.retrofit2:converter-simplexml:2.1.0' trouble processing "javax/xml/XMLConstants.class" 에러 문제아마도 이게 문제'com.squareup.retrofit2:converter-simplexml:2.1.0' 이슈 : Release 빌드가 되지 않는 문제가 생겼다. Error:trouble processing "javax/xml/XMLConstants.class":Error:Ill-advised or mistaken usage of a core class (java.* or javax.*)Error:when not building a core library.Error:This is often due to inadvertently including a core library fileError:in your a.. 2017. 12. 18. 이전 1 ··· 42 43 44 45 46 47 48 ··· 56 다음