当前位置: 代码迷 >> Android >> android 重新启动
  详细解决方案

android 重新启动

热度:515   发布时间:2016-05-01 17:23:12.0
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))
  相关解决方案