WebView의 캐쉬와 쿠키를 삭제하는 방법 1. cookie를 지우기 위한 clearCookies() 추가@SuppressWarnings("deprecation") public static void clearCookies(Context context) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) { Log.d(C.TAG, "Using clearCookies code for API >=" + String.valueOf(Build.VERSION_CODES.LOLLIPOP_MR1)); CookieManager.getInstance().removeAllCookies(null); CookieManager.getInstance().flush(..
boolean hasPermission = requestStoragePermission(); if (hasPermission) { BoxStore boxStore = MyObjectBox.builder().baseDirectory(Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS)).build(); // boxStore = MyObjectBox.builder().androidContext(MoyeoApplication.this).build(); if (BuildConfig.DEBUG) { new AndroidObjectBrowser(boxStore).start(this); } ((MoyeoApplication) ge..
AlertDialog에 스타일 적용하기 1. style에 alertDialog style 적용하기2. builder에 위 정의한 style 적용하기private void showDownloadPgmPopup() { android.app.AlertDialog.Builder builder = new android.app.AlertDialog.Builder(getActivity(),R.style.AlertDialog); ... .. . }3. 결과