manifest文件添加了INTERNET的访问权限,就是不能访问网络,以前添加上权限就可以的可是现在就不行了,跟SDK有关吗,我换过SDK
谁能告诉我是为什么,跟name的大小写没关系,他是自动大写的,改了小写也不能访问网络
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lk.acynctasktest" >
<uses-permission android:name="ANDROID.PERMISSION.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
用个WebView测试了一下
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
webView = (WebView) findViewById(R.id.webView);
webView.loadUrl("http://www.baidu.com");
}