2
我想在列表视图中显示Html格式的文本。我在适配器中使用了一个TextView。 这是我的适配器代码:Click on TextView超链接时出错
txtBody.setText(Html.fromHtml(myHtmlString));
txtBody.setLinksClickable(true);
txtBody.setMovementMethod(LinkMovementMethod.getInstance());
的问题是:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
可能重复[调用startActivity()从外部的活动上下文](http://stackoverflow.com/questions/3918517/calling-startactivity-from-outside-of-an-activity-context) – duggu 2014-10-31 13:59:44
之前询问问题请在Google上进行一些搜索。 – duggu 2014-10-31 14:00:20
我不调用外部活动我自己,所以我没有意图设置setFlags(Intent.FLAG_ACTIVITY_NEW_TASK) – 2014-10-31 14:04:59