TextView android:autoLink=";电话“;调用android.intent.action.VIEW导致ActivityNotFoundException

TextView android:autoLink=";电话“;调用android.intent.action.VIEW导致ActivityNotFoundException,android,android-intent,Android,Android Intent,我想显示电话号码,点击它应该可以打电话 在我的布局中: <TextView android:id="@+id/text_phone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:autoLink="phone" /> 不知道为什么它会发送意向动作视图,而应该发送动作调用 我的android版本是4.2.

我想显示电话号码,点击它应该可以打电话

在我的布局中:

 <TextView
        android:id="@+id/text_phone"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:autoLink="phone" />
不知道为什么它会发送意向动作视图,而应该发送动作调用

我的android版本是4.2.2

如果我遗漏了什么,请告诉我

这样做

mobileTextView.setText(Html.fromHtml(" +98999999999") );
如果添加了这个类,还要检查您的清单

还加

 android:autoLink="phone"

尝试使用带有sim卡的真实设备进行测试。。!它可以执行调用任务。

您尚未在清单中声明活动@PrakashIts不是找不到的我的活动,ActivityNotFoundException是关于操作的\u查看,dat电话:XXXXX不,它没有链接!也不叫行动,也不叫活动
mobileTextView.setText(Html.fromHtml(" +98999999999") );
 android:autoLink="phone"