Hi
I would like my app to open when the user clicks on a text file (email attachment) with a custom file extension (.cgh)
I have tried many solutions, all with the same issue - When I click on the .cgh file, I get the option to open it with my app. But having done that, my app now opens when I click on any file with an unknown file extension (say .arp)
Is there any way I can stop this behavior?
I would like my app to only open if the user clicks on a .cgh file.
Alternatively, is there any way to have my app come up as an option when I click on a .cgh file, but for this choice to not be remembered?
The relevant bit in my manifest is:
AddActivityText(moreInfo,
<intent-filter >
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="*/*" />
<data android:pathPattern="*.cgh" />
</intent-filter>
)
Thank you
Andrew