11. 이렇게 하면 된대요!
Process.killProcess(Process.myPid());
System.exit(0);
((ActivityManager)getSystemService(ACTIVITY_SERVICE))
.restartPackage(getPackageName());
11
12. 그런데, 왜 종료해야 하나요?
안드로이드가 알아서 !
Low Memory Killer !
12
13. 종료에 대해서 신경 끄세요!
1
모바일 앱 사용 패턴은
최근 사용한 앱
소수의 앱을 반복적으로
2
Application은
항상 실행 중인 상태라는
경험을 제공
13
36. facebook 거저먹기 II
String uri = "fb://page/" + yourFBpageId;
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
try {
startActivity(intent);
} catch (ActivityNotFoundException ex) {
// facebook 공식 앱이 존재하지 않을 경우에는
// Web browser로 동일 화면을 보여준다.
String uri = "http://touch.facebook.com/pages/x/" + yourFBpageId;
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
startActivity(i);
}
36
38. 참고 하세요~
Title Action
프린트 com.rcreations.send2printer.print
소리 크기 조절 org.openintents.audio.action_volume_update
색깔 선택 org.openintents.action.PICK_COLOR
바코드 스캔 com.google.zxing.client.android.SCAN
Flickr photo com.google.android.photostream.FLICKR_PHOTO
Flickr stream com.google.android.photostream.FLICKR_STREAM
38