【问题标题】:what permissions should i add in mainfest.xml我应该在 manifest.xml 中添加什么权限
【发布时间】:2017-11-24 06:51:58
【问题描述】:
what permissions should i add in mainfest.xml of adroid studio for following app. Please help me. i am new developer.

https://play.google.com/store/apps/details?id=aa.bb.waqas.myapplication&hl=en

告诉我我需要添加它的所有权限。

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="aa1.bb.waqas.myapplication">
    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="IELTS Preparation In One Day"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".splash">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".t1" />
        <activity android:name=".MainActivity" />
        <activity android:name=".t2" />
        <activity android:name=".t3" />
        <activity android:name=".t4" />
        <activity android:name=".t5" />
        <activity android:name=".t6" /><activity android:name=".t7" />
    </application>

</manifest>

【问题讨论】:

  • 我们怎么知道?
  • 在您的清单中尝试此权限。

标签: android permissions


【解决方案1】:

由于您分享了应用程序的链接,因此只需要两个权限

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

并且您可能需要根据您的要求添加更多权限。

【讨论】:

  • 但我也使用了 1) 横幅添加 2) 插页式添加 3) PDF 文件
  • 不需要任何额外的权限,除了互联网权限对于横幅添加和插页式添加。如果您正在使用诸如读取或写入之类的 PDF 存储,那么您需要添加以下权限:
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-06-22
  • 2021-09-21
  • 2016-06-22
  • 2016-05-26
  • 1970-01-01
相关资源
最近更新 更多