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

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -