android代码power off 以及特定文件格式的施用
android代码power off 以及特定文件格式的使用
如果想用代码实现power off 目前可能来说只有PowerManager.goToSleep()
.
但是这个不是标准的vapi'
如果你想自定义一个文件名的扩展名或者要制定特定文件 需要
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.xyz" /> </intent-filter>
android:pathPattern 就是制定特殊的格式