I'm developing an android app, and I've been watching some examples from the sdk, in particular the Dictionary example. The problem is that all this examples launch a new activity when a search suggestion is selected.
The way my app works, that is not good for me, I have to center a map in some point wich is in the background of the same activity with displays the suggestions.
Anyone knows how to catch the intent but not launch an activity?
In the Searchable Dictionary sample, in
SearchableDictionay.java
you have a method calledThis method displays the results of the search of
query
in a list. The launch of the activity is triggered when the user clicks on an item in this list, and this is performed in the methodof the listener on the listview :
If you want to launch your own method, you just have to re-write the code inside that method (for example, to center a map...) :
(centerMap() being a method declared in the same class and doing some processing)