androidstudio添加权限


//进入manifest
xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.zhoukaolianxi">
 
  
//在这里添加需要的权限   我举几个例子
 
  

//联网权限

<uses-permission android:name="android.permission.INTERNET" />
//内存卡的读取权限
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
//判断网络的权限
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

< application android :allowBackup= "true" android :icon= "@mipmap/ic_launcher" android :label= "@string/app_name" android :roundIcon= "@mipmap/ic_launcher_round" android :supportsRtl= "true" android :theme= "@style/AppTheme"> < activity android :name= ".MainActivity"> < intent-filter> < action android :name= "android.intent.action.MAIN" /> < category android :name= "android.intent.category.LAUNCHER" /> intent-filter> activity> application>manifest>

你可能感兴趣的:(基础)