android - Setting up search interface in fragment -
i have read how setup search interface on google dev guide here http://developer.android.com/training/search/setup.html
i able replicate activities. but, application uses navigation drawer , fragments. 1 of fragments need implement actionbar search shows suggestions user type. able setup search view particular fragment. but, still not sure how implement onnewintent()
, how set searchable configuration on manifest file. @ possible implement search interface fragments. if so, can please provide code samples or links reference?
thanks
onnewintent()
called singletop/task
activities except first time when activity created. @ time oncreate
called.
you can invoke onnewintent
putting oncreate
method like
@override public void oncreate(bundle savedstate) { super.oncreate(savedstate); onnewintent(getintent()); } @override protected void onnewintent(intent intent) { super.onnewintent(intent); //code }
Comments
Post a Comment