读书人

查询某个应用亟需那些权限

发布时间: 2013-10-08 17:08:58 作者: rapoo

查询某个应用需要那些权限

效果图:

查询某个应用亟需那些权限



代码实现:

1、MainActivity

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"    android:layout_width="match_parent"    android:layout_height="match_parent"    android:orientation="vertical"     android:background="@android:color/background_dark"    >    <Button        android:layout_width="wrap_content"        android:layout_height="wrap_content"        android:onClick="get"        android:text="获取权限" />    <ScrollView        android:layout_width="fill_parent"        android:layout_height="fill_parent" >        <LinearLayout            android:id="@+id/ll_list_permission"            android:layout_width="fill_parent"            android:layout_height="fill_parent" >        </LinearLayout>    </ScrollView></LinearLayout>


3、这个应用本身不需要任何权限,主要是用来查看其他应用的权限。。

读书人网 >移动开发

热点推荐