Code example for Fragment

Methods: getArgumentsgetLoaderManageronCreate

1
		return f;
	} 
	 
	@Override 
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		 
		Bundle args = getArguments();
		imageUrl = args.getString(EXTRA_IMAGE_URL);
		 
		getLoaderManager().initLoader(0, null, this);
	} 
	 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View v = inflater.inflate(R.layout.fragment_image, container, false);
		 
		imageView = (TouchImageView) v.findViewById(R.id.image);
		 
		return v;
Stop searching for code, let great code find you!  Add Codota to your java IDE