当前位置:操作系统 > 安卓/Android >>

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))

作者“xiaofeishouxiao”
 

补充:移动开发 , Android ,
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,