title: Android permission doesn't work even if I have declared it
body: <p>I'm trying to write code to send an SMS from an Android app, but when I try to send the SMS it sends me back the error:</p>
  
  <pre class="lang-none prettyprint-override"><code>09-17 18:37:29.974  12847-12847/**.**.****E/AndroidRuntime﹕ FATAL EXCEPTION: main
  Process: **.**.****, PID: 12847
  java.lang.SecurityException: Sending SMS message: uid 10092 does not have android.permission.SEND_SMS.
          at android.os.Parcel.readException(Parcel.java:1599)
          at android.os.Parcel.readException(Parcel.java:1552)
          at com.android.internal.telephony.ISms$Stub$Proxy.sendTextForSubscriber(ISms.java:768)
          at android.telephony.SmsManager.sendTextMessageInternal(SmsManager.java:310)
          at android.telephony.SmsManager.sendTextMessage(SmsManager.java:293)
          at **.**.****.MainActivity$3.onClick(MainActivity.java:70)
          at android.view.View.performClick(View.java:5198)
          at android.view.View$PerformClick.run(View.java:21147)
          at android.os.Handler.handleCallback(Handler.java:739)
          at android.os.Handler.dispatchMessage(Handler.java:95)
          at android.os.Looper.loop(Looper.java:148)
          at android.app.ActivityThread.main(ActivityThread.java:5417)
          at java.lang.reflect.Method.invoke(Native Method)
          at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
          at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
  </code></pre>
  
  <p>I checked but I have the permissions in the manifest, as follows:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.SEND_SMS"/&gt;
  &lt;uses-feature android:name="android.hardware.telephony"
      android:required="true"/&gt;
  
  &lt;application
      android:exported="true"
      android:allowBackup="true"
      android:icon="@mipmap/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme"&gt;
      &lt;activity
          android:name=".MainActivity"
          android:label="@string/app_name"
          android:screenOrientation="portrait"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>I searched the internet but all the errors were about the <code>&lt;uses-permission/&gt;</code> syntax, could you help me please?</p>