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 8372143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:20:55+00:00 2026-06-09T14:20:55+00:00

I am trying to make a call from my Application on a click of

  • 0

I am trying to make a call from my Application on a click of a image
and it is here by done like this But it is Giving me Exception ActivityNotFoundException
How Should i handle this .. ?

    Image.setOnClickListener(new View.OnClickListener() {


                    @Override
                    public void onClick(View v) {
                        if("N/A".equals(Number)){
                            MsgBox(ctx,"Could not call because there is no number ");
                        }
                        else{
                            fnCallMobile("+91"+Number);
                        }
                    }
                });

And my fnCallMobile function is :

public void fnCallMobile(String PhoneNo){
        ConfirmMsgBox(this,"Are you sure you want to call number "+PhoneNo,PhoneNo);
    }
    public void ConfirmMsgBox(Context ctx,String msg,final String sPhoneNo){
        final AlertDialog.Builder dialog=new AlertDialog.Builder(this);
        dialog.setTitle("Emkay Eagle");
        dialog.setMessage(msg);
        dialog.setCancelable(false);
        dialog.setPositiveButton("Yes", new DialogInterface.OnClickListener(){
            public void onClick(DialogInterface dialog, int id) {
                dialog.dismiss();
                fnCall(sPhoneNo);
            }

        });
        dialog.setNegativeButton("No", new DialogInterface.OnClickListener(){
            public void onClick(DialogInterface dialog, int which){
                return;
            }
        });
        AlertDialog alert = dialog.create();
        alert.setIcon(R.drawable.icon);
        alert.show();
        return;
    }

And lastly my fnCall Function

public void fnCall(String PhoneNo){
        try{
            Intent callIntent=new Intent(Intent.ACTION_CALL);
            callIntent.setData(Uri.parse("Tel:"+PhoneNo));
            startActivity(callIntent);
        }
        catch(ActivityNotFoundException ex){
            sResponse=ex.toString();
        }
    }
  • 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-06-09T14:20:57+00:00Added an answer on June 9, 2026 at 2:20 pm
     Change 
    
    `callIntent.setData(Uri.parse("Tel:"+PhoneNo));` 
    
     to 
    
    `callIntent.setData(Uri.parse("tel:"+PhoneNo));`
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to call a batch file from an application, but I want
I am trying to make a call with this script, but am getting a
I am trying to make a web service call from PHP to a SOAP
I am trying to make a call to a Parent class method from a
I'm trying to make a call that might throw an exception due to server
I'm trying to make an external call to the google maps application on the
When trying to make a web service (hosted on a different server) call from
I'm trying to make this 2-player web game application using Spring MVC. I have
I am trying to make a jQuery get() AJAX call, but the response is
I'm trying to make a RESTful api call from the android emulator (using android

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.