Skip to content

Commit

Permalink
capture view intent from other file managers
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Oct 28, 2014
1 parent f7fb409 commit c2589c6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,26 @@
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</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:mimeType="*/*" />
<data android:pathPattern=".*\\.pdf" />
<data android:pathPattern=".*\\.djvu" />
<data android:pathPattern=".*\\.epub" />
<data android:pathPattern=".*\\.cbz" />
<data android:pathPattern=".*\\.zip" />
<data android:pathPattern=".*\\.xps" />
<data android:pathPattern=".*\\.fb2" />
<data android:pathPattern=".*\\.mobi" />
<data android:pathPattern=".*\\.chm" />
<data android:pathPattern=".*\\.pdb" />
<data android:pathPattern=".*\\.doc" />
<data android:pathPattern=".*\\.tcr" />
<data android:pathPattern=".*\\.rtf" />
</intent-filter>
</activity>
</application>
</manifest>
1 change: 1 addition & 0 deletions assets/android.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,7 @@ end

local android = {
app = nil,
jni = JNI,
log_name = "luajit-launcher",
}

Expand Down

0 comments on commit c2589c6

Please sign in to comment.