Skip to content Skip to sidebar Skip to footer

Starting The Incallscreen Activity

I am doing an application which utilize the incoming call screen of Android with the follow code: Intent inCallIntent = new Intent(); inCallIntent.setClassName('com.android.phone',

Solution 1:

Caused by: java.lang.SecurityException: Permission Denial: starting Intent { cmp=com.android.phone/.InCallScreen } from ProcessRecord{449ae8e0 1495:....callmesoon/10099} (pid=1495, uid=10099) requires null

this is the root cause, and it arises due to double entry of application component in the application Manifestfile. you might have declared InCallScreen activity more than one time in your manifest file. Just double check it.!!

Solution 2:

Add this to AndroidManifest.xml

android.permission.CALL_PHONE

or

android.permission.CALL_PRIVILEGED

Also aren't you missing the phone number to dial usually you set this in the intents data. You need to setup your Intent like this if you want to make a call or use these other Intent actions

Intentintent=newIntent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:+15554441212"));
startActivity(intent);

Post a Comment for "Starting The Incallscreen Activity"