Do you have the data for hospitals?
How many hospitals do you want to find?
How large of a search area do you want to have from your current location?
i have data for hopsital.
around 10 hospitals i have to show.
You could use the Find Nearest GP tool and the Geoprocessor class in Android:
Find Nearest—ArcGIS REST API: Spatial Analysis Service | ArcGIS for Developers
Geoprocessor | ArcGIS Android 10.2.8 API
can u plz send one sample example
It really depends on how you want to find the hospitals as well...
You can do it based off of network analysis:
Closest Facilities | ArcGIS for Developers
Or use a query task and pass the envelope.
Query Task | ArcGIS for Developers
Thanku very much
Would you please mark my answer as correct if it helped you?