Je voudrais donc mon activité pour attraper quand l'intention (navigateur) appelle le lien:navigateur filtre Intent android: paramètre url pathPrefix
http://host/info?username=samplename
et non lorsque:
http://host/info?username=noname
Voici mon code provenant AndroidManifest.xml
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>\
<data android:host="host" android:pathPrefix="/info?username=samplename" android:scheme="http"></data>
</intent-filter>
Je l'ai travailler pour un préfixe simple tel que Android: pathPrefix = "/ info" Mais j'ai un problème avec le personnage? J'ai essayé d'utiliser \? mais ne fonctionne pas http://developer.android.com/guide/topics/manifest/data-element.html#path
Quelqu'un aurait une idée?
Merci
duplication possible du [chemin d'accès du filtre d'intention avec point d'interrogation] (http://stackoverflow.com/questions/4330806/intent-filter-pathprefix-with-question-mark) –