restartLoader(0, data, this);
while using restartLoader
like above I got an error:
The method
restartLoader(int, Bundle, LoaderManager.LoaderCallbacks)
in the typeLoaderManager
is not applicable for thearguments (int, Bundle, MainActivity)
.
Here is my code:
private void doSearch(String query){
Bundle data = new Bundle();
data.putString("query", query);
getSupportLoaderManager().restartLoader(0, data, this);
}
private void getPlace(String query){
Bundle data = new Bundle();
data.putString("query", query);
getSupportLoaderManager().restartLoader(1, data, this);
}
0 comments:
Post a Comment