I was using this, to DISPLAY IMAGES FROM THE INTERNET but it throws an error as below: 04-12 13:45:05.337: E/AndroidRuntime(27897): Caused by: android.view.View
If you would like to do this job in fragment, you should call UI thread from activity in fragment.
getActivity().runOnUiThread(new Runnable() { public void run(){ ... //your job } });
@canerkaseler