geometer / FBReaderJ

Official FBReaderJ project repository
http://www.fbreader.org/FBReaderJ/
1.83k stars 801 forks source link

fbreader accepts an intent it should not #26

Open mpol opened 12 years ago

mpol commented 12 years ago

FBReader will react to an intent with action = android.intent.action.VIEW and data = content://anything (eg. content://com.sec.android.widgetapp.dualclock/dualclock/ as used by one Samsung widget) and no type.

android:pathPattern=".*.fb2" apparently does not work without also matching on a host.

geometer commented 12 years ago

Is there a "correct" solution? I want to open .fb2 and .epub attachments from e-mails. Ok, I want to open *.fb2.zip too, but I'm not sure that's possible. These intent data filters are unclear for me, sorry. :(

spacecowboy commented 11 years ago

You can try:

<data android:host="*" />

as specified in this answer on StackOverflow

A user reported this issue thinking it was a bug with my app.