How to call a google map from my Android application, for example, call an email address

try {
        Intent searchAddress = new Intent(Intent.ACTION_VIEW, 
        Uri.parse("geo:0,0?="+emp_city_location));
        startActivity(searchAddress);
    } catch(Exception e) {
        System.out.println(e);
    }

I got an exception like

03-03 21: 01: 56.349: INFO / System.out (179): android.content.ActivityNotFoundException: No activity was found to handle Intent {act = android.intent.action.VIEW dat = geo: 0,0? = chennai}

please answer me

+3
source share
4 answers

You need to build your geo:URL correctly . See the documentation for syntax. I think you can lose qbetween ?and =, but I have not tried this specific syntax geo:.

+3
source

, Google API . AVD Google API. , . , ... URI, : http://developer.android.com/intl/de/guide/appendix/g-app-intents.html

,

+3

, Google

+2

- :

geo:0,0?q=chennai
+1

Source: https://habr.com/ru/post/1735262/


All Articles