Always return to same activity in android with extras after search -


ok, here go:

i have search interface/ dialog (the type gets created system) calls fileslist, activity when called without search intent show of users items (this works fine when called main activity)

the query search filters these results fine, when user selects 1 of these results return previous activity, whereas want return main activity, passing id of selected item (which can fine)

also, in whichever activity call search from, onactivityresult not called (because search intent isn't result?)

basically, return main activity after search, returning item selected in fileslist

edit:

to select item user clicks listview , calls method:

protected void onlistitemclick(listview l, view v, int position, long id) {     log.d("onclick id", ((note)data.get(position)).id);     note array=(note)data.get(position);     intent.putextra("id", array.id);     intent.putextra("tag", currenttag);     setresult(result_ok, intent);     finish(); } 

and search launched this: http://developer.android.com/guide/topics/search/search-dialog.html

ok, instead of trying return activity, make search point main activity , there query, sort results , return main activity opened.

basically re-arranged program flow, post kinda helped: android: return search query current activity


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -