Guest User

Untitled

a guest
Aug 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. Map Quick Search android
  2. if (Intent.ACTION_SEARCH.equals(intent.getAction())) {
  3.  
  4. Log.e(TAG,"SearchQuery: " + intent.getStringExtra(SearchManager.QUERY));
  5. Toast.makeText(this,"Get Location", Toast.LENGTH_LONG).show();
  6.  
  7. /* Perform search and display the list to User for selection */
  8. Intent getLocation = new Intent(this, ShowList.class);
  9. getLocation.putExtra("query", intent.getStringExtra(SearchManager.QUERY));
  10. this.startActivityForResult(getLocation, GET_LOCATION);
  11. }
  12.  
  13. if (GET_LOCATION == requestCode) {
  14. switch (resultCode) {
  15. /*My map marker code is here*/
  16.  
  17. }
  18. }
Add Comment
Please, Sign In to add comment