Hello.

I'm trying to make an app which is automatically started when user try
to open a some attached file (which has a custom extension) on mail
client.

I think I can make this auto-starting feature with a proper intent
filter.


my logcat show as follow when I try to preview an attached file on
mail client.
--------------------
01-28 11:55:37.078: INFO/ActivityManager(59): Starting activity:
Intent { act=android.intent.action.VIEW dat=content://
com.android.email.attachmentprovider/1/3/RAW flg=0x80001 }
--------------------

and I tried following intent filter
----------------------
                        <intent-filter>
                                <action 
android:name="android.intent.action.VIEW" />
                                <category 
android:name="android.intent.category.DEFAULT" />
                        </intent-filter>
---------------------

but this filter failed to catch that intent.

so, please help me. what filter should I build to catch this intent?



in addition, is there any way to find out what kind of intent is
arouse when some user action is done?

for the moment, I'm totally depend on only logcat.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to