본문 바로가기 메뉴 바로가기

김형섭의 개발공간

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

김형섭의 개발공간

검색하기 폼
  • - (40)
    • 안드로이드 스튜디오 (4)
    • Java (2)
    • Android (22)
      • library (5)
    • Ios (0)
    • Unity (2)
    • Git (1)
    • 알고리즘 (3)
    • 기타 (6)
    • React Native (0)
    • Node.js (0)
  • 방명록

Android (22)
안드로이드 액티비티간 데이터전달 (인텐트 기초)

android activity data sharing intent Activity간 데이터를 전달(공유)하려면 intent를 사용해야 한다. # 다음 Activity로 데이터를 전달 할 때 현재 Activity(A)에서 새로운 Activity(B)를 실행시킬 때 intent에 data를 put해서 새로운 Activity(B)로 전달하고 새로운 Activity(B)에서 데이터를 받는다.Intent intent = new Intent(AlphaActivity.this, BravoActivity.class); intent.putExtra("key","value"); startActivity(intent);[A Activity에서 intent에 key, value형식으로 데이터를 저장하고 B Activity로 ..

Android 2016. 4. 6. 23:17
Android out of memory error [Glide]

out of memory exceptionGlide library 사용 시 이미지 캐시로 인한 메모리부족 현상이다.우선 어플리케이션 메모리heap을 늘려준다, Manifest에 android:largeHeap="true" 자신의 BaseApplication 클래스에 public class BaseApplication extends Application {@Override public void onLowMemory() { super.onLowMemory(); Glide.get(this).clearMemory(); } @Override public void onTrimMemory(int level) { super.onTrimMemory(level); Glide.get(this).trimMemory(level..

Android 2016. 4. 6. 15:59
이전 1 2 3 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
링크
TAG
more
«   2025/10   »
일 월 화 수 목 금 토
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바