How to add search functionality in Android? -


i want use search function in android application in trying access data web services , have used custom arrayadapter , have added action , meta tag in manifest not able use in activity. little bit confused, please help.

my code:

  @override         public boolean onoptionsitemselected(menuitem item) {             // handle item selection             switch (item.getitemid()) {                 case r.id.search:                       intent intent = getintent();                     if (intent.action_search.equals(intent.getaction())) {                       string query = intent.getstringextra(searchmanager.query);                       domysearch(query);    //how function or right approach?                     }                     break; 

thanks time.


Comments

Popular posts from this blog

shader - OpenGL Shadow Map -

stringtemplate - StringTemplate4 if conditional with length -