Skip to content

Commit

Permalink
Update file association settings
Browse files Browse the repository at this point in the history
  • Loading branch information
jrywu committed Jul 10, 2015
1 parent 9cd7d5a commit 8dd30b0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 56 deletions.
79 changes: 24 additions & 55 deletions LimeStudio/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,68 +72,37 @@
<data android:mimeType="text/plain" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/octet-stream" />
<data android:scheme="content" />
<data android:scheme="file" />
<data android:host="*" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="content" />
<data android:scheme="file" />
<data android:host="*" />
<data android:mimeType="*/*" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:mimeType="text/*"/>
<data android:pathPattern=".*\\.limedb" />
<data android:pathPattern=".*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\.cin" />
<data android:pathPattern=".*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\.lime" />
<data android:pathPattern=".*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\.cin" />
<data android:scheme="file"/>
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:scheme="ftp" />
<data android:scheme="file" />
<data android:host="*" />
<data android:mimeType="*/*" />
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:pathPattern=".*\\.limedb" />
<data android:pathPattern=".*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.limedb" />
<data android:pathPattern=".*\\.cin" />
<data android:pathPattern=".*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.cin" />
<data android:pathPattern=".*\\.lime" />
<data android:pathPattern=".*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\..*\\..*\\..*\\..*\\..*\\.lime" />
<data android:pathPattern=".*\\.cin" />
<data android:scheme="file"/>
</intent-filter>
<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="gmail-ls" android:mimeType="application/octet-stream" android:scheme="content"/>
</intent-filter>
<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="gmail-ls" android:mimeType="text/*" android:scheme="content"/>
</intent-filter>

</activity>

<!-- LIME Services -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ protected void onCreate(Bundle savedInstanceState) {
Uri uri = intent.getData();
String fileName = getContentName(resolver, uri);
if(fileName==null) {
uri.getLastPathSegment();
fileName=uri.getLastPathSegment();
}
InputStream input = null;
try {
Expand Down

0 comments on commit 8dd30b0

Please sign in to comment.