Add internet permission in AndroidManifest.xml in android studio

In this post, we will see how to add internet permission in android studio.

When you are working on app which wants to access internet, you need to add extra permission in androidManifest.xml else your application won’t be able to access internet.
So you need to put below code in AndroidManifest.xml file to access internet in your app.

Why do you need to put extra permission to access internet in your app?

You need to add this permission for user security. Whenever you download an app from play store, it asks for permission that application will use.
Lets say you are downloading an application which must not use internet at all and if you don’t require any permission for that, it might be secretly putting data on some server. You need to explicitly put internet permission in AndroidManifest.xml, so user of your app will be aware of it.

How to add internet permission in AndroidManifest.xml in android studio.

Step 1 :

Go to app -> src -> main -> AndroidManifest.xml.

Step 2:

Copy following code:

Step 3:

Put it in AndroidManifest.xml

Done, we have added internet permission to AndroidManifest.xml. Your application must be able to access internet now.

Related Posts

  • What is == in java
    01 December

    What is == in java

    Table of ContentsWhat is meaning of == in JavaCode example of ==Object equality using equal to ==The difference between == and equals== in EnumConclusion In this tutorial, we will learn what is == in Java as it is a common lexeme that we will use while developing applications. The == lexeme can be confused with […]

  • Python if and
    01 December

    How to Use and Operator with if Statement in Python

    Table of ContentsThe and Operator and if Statement in PythonApplication of if Statement with the and Operator in PythonConclusion In python, we frequently used boolean expressions with conditional statements to implement business logic. In this article, we will discuss how we can use if statements with the AND operator to implement conditional logic in our program. […]

  • NoneType Python
    29 November

    NoneType in Python

    Table of ContentsWhat is NoneType in Python?Properties of NoneType Objects in PythonApplications of NoneType Objects in PythonConclusion In python, we have different types of objects such as integers, strings, and floating-point numbers to represent data. In addition to these, we also have a NoneType object in python to represent the absence of data or to […]

  • Python check for null
    17 November

    How to check for null in Python

    Table of ContentsHow to check if a variable is NULL in Python?Using the is operator to check if a variable is NULL in Python.Using the if condition to check if a variable is NULL in Python.Using the not equal to operator to check if a variable is NULL in Python. This article demonstrates the different […]

  • Split String with multiple delimiters
    17 November

    Split String With Multiple Delimiters In Python

    Table of ContentsSplitting a string in PythonWays to split a string in PythonUsing the split() and replace() functionsUsing the regular expressions In this post, we will see how to split String with multiple delimiters in Python. Splitting a string in Python When we talk about splitting a string, it means creating a collection of sub-strings […]

  • Funny Kahoot names
    17 November

    600+ Funny, Dirty, Inappropriate Names for Kahoot

    Table of ContentsFunny Names for KahootKahoot: A Brief OverviewHow to Change your Name on Kahoot?Funny Names for Kahoot: Overall EditionFunny Kahoot Names: Girls EditionFunny Names For Kahoot: Boys EditionFunny Names for Kahoot: Unique EditionFunny Troll Names for KahootFunny Inappropriate Names: Dirty Kahoot namesGood Kahoot NamesFunny Inappropriate Names: Set 2Frequently Asked Questions About Funny Names for […]

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe to our newletter

Get quality tutorials to your inbox. Subscribe now.