S stanks Active Member Licensed User Longtime User Sep 30, 2014 #1 hi there is smthg strange with widgets and manifest file. today i tried to set my widget name as "exmpl1 & exmpl2". compiler gave me err AndroidManifest.xml:35: error: Error parsing XML: not well-formed (invalid token) after that i opened manifest file and looked at line 35 and i noticed that widget name. then i remove "&" and set name as exmpl1_exmpl2 and it seems that everything is ok. compiles ok.
hi there is smthg strange with widgets and manifest file. today i tried to set my widget name as "exmpl1 & exmpl2". compiler gave me err AndroidManifest.xml:35: error: Error parsing XML: not well-formed (invalid token) after that i opened manifest file and looked at line 35 and i noticed that widget name. then i remove "&" and set name as exmpl1_exmpl2 and it seems that everything is ok. compiles ok.
Erel B4X founder Staff member Licensed User Longtime User Sep 30, 2014 #2 It is not strange. The ampersand needs to be escaped otherwise the generated XML is not valid: Code: Copy rv = ConfigureHomeWidget("L1", "rv", 60, "Hello & Widget", True)
It is not strange. The ampersand needs to be escaped otherwise the generated XML is not valid: Code: Copy rv = ConfigureHomeWidget("L1", "rv", 60, "Hello & Widget", True)
S stanks Active Member Licensed User Longtime User Sep 30, 2014 #3 i thought that this doesn't matter because it is string....oh well...thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 1, 2014 #4 The compiler takes the string from this special command and put it in the XML file.