Skip to content

Instantly share code, notes, and snippets.

@buildbro
Created February 1, 2019 00:16
Show Gist options
  • Save buildbro/944af9f0a5f317ae4cf28edcef323401 to your computer and use it in GitHub Desktop.
Save buildbro/944af9f0a5f317ae4cf28edcef323401 to your computer and use it in GitHub Desktop.
Request INTERNET permission in android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.firebaseemailpasswordexample">
<uses-permission android:name="android.permission.INTERNET" /> <!-- this line adds the required permission request -->
<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>
<activity android:name=".LoginActivity" />
<activity android:name=".RegistrationActivity" />
<activity android:name=".DashboardActivity"></activity>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment