I'm trying to set an intent filter to launch my activity when user clicks on the following URI:
example.com/pathA/pathB/#pathC/someGUID
so I've added the following XML to the manifest file:
<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:host="example.com"
android:pathPrefix="/pathA/pathB/#pathC"
android:scheme="http" />
</intent-filter>
I'm thinking that the '#' char is messing everthing up but I've tried escaping this char with no luck. Any ideas?
UPDATE: when I said "tried escaping" I meant using percent encoding (# equals %23)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…