Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to deeplink an app with url in android if url has special character

I want my app to be opened on only one url that is in the form

http://www.myhost.com/#/followThis/Param1/Param2

this is my intent

       <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="myhost.com" android:scheme="http" android:path="/#/followthis" />
            <data android:host="www.myhost.com" android:scheme="http" android:path="/#/followthis" />
        </intent-filter>

now if i replace # with any letter say 'a' it works fine any way i can get this???

like image 931
goldsmit409 Avatar asked Nov 30 '25 16:11

goldsmit409


1 Answers

try with:

String query = URLEncoder.encode("apples oranges", "utf-8");
String url = "http://stackoverflow.com/search?q=" + query;
like image 130
Gilberto Ibarra Avatar answered Dec 03 '25 05:12

Gilberto Ibarra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!