Skip to content Skip to sidebar Skip to footer

How To Add Your Application To The "share This Place" List In Google Maps

Google maps now offers a way to 'share a place' with what appears to be a predefined list of sources. When users search for a place on Google Maps, whether it's a specific address

Solution 1:

I figured it out. Here's a sample manifest.xml:

<?xml version="1.0" encoding="utf-8"?><manifestxmlns:android="http://schemas.android.com/apk/res/android"package="com.example.yourapp"android:versionCode="1"android:versionName="1.0"><applicationandroid:icon="@drawable/icon"android:label="@string/app_name"><activityandroid:name=".YourApp"android:label="@string/app_name"><intent-filter><actionandroid:name="android.intent.action.MAIN" /><categoryandroid:name="android.intent.category.LAUNCHER" /></intent-filter><intent-filter><actionandroid:name="android.intent.action.SEND"></action><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:mimeType="text/plain" /></intent-filter></activity></application><uses-sdkandroid:minSdkVersion="4" /></manifest>

Simply add the SEND intent filter just as it is above to your activity. The "share this place" simply performs a "SEND" intent with the mime type of "text/plain". If you register an intent filter for that type, then your app will show up in the list. Mine did. =)

Post a Comment for "How To Add Your Application To The "share This Place" List In Google Maps"