title: How can I call emergency number programmatically
body: <p>I can call general phone number by following codes:</p>
  
  <pre><code>Intent intent = new Intent(Intent.ACTION_CALL);
  intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  intent.setData(Uri.parse("tel:" + phoneNumber));
  startActivity(intent);  
  </code></pre>
  
  <p>in manifest file, I add permission like below:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PRIVILEGED"/&gt;
  </code></pre>
  
  <p>as android's doc explain <strong>CALL_PRIVILEGED</strong> like this:<em>Allows an application to call any phone number, including emergency numbers, without going through the Dialer user interface for the user to confirm the call being placed.Not for use by third-party applications.</em></p>
  
  <p>And my app is located at <strong>packages/apps</strong>, so it is not a third-party application, right? So, why I still go straight to dial pad not the dialing user interface every time I call emergency number like '112'?</p>