글
약 186 라인쯤에 위와 같은 부분을 찾을 수 있는데 위처럼 주석을 걸어주자.private final void shutdownIfNoPower() {
// shut down gracefully if our battery is critically low and we are not powered.
// wait until the system has booted before attempting to display the shutdown dialog.
/*
if (mBatteryLevel == 0 && !isPowered() && ActivityManagerNative.isSystemReady()) {
Intent intent = new Intent(Intent.ACTION_REQUEST_SHUTDOWN);
intent.putExtra(Intent.EXTRA_KEY_CONFIRM, false);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mContext.startActivity(intent);
}
*/
}
private native void native_update();
private synchronized final void update() {
//native_update();
boolean logOutlier = false;
long dischargeDuration = 0;
...
'알짜정보 > Android' 카테고리의 다른 글
Android 한글 초성검색 어플 CranixDialer! (227) | 2010.06.10 |
---|---|
안드로이드 UBI FS 를 위한 커널셋팅 (794) | 2010.05.27 |
이클립스에 안드로이드 소스코드 연결하기 (693) | 2010.03.22 |
우분투에 이클립스 ADT 설치하기 (33) | 2010.03.21 |
안드로이드 소스 컴파일 하기 (48) | 2010.03.21 |
RECENT COMMENT