How to launch epub from AIR andoird app
I have an air app and would like to associate any epub files through
android and read the content.
Basically I would like to use my air app to open the epub file. Thus, I
tried to register the epub file and launch it with the app. I only get it
successful when I have this.
<action android:name="android.intent.action.VIEW" />
<action
android:name="android.intent.action.GET_CONTENT"/>
<action android:name="android.intent.action.EDIT" />
<action android:name="android.intent.action.PICK" />
<category
android:name="android.intent.category.DEFAULT" />
<category
android:name="android.intent.category.BROWSABLE" />
<data android:scheme="content"
android:mimeType="application/epub+zip"
android:pathPattern=".*\\.epub" />
</intent-filter>
This way when I get into the AS code, the event.arguemtns[0] is
content://media/external/file/26253 which cannot be converted in a file
successful.
I tried adding this to find the file instead of the content
but this doesn't register my epub files.
I just downloaded those sample epub files off internet. Any idea what I'm
doing wrong?
No comments:
Post a Comment