I am developing a phonegap and would like to use intents for android. When I add the following to AndroidManifest.xml (within platforms/android) it works like expected.
<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="http" />
<data android:scheme="https" />
<data android:host="*mysite.com" />
<data android:host="*mysite.de" />
</intent-filter>
Now I would like to know how to configure this not via AndroidManifest.xml but via config.xml under www/ since as far as i understand the AndroidManifest.xml file might be overwritten during the build process and the config.xml is the right place for stuff like this. I tried the following (including all kinds of variations):
<platform name="android">
<config-file target="AndroidManifest.xml" parent="/manifest/application/activity">
<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="http" />
<data android:scheme="https" />
<data android:host="*mysite.de" />
<data android:host="*mysite.com" />
</intent-filter>
</config-file>
</platform>
...unfortunately this will always result in the following error:
[echo] ----------
[echo] Handling Resources...
[aapt] Found modified input file
[aapt] Generating resource IDs...
[aapt] /home/.../platforms/android/res/xml/config.xml:30: error: Error parsing XML: unbound prefix
Any idea is appreciated, I searched the web for over an hour.
My phonegap version is 3.5.0-0.21.18