title: Need BLUETOOTH permission : i don't have permission in some intent Android Studio
body: <p>I am trying to create an app with a MainActivity that opens other activities. When I use bluetooth for activities other than the Main, it gives me this kind of error.
  While in my MainActivity this is not a problem.</p>
  <p>It tells me that I don't have the permissions :</p>
  <pre><code>2022-01-07 18:50:38.881 9466-9466/com.example.myapplication_dynahers E/AndroidRuntime: FATAL EXCEPTION: main
      Process: com.example.myapplication_dynahers, PID: 9466
      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myapplication_dynahers/com.example.myapplication_dynahers.Calibration_Activity}: java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10446 nor current process has android.permission.BLUETOOTH.
          at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3782)
          at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3961)
          at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
          at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
          at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
          at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2386)
          at android.os.Handler.dispatchMessage(Handler.java:107)
          at android.os.Looper.loop(Looper.java:213)
          at android.app.ActivityThread.main(ActivityThread.java:8178)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)
       Caused by: java.lang.SecurityException: Need BLUETOOTH permission: Neither user 10446 nor current process has android.permission.BLUETOOTH.
  </code></pre>
  <p>while my Manifest.xml specifies the permissions:</p>
  <pre><code>&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      package=&quot;com.example.myapplication_dynahers&quot;&gt;
  
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_CONNECT&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_SCAN&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_ADMIN&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BlUETOOTH&quot; /&gt;
      &lt;uses-permission android:name=&quot;android.permission.BLUETOOTH_ADVERTISE&quot; /&gt;
  
      &lt;application
          android:allowBackup=&quot;true&quot;
          android:icon=&quot;@mipmap/ic_launcher&quot;
          android:label=&quot;@string/app_name&quot;
          android:roundIcon=&quot;@mipmap/ic_launcher_round&quot;
          android:supportsRtl=&quot;true&quot;
          android:theme=&quot;@style/Theme.MyApplication_DynaHERS&quot;&gt;
          &lt;activity
              android:name=&quot;.Active_Bluetooth_Activity&quot;
              android:exported=&quot;true&quot; /&gt;
          &lt;activity
              android:name=&quot;.Reset_Force_Activity&quot;
              android:exported=&quot;true&quot; /&gt;
          &lt;activity
              android:name=&quot;.Calibration_Activity&quot;
              android:exported=&quot;true&quot; /&gt;
          &lt;activity
              android:name=&quot;.Graph_Activity&quot;
              android:exported=&quot;true&quot; /&gt;
          &lt;activity
              android:name=&quot;.Using_Version_Activity&quot;
              android:exported=&quot;true&quot; /&gt;
          &lt;activity
              android:name=&quot;.Modify_Interval_Activity&quot;
              android:exported=&quot;true&quot;
              android:screenOrientation=&quot;portrait&quot; /&gt;
          &lt;activity
              android:name=&quot;.MainActivity&quot;
              android:exported=&quot;true&quot;
              android:screenOrientation=&quot;portrait&quot;&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name=&quot;android.intent.action.MAIN&quot; /&gt;
  
                  &lt;category android:name=&quot;android.intent.category.LAUNCHER&quot; /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  <p>Where could the problem come from?</p>