Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6472087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:18:04+00:00 2026-05-25T06:18:04+00:00

I am trying to make a phone call on a list item click. Here

  • 0

I am trying to make a phone call on a list item click.

Here is my code for the onclick listener:

    lv.setOnItemClickListener(new OnItemClickListener() { 
         public void onItemClick(AdapterView<?> parent, View view, 
             int position, long id) { 

             Intent intent = new Intent(Intent.ACTION_CALL);

             intent.setData(Uri.parse("tel:5173237929"));

             startActivity(intent); 
         } 
       });

And here is the permission i have in my manifest:

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

Why this is not working is beyond me…. Im creating the intent, and starting it, and then it force closes when i test it??? I feel like you guys on stack can solve this no prob =)

Edit:

    [2011-08-27 09:43:00 - HelloListView] ------------------------------
    [2011-08-27 09:43:00 - HelloListView] Android Launch!
    [2011-08-27 09:43:00 - HelloListView] adb is running normally.
    [2011-08-27 09:43:00 - HelloListView] Performing com.hlv.kk.HelloListView activity launch
    [2011-08-27 09:43:04 - HelloListView] WARNING: Application does not specify an API levelrequirement!
    [2011-08-27 09:43:04 - HelloListView] Device API version is 8 (Android 2.2.2)
    [2011-08-27 09:43:05 - HelloListView] Application already deployed. No need to reinstall.
    [2011-08-27 09:43:05 - HelloListView] Starting activity com.hlv.kk.HelloListView on device 04036CA51900D00F
    [2011-08-27 09:43:05 - HelloListView] ActivityManager: Starting: Intent {  act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]          cmp=com.hlv.kk/.HelloListView }

Edit #2:

    09-02 20:25:06.874: INFO/ActivityManager(6146): Starting activity: Intent { act=android.intent.action.CHOOSER cmp=android/com.android.internal.app.ChooserActivity (has extras) }
    09-02 20:25:07.030: INFO/ActivityManager(6146): Starting activity: Intent { act=android.intent.action.CALL dat=tel:5173237929 flg=0x3000000 cmp=com.android.phone/.OutgoingCallBroadcaster }
    09-02 20:25:07.045: WARN/ActivityManager(6146): Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:5173237929 flg=0x3000000 cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{44a5f890 8386:com.hlv.kk/10051} (pid=8386, uid=10051) requires android.permission.CALL_PHONE
    09-02 20:25:07.061: DEBUG/AndroidRuntime(8386): Shutting down VM
    09-02 20:25:07.061: WARN/dalvikvm(8386): threadid=1: thread exiting with uncaught exception (group=0x4001d7e0)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386): FATAL EXCEPTION: main
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386): java.lang.RuntimeException: Unable to start activity ComponentInfo{android/com.android.internal.app.ChooserActivity}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:5173237929 flg=0x3000000 cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{44a5f890 8386:com.hlv.kk/10051} (pid=8386, uid=10051) requires android.permission.CALL_PHONE
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.os.Handler.dispatchMessage(Handler.java:99)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.os.Looper.loop(Looper.java:123)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread.main(ActivityThread.java:4627)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at java.lang.reflect.Method.invokeNative(Native Method)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at java.lang.reflect.Method.invoke(Method.java:521)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at dalvik.system.NativeStart.main(Native Method)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386): Caused by: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.CALL dat=tel:5173237929 flg=0x3000000 cmp=com.android.phone/.OutgoingCallBroadcaster } from ProcessRecord{44a5f890 8386:com.hlv.kk/10051} (pid=8386, uid=10051) requires android.permission.CALL_PHONE
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.os.Parcel.readException(Parcel.java:1247)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.os.Parcel.readException(Parcel.java:1235)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:1298)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.Instrumentation.execStartActivity(Instrumentation.java:1373)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.Activity.startActivityForResult(Activity.java:2817)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.Activity.startActivity(Activity.java:2923)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at com.android.internal.app.ResolverActivity.onCreate(ResolverActivity.java:95)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at com.android.internal.app.ChooserActivity.onCreate(ChooserActivity.java:54)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
    09-02 20:25:07.100: ERROR/AndroidRuntime(8386):     ... 11 more
    09-02 20:25:07.147: WARN/ActivityManager(6146):   Force finishing activity android/com.android.internal.app.ChooserActivity
    09-02 20:25:07.147: WARN/ActivityManager(6146):   Force finishing activity com.hlv.kk/.HelloListView
    09-02 20:25:07.647: WARN/ActivityManager(6146): Activity pause timeout for HistoryRecord{44ad1490 android/com.android.internal.app.ChooserActivity}
    09-02 20:25:07.819: INFO/ActivityManager(6146): No longer want com.google.android.gallery3d (pid 8199): hidden #16
    09-02 20:25:10.210: INFO/Process(8386): Sending signal. PID: 8386 SIG: 9
    09-02 20:25:10.217: INFO/ActivityManager(6146): Process com.hlv.kk (pid 8386) has died.
    09-02 20:25:10.217: INFO/WindowManager(6146): WIN DEATH: Window{44a05de8 com.hlv.kk/com.hlv.kk.HelloListView paused=false}
    09-02 20:25:10.264: WARN/InputManagerService(6146): Got RemoteException sending setActive(false) notification to pid 8386 uid 10051
    09-02 20:25:12.092: INFO/WindowManager(6146): Setting rotation to 3, animFlags=0
    09-02 20:25:12.116: INFO/ActivityManager(6146): Config changed: { scale=1.0 imsi=310/4 loc=en_US touch=3 keys=2/1/2 nav=2/2 orien=2 layout=34 uiMode=17 seq=45}
    09-02 20:25:12.163: INFO/UsageStats(6146): Unexpected resume of com.android.launcher while already resumed in com.android.launcher
    09-02 20:25:13.186: DEBUG/dalvikvm(6224): GC_EXPLICIT freed 11518 objects / 579136 bytes in 69ms
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:18:05+00:00Added an answer on May 25, 2026 at 6:18 am

    I forgot to add the permission =/

    My mistake lol

    But for ppl who stumble on this page, if your having these same problems make sure you have added:

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

    To your manifest file right above the closing manifest tag

        </manifest>
    

    At the end of your manifest file

    Sorry everybody else for wasting ur time

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: how to make phone call by using objective c? I am trying
I am trying to make a phone call link out of a phone number
I am trying to make a table cell that when tapped calls a phone
So I'm trying to make a custom user control for a Windows Phone 7
I am fairly new to iOS development and trying make a simple app which
Working with a listbox in windows phone 7 I am trying to make an
I am trying to make a text file on an android phone and be
I'm trying to make use of a java api for google voice (available here:
I have written following code to make a call also have set permissions in
I am trying to make an app that can shutdown/reboot your phone at the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.