0

I want to make a music application, in which On click song, it will do call activity in background instead display dial pad then call. btnFullTrack.setOnClickListener(new OnClickListener(){

        public void onClick(View v) {

            try {


                Intent callIntent = new Intent(Intent.ACTION_CALL);

                callIntent.setData(Uri.parse("tel:123456789"));

                startActivity(callIntent);


            } catch (ActivityNotFoundException activityException) {


                }

        }
    });
4

2 回答 2

0

There is no way. The only way is to open the dial pad through the Intent ACTION_CALL

于 2013-05-06T07:10:58.830 回答
0

If your want to place a phone call and skip the in-call screen you can't do it (I think it's for security reasons..)

于 2013-05-06T07:18:49.920 回答