Android doesn't allow strings containing '?' because it has special meaning in XML context. How do I encode this symbol in a string resource?
getString(R. string. questionMark); String delim4 = (questionMark);
In a URL, the query starts with a question mark - the question mark is used as a separator, and is not part of the query string.
The question mark means it's a reference to a resource value in the currently applied theme.
A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings: String. XML resource that provides a single string. String Array.
Use a backslash.
Read more about escaping characters here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With