title: Activity chooser menu problem : Dialing a number
body: <p>This code makes call successfully from my app</p>
  
  <pre><code>Intent dialer = new Intent("android.intent.action.CALL_PRIVILEGED");
  mail.setData(Uri.parse("tel:65465446"));
  startActivity(dialer);
  </code></pre>
  
  <hr>
  
  <p>But when trying to use an activity chooser like this:</p>
  
  <pre><code>Intent dialer = new Intent("android.intent.action.CALL_PRIVILEGED");
  dialer.setData(Uri.parse("tel:65465446"));
  Intent chooser = null;
  chooser = Intent.createChooser(dialer,"Select Dialing Software..."); 
  startActivity(chooser);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/JxrmH.png" alt="chooser menu"></p>
  
  <p>it throws following Logcat error if I select <strong>Dialer</strong> option, whereas <strong>SkypeOut</strong> works just fine</p>
  
  <pre><code>E/AndroidRuntime(  384): FATAL EXCEPTION: main
  E/AndroidRuntime(  384): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL_PRIVILEGED dat=tel:65465446 flg=0x3000000 cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster } from ProcessRecord{44f4de30 384:com.dialer/10036} (pid=384, uid=10036) requires android.permission.CALL_PRIVILEGED
  E/AndroidRuntime(  384):    at android.os.Parcel.readException(Parcel.java:1247)
  E/AndroidRuntime(  384):    at android.os.Parcel.readException(Parcel.java:1235)
  E/AndroidRuntime(  384):    at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1298)
  E/AndroidRuntime(  384):    at android.app.Instrumentation.execStartActivity(Instrumentation.java:1373)
  E/AndroidRuntime(  384):    at android.app.Activity.startActivityForResult(Activity.java:2817)
  E/AndroidRuntime(  384):    at android.app.Activity.startActivity(Activity.java:2923)
  E/AndroidRuntime(  384):    at com.android.internal.app.ResolverActivity.onClick(ResolverActivity.java:190)
  E/AndroidRuntime(  384):    at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:874)
  E/AndroidRuntime(  384):    at android.widget.AdapterView.performItemClick(AdapterView.java:284)
  E/AndroidRuntime(  384):    at android.widget.ListView.performItemClick(ListView.java:3382)
  E/AndroidRuntime(  384):    at android.widget.AbsListView$PerformClick.run(AbsListView.java:1696)
  E/AndroidRuntime(  384):    at android.os.Handler.handleCallback(Handler.java:587)
  E/AndroidRuntime(  384):    at android.os.Handler.dispatchMessage(Handler.java:92)
  E/AndroidRuntime(  384):    at android.os.Looper.loop(Looper.java:123)
  E/AndroidRuntime(  384):    at android.app.ActivityThread.main(ActivityThread.java:4627)
  E/AndroidRuntime(  384):    at java.lang.reflect.Method.invokeNative(Native Method)
  E/AndroidRuntime(  384):    at java.lang.reflect.Method.invoke(Method.java:521)
  E/AndroidRuntime(  384):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
  E/AndroidRuntime(  384):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
  E/AndroidRuntime(  384):    at dalvik.system.NativeStart.main(Native Method)
  </code></pre>
  
  <p>manifest has <code>&lt;uses-permission android:name="android.permission.CALL_PRIVILEGED"/&gt;</code> added</p>
  
  <p>Thanks for your any help.</p>