android - Register Intent Filter to accept any type of file? -


i have app needs able open type of file file manager. file conversion/storage app, doesn't matter type of file is, need accept them all, similar how dropbox accept file.

i can't seem figure out how register app open type of file in way. here's have in manifest under relevant activity:

<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=".*\\.*" /> </intent-filter> 

this doesn't seem have affect. doing wrong?

you need set mimetype.

<data android:mimetype="*/*" /> 

you can remove pathpattern when matching mimetype all.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -