This may happen if android file intent filter is misplaced in config.xml like following:
<platform name="android">
<allow-intent href="market:*" />
<config-file parent="./application/activity" target="AndroidManifest.xml">
<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:scheme="file" />
<data android:mimeType="*/*" />
<data android:pathPattern=".*\\.txt" />
</intent-filter>
</config-file>
</platform>
Note data tag inside config.xml:
<data android:scheme="file" /> <data android:mimeType="*/*" /> <data android:pathPattern=".*\\.txt" />
It infact should be a single one like:
<data android:host="*" android:mimeType="text/plain" android:pathPattern=".*\\.txt" />
Correct config.xml content for android platform to avoid this:
<platform name="android">
<config-file parent="./application/activity" target="AndroidManifest.xml">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<action android:name="android.intent.action.EDIT" />
<category android:name="android.intent.category.DEFAULT" />
<data android:host="*"
android:mimeType="text/plain"
android:pathPattern=".*\\.txt" />
</intent-filter>
</config-file>
</platform>
No comments:
Post a Comment