I try to find a method for setting text for SearchView but I can't find anything? does any one know any method for doing this ? for example something like this
searchView.setText("blah blah");
I try to find a method for setting text for SearchView but I can't find anything? does any one know any method for doing this ? for example something like this
searchView.setText("blah blah");
//1st activity
Intent intent=new Intent(view.getContext(), 2ndActivity.class);
intent.putExtra("key", someValue);
startActivity(intent);
//2nd activity
String value="";
Intent intent=getIntent();
Bundle bundle=intent.getExtras();
if(bundle!=null)
{
mealId=bundle.getString("key");
}
Since you had get value in 2nd activity, other things are simple.
try this use setQuery
sample code
send title to other activity using intent
Retrive title in other activity like this