전체 글238 DialogFragment 뒷 배경 지우기 DialogFragment 보면 뒷배경에 검은 레이어가 깔려있다. 이걸 지우기 위해선 Window window = getDialog().getWindow(); window.clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND); 이렇게 해주면 된다 2021. 6. 10. startActivity 에서 Calling from outside of an Activity 에러 해결법 startActivity를 실행할때 Calling from outise of and Activity가 뜰 때가 있다. 정확한 코드는 이렇게 Calling --- from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 이럴 때는 Intent를 줄때 addFlags(Intent.FLAG_ACITIVITY_NEW_TASK)를 옵션으로 주면 잘 돌아간다. 예시는 아래와 같다 Intent intent = new Intent(context, cls); context.startActivity(intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)); 프.. 2021. 6. 3. Android webview lazy loading 시 느릴때 고려점 하이브리드 앱 개발할때 webview를 쓰는데 이때 lazy loading 할 때 느릴 수가 있다... 이때 "URL 주소" was loaded over HTTPS, but requested an insecure image. ~~ This request has been blocked; the content must be served over HTTPS.", source 이런류의 로그가 발생하면 진짜 엄청 버벅거린다 웹에서 HTTPS 관련 리소스만 사용하도록 변경하면 해결된다 (안드로이드 말고 웹 프로그램을 수정해야함) 2021. 6. 1. Android webview debugger 사용하기 하이브리드 앱을 개발하다보면 웹뷰를 디버깅해야할 때가 있다 그럴때 일단 크롬을 키고 주소창에 chrome://inspect/를 친다 그 후 Discover USB devices를 체크해준다 그리고 코드에서 WebView.setWebContentsDebuggingEnabled(true); 이렇게 해주고 run 한다 그러면 chrome://inspect 화면의 하단에 디바이스랑 앱이 뜨는데 inspect 버튼을 클릭하면 디버깅할 수 있다 2021. 5. 21. 이전 1 ··· 21 22 23 24 25 26 27 ··· 60 다음