我在TextView上有我的电话号码,并且想要打开意图选择器"以选择要使用的应用程序(Skype,Viber ...),或者只是拨号以进行调用.
I have my phone number at TextView and want to open "Intent-picker" to choose application that I want to call with(Skype, Viber...) or just dial to call it.
Intent callIntent = new Intent(Intent.ACTION_CALL);立即打来电话,对我没有帮助.
Intent callIntent = new Intent(Intent.ACTION_CALL); calls instantly so it doesn't help me.
推荐答案我认为您正在寻找这样的东西:
I think you are looking for something like this:
Intent intent = new Intent(Intent.ACTION_DIAL); intent.setData(Uri.parse("tel:0123456789")); startActivity(intent);这将打开拨号器(如果安装了多个可以拨打电话的应用程序,则会打开选择器对话框),但会实际填充该号码.有关更多信息,请参见此答案.
This opens the dialer (or creates a chooser dialog if there are multiple apps installed which can place a phone call) with the number filled in, but does not actually start the call. See this answer for more info.
更多推荐
Android意向电话号码
发布评论