본문 바로가기

Android Studio

(Android Studio) fragment 간단 사용법 출처 : http://recipes4dev.tistory.com/58 여기 들어가서 따라하면 간단하게 만들기 가능. 나중에 써먹어야지.. 더보기
(Android Studio) 내 앱에서 플레이스토어 실행하는 방법 구글 검색 : 안드로이드스튜디오 플레이스토어 실행 출처 : http://www.androidside.com/bbs/board.php?bo_table=B49&wr_id=159207 여기서 알려준 ★ 출처 http://developer.android.com/intl/ko/distribute/tools/promote/linking.html Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("market://details?id=com.example.android")); startActivity(intent); 웹사이트에서:http://play.google.com/store/apps/details?id=Android 앱에서:marke.. 더보기
(Android Studio) 이미지 뷰 setImageResource에 의한 메모리 leak 해결법 이미지 뷰 setImageResource에 의한 메모리 leak 해결 방법.. 많은 이미지를 보고 끄고 하다보면 앱이 느려질 때가 있고, 팅기기도 한다.(본인의 앱의 경우 팅겼다.) imageView.setImageResource(resID); 이런것을 썼으면.. 아래를 쓰자.. imageView.setImageDrawable(null); 을 써줘야 한다. 본인의 경우 백 버튼을 누르거나, 뒤로가기 버튼을 누를 때 사용함.. ============== 출처 : setImageResource and memory leak [closed] http://stackoverflow.com/questions/10200256/out-of-memory-error-imageview-issue/13415604#13415604 더보기
(Android Studio) 안드로이드 이미지뷰 확대 축소 방법 안드로이드 핀치줌 이용 출처 : http://ieung2.tistory.com/21 확대 축소 - 두 손가락으로 확대도 가능하며, 더블 탭으로 확대 가능, 축소는 되었다가 튕겨지면서 원상복귀함. 자매품 - fitXY 써주기 가능 mAttacher.setScaleType(ImageView.ScaleType.FIT_XY); 더보기
(Android Studio) Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. Please fix your application to end transactions in progress properly and to close the database when it is no longer needed. 출처 : http://www.androidside.com/plugin/mobile/board.php?bo_table=B49&wr_id=104213 try{ 커서이용~~~~~}catch(Excetion~~ ~~~){}finally{커서.close();} ----- 추가로db.close() 도 해준다. 더보기
(Android Studio) Failure [INSTALL_FAILED_VERSION_DOWNGRADE] Failure [INSTALL_FAILED_VERSION_DOWNGRADE] You're trying to install apk with a lower versionCode that is already installed. 출처 : http://202psj.tistory.com/799 해결 : 기존 스마트폰에 설치되어있는 기존 앱 삭제 후 다시 실행 더보기
(Android Studio) Navigation Drawer Activity 관련 예제 Navigation Drawer Activity 아래 출처 보고 사용해보려 했는데 어렵다. 뭔가 옛날 코드 느낌나고 fragment 안써봐서 힘드네.. 출처 : http://androidhuman.com/546 더보기
(Android Studio) 웹뷰 뒤로가기 구현과 종료버튼 클릭시 확인창 띄우기 웹뷰 뒤로가기 구현과 종료버튼 클릭시 확인창 띄우기 출처 : http://m.blog.naver.com/cosmosjs/220727412113 onkeydown @Override public boolean onKeyDown(int keyCode, KeyEvent event){ if((keyCode == KeyEvent.KEYCODE_BACK) && webView.canGoBack() ){ webView.goBack(); return true; } 더보기