android - Intent filter to open xls and xlsx files -
i want attachment of email having xls , xlsx file opened android app. able open csv file app. please help. code using in manifest csv :
<intent-filter android:icon='@drawable/rr_ipad1_icon' android:label="@string/app_name" android:priority='1'> <action android:name="android.intent.action.view" /> <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:mimetype="text/csv" /> <data android:pathpattern="*.csv" /> </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:mimetype="text/csv" android:scheme="http" android:host="*" android:pathpattern=".*\\.csv" /> <data android:mimetype="text/csv" android:scheme="https" android:host="*" android:pathpattern=".*\\.csv" /> </intent-filter>
try this
<intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <data android:mimetype="*/*" /> <data android:pathpattern=".*\\.xls" /> <data android:pathpattern=".*..*..*..*..*..*.xls" /> <data android:pathpattern=".*..*..*..*..*.xls" /> <data android:pathpattern=".*..*..*..*.xls" /> <data android:pathpattern=".*..*..*.xls" /> <data android:pathpattern=".*..*.xls" /> <data android:pathpattern=".*.xls" /> </intent-filter>
and same xlsx
Comments
Post a Comment