Breaking News
Home / Android / Android Issues / Cannot make phone call from Android.

Cannot make phone call from Android.

Issue

03-23 23:18:41.381: E/DesiZindagi(767): AudioPlayerScreen$2:104-Failed to invoke call
03-23 23:18:41.381: E/DesiZindagi(767): java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:xxxxxxxxxxx cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{41217e68 767:com.livrona.apps.radio/10044} (pid=767, uid=10044) requires android.permission.CALL_PHONE<!>03-23 23:18:41.381: E/DesiZindagi(767):      at android.os.Parcel.readException(Parcel.java:1327)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.os.Parcel.readException(Parcel.java:1281)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1624)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.Activity.startActivityFromChild(Activity.java:3458)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.Activity.startActivityForResult(Activity.java:3210)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.Activity.startActivity(Activity.java:3297)
03-23 23:18:41.381: E/DesiZindagi(767):      at com.livrona.apps.radio.activity.AudioPlayerScreen$2.onClick(AudioPlayerScreen.java:102)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.view.View.performClick(View.java:3460)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.view.View$PerformClick.run(View.java:13955)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.os.Handler.handleCallback(Handler.java:605)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.os.Handler.dispatchMessage(Handler.java:92)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.os.Looper.loop(Looper.java:137)
03-23 23:18:41.381: E/DesiZindagi(767):      at android.app.ActivityThread.main(ActivityThread.java:4340)
03-23 23:18:41.381: E/DesiZindagi(767):      at java.lang.reflect.Method.invokeNative(Native Method)
03-23 23:18:41.381: E/DesiZindagi(767):      at java.lang.reflect.Method.invoke(Method.java:511)
03-23 23:18:41.381: E/DesiZindagi(767):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
03-23 23:18:41.381: E/DesiZindagi(767):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
03-23 23:18:41.381: E/DesiZindagi(767):      at dalvik.system.NativeStart.main(Native Method)

Solution

Before an application tries to make your phone call make sure you have specified that as a permission in the AndroidManifest.xml file as below.

<uses-sdkandroid:minSdkVersion=”8″>

     <uses-permissionandroid:name=”android.permission.CALL_PHONE”></uses-permission>

</uses-sdk>

[pb_builder]

Check Also

Photo Upload in Android – Out of memory

Issue Use Case Trying to upload an Image from the Android Phone to a remote …

Advertisment ad adsense adlogger