internet permission in android app
internet permission in android app

How to add internet permission in AndroidManifest.xml in Android Studio

इस post में हम सीखेंगे की how to add internet permission in AndroidManifest Android studio.

जब हम किसी app पर work कर रहे हो और हम अपने application में internet access चाहते है तो हमे androidManifest.xml में extra permission set करना पड़ता है नही तो हमारा application internet नहीं access कर पायेगा |

इसलिए हमे AndroidManifest.xml file में इस code को रखना होगा जिससे android application internet को access कर सके |

<uses-permission android:name="android.permission.INTERNET" />

Why do you need to put permission to access the internet in the android app?

User की security के लिए आपको इस internet permission को जोड़ना होता है । जब भी आप play store से कोई android app download करते हैं, तो यह internet use करने की permission मांगता है कि यह application internet use करेगा।

यदि कोई हमारा application install करता है तो android उससे internet use करने की permission मांगता है जिससे user को पता होता है कि ये app internet use करेगा| यदि हम user की permission के बिना internet का उसे करके data को send या receive कर रहे है तो यह illegal होता है |

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

1st Step –

सबसे पहले हम androidManifest.xml file में जाते है –

app > src > main > AndroidManifest.xml.

2nd Step –

सबसे पहले हम INTERNET type करना start करते है तो हमे वहा suggestion दिखाई देता है, नहीं तो हम AndroidManifest.xml file में इस code को paste कर देते है –

<uses-permission android:name="android.permission.INTERNET" />

इसके पश्चात हमारा AndroidManifest.xml कुछ इस तरह दिखाई देगा –

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.GeeksPartner.permissionApp">
    <uses-permission android:name="android.permission.INTERNET" />
 
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".HelloWorldActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
 
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
 
</manifest>
 

Conclusion –

इस प्रकार हम अपने android Application में internet permission को add कर सकते है.

Other resources –

Thank you ! – Geeks Partner

Meet Shashwat Mishra, a passionate IT professional whose love for technology knows no bounds. With a keen eye for innovation and a knack for staying ahead of the curve, Shashwat dives deep into the ever-evolving world of IT, uncovering new trends, techniques, and technologies that drive progress. As the curator of a tech enthusiast blog, Shashwat shares his insights, expertise, and discoveries with fellow aficionados, sparking engaging discussions and igniting curiosity. With a finger on the pulse of the industry, Shashwat's articles are not just informative, but also inspiring, motivating others to explore, experiment, and embrace the limitless possibilities of the digital realm. Follow Shashwat on LinkedIn to embark on a journey of tech enlightenment and stay updated on the latest developments in the fast-paced world of IT.

4 Comments

Leave a Reply