This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add this template in Preferences > Java > Editor > Templates > New | |
// I stored this snippet with newLoader name, but you can use any name you want | |
// To use this loader your class should implements LoaderCallbacks<Cursor> | |
private static final int ${loaderName} = 0; | |
@Override | |
public Loader<Cursor> onCreateLoader(int id, Bundle args) { | |
switch (id) { | |
case ${loaderName}: |