Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
pls help me out what to add more in manifest
HTML
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="adil.SMC.KUST"
    android:versionCode="1"
    android:versionName="1.0" >
 <uses-permission android:name="android.permission.CALL_PHONE"/>
    <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
    <uses-permission android:name="android.permission.CALL_PRIVILEGED"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity android:name=".SplashScreen" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity  android:name="android.intent.action.CALL_PRIVILEGED" >
  <intent-filter>
    <action android:name="android.intent.action.CALL_PRIVILEGED" />
    <category android:name="android.intent.category.DEFAULT" />
  </intent-filter>
       </activity>
    </application>

</manifest>

here is code where i start intent

Java
Intent callIntent = new Intent("android.intent.action.CALL_PRIVILEGED");
	callIntent.setData(Uri.parse("tel:" + "03401933560"));
	startActivity(callIntent);
Posted
Updated 17-Jun-15 15:51pm
v2

1 solution

You can't as it is Not for use by third-party applications According to http://developer.android.com/reference/android/Manifest.permission.html#CALL_PRIVILEGED[^]

This is probably owing to its protection group of signatureOrSystem, see http://developer.android.com/guide/topics/manifest/permission-element.html#pgroup[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900