Simple Intent Filter Question (I Hope!)

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Simple Intent Filter Question (I Hope!)

Postby joecritter » Fri Oct 15, 2010 11:06 am

Hi folks. I'm brand new to Android development. First post here. Apologies if I've missed something horrible like which board this post should go into.

I'm trying to create an "alternate calling behavior", that is when you make a call (from a contact, dialed, etc), I want Android to give you a choice of how to go about doing it, i.e. the Dialer (or whatever already handles this intent) or MyActivity (which right now is just helloAndroid)

As I understand it, it should just be a matter of declaring an intent filter for the appropriate intent Like so:

Code: Select all
     
          <intent-filter>
               <action android:name="android.intent.action.CALL"/>
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>


Alas this doesn't appear to be enough, and I'm stuck as to why not.

Is the filter not specific enough or just plain wrongly declared?
Does the emulator come with a user preference for the dialer so I'll never get the option to launch my Activity?

I'm just n00bish enough I don't know where to look next.

Any ptrs would be appreciated

-Joe
joecritter
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Oct 15, 2010 10:54 am

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests