Android

Html tags in Text not working in TextView

Posted on

Here I try to explain the details why Html tags in Text not working in TextView. At times you may need to display text with Bold and normal style in TextView like this,  …(You may skip to solution ) Welcome, to your favorite music app store.    So, you’ll define a string in string.xml file as follows <string name=”welcome_text”><b>Welcome,</b> […]

Java

Split String using | (pipe) symbol method

Posted on

Split string using | If you try to split string using |(pipe) symbol as below myString.split(“|”); it doesn’t work as expected. As it means “split on every character.” So you should try with double backward slash and Pipe symbol as below myString.split(“\\|”); Hope it helps somebody… 🙂 ref link & credits: http://hoskinator.blogspot.in/2006/11/trouble-using-pipe-with-stringsplit.html You may also interested […]