본문 바로가기

Android

안드로이드 스튜디오 cannot resolve symbol r :: 강력한 해결법 File > Invalidate Caches / Restart > Invalidae and Restart Clean이랑 Rebuild 해봐도 에러 해결이 안된다.하지만 Invalidate Caches 한 방이면 해결이 된다. If you see this error after moving java files or directories to other locations, then you can guarantee that Android Studio has gotten confused. And guess what? undo-ing those actions doesn't fix the problem.So you try a clean, but that doesn't work.And restarting doesn't.. 더보기
[JAVA] input char array to special chars /* 역슬래시를 활용할 것 */ char special[] = { '~', '`', '!', '@', '#', '$', '%', '&', '^', '*', '(', ')', '-', '_', '=', '+', '|', '[', ']', '{', '}', ';', ':', '\'', '"', ',', '.', '', '\\', '/', '?' }; 더보기
같은 프로젝트로 두 앱 동시에 띄우기 Running same project on two application on the same time 1. 프로젝트 파일 복사한다. Copy project file> 예시에서는 Ediya 앱을 복사하여 Bbq로 이름을 바꿔주었다. 2. 패키지명을 바꾼다. Change package name> 우클릭, Refactor, Rename 3. 매니페스트 파일의 패키지명을 바꾼다. Change package name in manifest.xml> 앱 이름도 바꾸고 싶으면 android:label도 변경한다. 4. app 레벨의 build.gradle 파일의 패키지명을 바꾼다. Change package name in build.gradle by 'app' 더보기
[color] Hex Opacity Values 100% — FF95% — F290% — E685% — D980% — CC75% — BF70% — B365% — A660% — 9955% — 8C50% — 8045% — 7340% — 6635% — 5930% — 4D25% — 4020% — 3315% — 2610% — 1A5% — 0D0% — 00 #FF000000 은 100% 블랙#80000000 은 50% 블랙 ㅇㅋㄷㅋ? 더보기
[Why] 영구적인 data를 저장할 때, onPause()가 안전하다. - onPause() 콜백 메서드는 액티비티가 background로 가려고하는 상태이다.- 실행중이던 계산이나 애니메이션을 꼭 중단하도록 구현해야 한다.- onPause() 콜백 메서드가 return 되어야 새 액티비티가 활성화될 수 있으므로,Android SDK는 foreground 액티비티를 만들기 전에 이 콜백이 return하는 것을 기다린다.- onPause()가 호출된 이후를 Killable 상태라 하는데, 이는 시스템이 언제든지 액티비티를 강제 종료할 수 있다는 뜻이다.강제 종료된 프로그램은 onStop()과 onDestroy()가 호출되지 않으므로,onPause()가 호출된다고 보장되는 최후의 메서드인 것이고, 프로세스가 완전히 되찾아진다.그래서 영구적인 data를 파일에 저장할 수 있는 마.. 더보기
Worker Thread - AsyncTask AsyncTask 사용전과 사용후 비교샷tigerwoods.tistory.com AsyncTask flownitya.gitbooks.io 더보기
Android Thread Main Thread & Worker Threadhttp://www.intertech.com/Blog/android-non-ui-to-ui-thread-communications-part-4-of-5 더보기
Android Process process - thread - component process priorityprocess importance hierarchy http://www.techotopia.com/index.php/Understanding_Android_Application_and_Activity_Lifecycles 더보기