Zooming to a point from a search result

Discussion created by nigel_ngl2 on Feb 3, 2013
I have a search bar where it searches for results on a web service and displays the results on the map. However i want to zoom to the results. The results i get are stored in an array. So if get on result then the map should zoom to that point. But if the results are more than one then the map should zoom to an envelope such that both/ (whatever the search results) are encapsulated.
I have taken help from the ArcGis queryTask sample for android.
can anyone help?
Reagrds Nigel.