Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Map Quick Search android
- if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
- Log.e(TAG,"SearchQuery: " + intent.getStringExtra(SearchManager.QUERY));
- Toast.makeText(this,"Get Location", Toast.LENGTH_LONG).show();
- /* Perform search and display the list to User for selection */
- Intent getLocation = new Intent(this, ShowList.class);
- getLocation.putExtra("query", intent.getStringExtra(SearchManager.QUERY));
- this.startActivityForResult(getLocation, GET_LOCATION);
- }
- if (GET_LOCATION == requestCode) {
- switch (resultCode) {
- /*My map marker code is here*/
- }
- }
Add Comment
Please, Sign In to add comment