Code example for ListFragment

Methods: getLoaderManager, onActivityCreated, setHasOptionsMenu

-1
	private PluginAdapter mAdapter;
	private List<ApplicationInfo> mPluginsList;
 
	@Override 
	public void onActivityCreated(Bundle savedInstanceState) {
		super.onActivityCreated(savedInstanceState);
 
		setHasOptionsMenu(true);
 
		getLoaderManager().initLoader(0, null, this);
	} 
 
	@Override 
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.plugins_manager, container, false);
		return view;
	} 
 
	@Override 
	public Loader<List<ApplicationInfo>> onCreateLoader(int id, Bundle args) {
Experience pair programming with AI  Get Codota for Java