geometer / FBReaderJ

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

Google drive direct links support #469

Closed axet closed 6 years ago

axet commented 6 years ago

Hello!

Google Drive share no full files names when URL opened with android apps. As result, FBReader (compiled with opensource modules only from F-Droid store) does not see .fb2 google drive urls. Can you please add additional Intent filter to cover it up?

Also if you open fb2 books using Chrome browser, sometime it is only "Share" button available. Can you also add support for 'android.intent.action.SEND' intents?

            <intent-filter>
                <action android:name="android.intent.action.VIEW"/>
                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <data android:host="drive.google.com" android:mimeType="*/*" android:scheme="http"/>
            </intent-filter>

I start digging around source code and adopt your code to make it gradle compatilble. Just moving directories around, no source changes, and few new build.gradle files. You can find it here:

You can see simple script help to convert fbreader to gradle based:

EDIT: Seems like FBReader does not support context:// urls and it easier to write new app based on FBView then changing original code. Closing...