0

ポンド文字を含む電話番号を使用してアンドロイドダイヤラーを起動したい。直接電話をかけたくないのですが、ダイヤラーを開いてユーザーに電話をかけさせます(この方法では、電話をかけるためにアプリで許可を要求する必要はありません)。これは可能ですか?

次のことを試しましたが、ダイヤラーを起動した後、番号が表示されませんでした。

View poundTaxi = this.findViewById( R.id.pound_taxi_big_button );
    poundTaxi.setOnClickListener( new View.OnClickListener() 
    {    
        @Override
        public void onClick( View v ) 
        {
            //Get the number from the URL
            Intent intent = new Intent(Intent.ACTION_DIAL);
            intent.setData(Uri.parse("tel:#8294"));
            startActivity(intent);

        }
    });
4

1 に答える 1