I have a listview where every single element of the list has a textview. This textview has following properties:
chatText.setMovementMethod(LinkMovementMethod.getInstance()); Linkify.addLinks(chatText, Linkify.ALL);
now all links are appearing properly but when i click on them the app is force stopping and displaying following errors:
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
how to solve this error??