Question

i have an App which is running good, but now i want to open that app on Keyguard i mean while my phone is lock i can still able to open my app like Camera App while the phone is call we can still use camera just like that i want to open my app without opening the lockscreen help me what should i do to make this work have edited the xml file home_screen | keyguard as a widget but its not working can anyone help me on this !!

Was it helpful?

Solution 2

If you add htmlspecialchars() function after replacing the smileys with HTML Tags. It will not work correctly. Output will be as

<strong>Name :</strong> I am Happy <img src="happy.png">

There are two solution to make it work.

Soln 1 :

Don't convert the text into emoticons before storing it in database. While showing it to the user.

First use htmlspecialchars(), then use strireplace().

Soln 2:

First convert the whole message using htmlspecialchars() , then convert the emoticons using strireplace(). After that, Store the result in the database.

OTHER TIPS

Run the str_ireplace code to insert the smilies after you use htmlspecialchars instead of before.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top