Showing posts with label MainActivity). Here is my code: private void doS. Show all posts
Showing posts with label MainActivity). Here is my code: private void doS. Show all posts
on Saturday, August 30, 2014



restartLoader(0, data, this);


while using restartLoader like above I got an error:



The method restartLoader(int, Bundle, LoaderManager.LoaderCallbacks) in the type LoaderManager is not applicable for the arguments (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);
}