geometer / FBReaderJ

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

Open fb2.zip files from any file manager #40

Open sigsergv opened 12 years ago

sigsergv commented 12 years ago

Currently it's not possible to open fb2.zip files in FBReader directly from File Manager. It could be fixed by adding the following intent filter:

            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <data android:scheme="file" />
                <data android:host="*" />
                <data android:pathPattern=".*\\.fb2.zip" />
                <data android:mimeType="application/zip" />
            </intent-filter>

You can use ES File Explorer to check.

geometer commented 12 years ago

Hi,

Are you sure FBReader will not try to open all zip files with this change?

Regards,

-- Nikolay

On 7 Mar 2012, at 08:54, otmenych wrote:

Currently it's not possible to open fb2.zip files in FBReader directly from File Manager. It could be fixed by adding the following intent filter:

           <intent-filter>
               <action android:name="android.intent.action.VIEW" />
               <category android:name="android.intent.category.DEFAULT" />
               <data android:scheme="file" />
               <data android:host="*" />
               <data android:pathPattern=".*\\.fb2.zip" />
               <data android:mimeType="application/zip" />
           </intent-filter>

You can use ES File Explorer to check.


Reply to this email directly or view it on GitHub: https://github.com/geometer/FBReaderJ/issues/40

sigsergv commented 12 years ago

Well, I've checked on some files before, looks like it doesn't affect general zip-archives, just ones (local files) with fb2.zip suffix. Without the android:mimeType attribute block data just not working. Have checked on ES File Manager, OI File manager.

Probably it requires more investigation.