Code example for Fragment

0
import com.newsblur.R; 
import com.newsblur.domain.UserDetails; 
import com.newsblur.network.domain.ActivitiesResponse; 
import com.newsblur.view.ActivitiesAdapter; 
 
public class ProfileActivityFragment extends Fragment {
 
	private ListView activityList;
	ActivitiesAdapter adapter;
	 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
	} 
	 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		final View v = inflater.inflate(R.layout.fragment_profileactivity, null);
		activityList = (ListView) v.findViewById(R.id.profile_details_activitylist);
		if (adapter != null) {
			displayActivities();