如何覆盖onClick for TextView链接?-安卓



我在ListView中有一个TextView。

文本视图中有链接,我有这个属性集:

android:autoLink="web"

我引用了ArrayAdapter中的TextView。当我点击链接时,它会抛出以下错误:

android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?

我正在初始化带有应用程序上下文的ArrayAdapter

最新更新