Is possible to intercept a google maps intent?

Put problem concerning MapActivities, MapViews, Overlays and GPS in this forum.

Is possible to intercept a google maps intent?

Postby pabmuoju » Tue Mar 29, 2011 10:54 am

Hi, I was trying to intercept a google maps intent that should be launched as the following:

Code: Select all
Intent myIntent = new Intent(android.content.Intent.ACTION_VIEW,                                        Uri.parse("geo://37.423156,-122.084917"));

but I haven't found any example, link or documentation of this. So, I'm thinking that unfortunately is not possible.

In the Manifest file I put several intent filters. Specially I think that the next intent filter must match with the intent.
Code: Select all
    <action android:name="android.content.Intent.ACTION_VIEW" />
    <data android:scheme="geo"/>

In addition I tried to investigate what activities match with this particular intent by means of:

Code: Select all
List resolves = getPackageManager().queryIntentActivities(myIntent, 0 );
ResolveInfo firstRevolve=(ResolveInfo) resolves.get(0);
IntentFilter myIF=firstRevolve.filter;

Nevertheless only MapsActivity matches with the intent, and, surprisingly myIF is null.

In addition I installed "Intent Intercept" from Android Market, but it does not capture this intent.

So, I need some help/idea. Somebody knows what is happening? In my opinion Google restricts this interceptions.
But this restriction is not specified.

Any help will be appreciated.
Best regards,
Once Poster
Once Poster
Posts: 1
Joined: Tue Mar 29, 2011 10:15 am


Return to Map Problems

Who is online

Users browsing this forum: No registered users and 2 guests