android 重启

这个经过验证:
     PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE); 
     pm.reboot("test");
天蝎座2010-12-31 15:16:50 [举报]

Android.mk:

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := user
LOCAL_SRC_FILES := $(call all-java-files-under, src)
LOCAL_PACKAGE_NAME := RebootTest
LOCAL_CERTIFICATE := platform
include $(BUILD_PACKAGE)
# Use the folloing include to make our test apk.
include $(call all-makefiles-under,$(LOCAL_PATH))

你可能感兴趣的:(android)