mWebView.setWebViewClient(new WebViewClient() { public boolean shouldOverrideUrlLoading(WebView view, String url) { view.loadUrl(url); return true; } /** * 웹페이지 로딩이 시작할 때 처리 */ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { } /** * 웹페이지 로딩중 에러가 발생했을때 처리 */ @Override public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) { ..
1. JNI http://loadtodream.blog.me/30083906275http://loadtodream.blog.me/30083850205 http://loadtodream.blog.me/30083782001 (c++ 코드 안드로이드로 마이그레이션 하기) http://blog.naver.com/heehow/140119828316http://newperio.blog.me/20118440572 c,c++ dll 사용하기http://newperio.blog.me/20116489036 예제http://newperio.blog.me/20116488998 (JNI 정리)http://blog.naver.com/dythmall/30097733634 (함수 이름 줄이기) http://blog.naver.com..
private void addShortcut(Context context) { Intent shortcutIntent = new Intent(); shortcutIntent.setAction(Intent.ACTION_MAIN); shortcutIntent.addCategory(Intent.CATEGORY_LAUNCHER); shortcutIntent.setClassName(context, getClass().getName()); shortcutIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK|Intent.FLAG_ACTIVITY_CLEAR_TOP); Parcelable iconResource = Intent.ShortcutIconResource.fromContext( th..
프리퍼런스 선언SharedPreferences prefs = getSharedPreferences("Jaja", MODE_PRIVATE);SharedPreferences.Editor editor = prefs.edit(); 값 저장하기editor.putBoolean("start", false);editor.commit(); 반드시 commit 을 해줘야 값이 저장된다! 값 불러오기boolean AppStart = prefs.getBoolean("start", true);"Key" , DefaultBoolean
기타문의는 댓글주세요
try {HttpClient client = new DefaultHttpClient();String postURL = id.url + "/android_memo_insert.jsp";HttpPost post = new HttpPost(postURL);List params = new ArrayList();params.add(new BasicNameValuePair("name", id.id));params.add(new BasicNameValuePair("title", title.getText().toString()));params.add(new BasicNameValuePair("content", content.getText().toString())); UrlEncodedFormEntity ent = ne..
이미지크기가 달라도 스크린에 꽉 찬 화면으로 보여주고 싶을때 사용한다.간단히 소스만 첨부 webView = (WebView)findViewById(R.id.adverWeb);webView.setVerticalScrollBarEnabled(false);webView.setVerticalScrollbarOverlay(false);webView.setHorizontalScrollBarEnabled(false);webView.setHorizontalScrollbarOverlay(false);webView.setInitialScale(100);webView.loadDataWithBaseURL(null,creHtmlBody(IMAGE_URL), "text/html", "utf-8", null); public Str..