2
목록보기에서 HTML 형식의 텍스트를 표시하려고합니다. 어댑터에서 TextView를 사용했습니다. 이 어댑터 내 코드는 다음과 같습니다오류 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?
[Activity 컨텍스트 외부에서 startActivity()를 호출 할 수 있습니다] (http://stackoverflow.com/questions/3918517/calling-startactivity-from-outside-of-anactivitycontent) – duggu
묻기 전에 질문은 Google에서 검색을 수행하십시오. – duggu
외부 활동을 내 자신이라고 부르지 않으므로 setFlags (Intent.FLAG_ACTIVITY_NEW_TASK)를 설정할 의도가 없습니다 –