Skip to first unread message

Fernando Muñoz

unread,
Oct 22, 2018, 4:33:50 AM10/22/18
to MIT App Inventor Forum
Hi
Does anybody how can i print in a text box a XML text correctly formated?
I have this text:
<Lineas> <REGALO1>VALIDO POR</REGALO1> <REGALO2>2 ENTRADAS DE CINE</REGALO2> <REGALO3>PARA LA PELICULA</REGALO3> <REGALO4>SEARCHING</REGALO4> <cn_cif>00000000</cn_cif> <cn_nom>CINESA NASSICA</cn_nom> <cn_dir>PARQUE COMERCIAL Y D</cn_dir> </Lineas>
And i would like to a have a printable result
Many thanks

TimAI2

unread,
Oct 22, 2018, 9:15:00 AM10/22/18
to MIT App Inventor Forum
Have you tried the xmltextdecode block from the web component?

xmldec.png


Fernando Muñoz

unread,
Oct 22, 2018, 11:40:19 AM10/22/18
to MIT App Inventor Forum
Hi Tim
i have use it and i have solved.
Many thanks

Other thing, do you know if it exist a NFC reader other than app inventor component? It just can read text tags

TimAI2

unread,
Oct 22, 2018, 12:02:37 PM10/22/18
to MIT App Inventor Forum
Plenty of NFC reader apps on Google Play, can't vouch for any of them, but you could use Activity Starter to call them and hopefully get data back.

Fernando Muñoz

unread,
Oct 23, 2018, 3:27:21 AM10/23/18
to MIT App Inventor Forum
Thanks Tim, i'm looking for the way to start an external application with activity starter but i can't do it. Do you have any example?

TimAI2

unread,
Oct 23, 2018, 7:31:13 AM10/23/18
to MIT App Inventor Forum
It can be tricky...

You will need to run logcat or similar app to generate the output as the app you are running starts up. This should then provide you with the package / class / action required for the activity starter. (or you could ask the developer...)

How to use activity starter:


Fernando Muñoz

unread,
Oct 23, 2018, 9:48:31 AM10/23/18
to MIT App Inventor Forum
Thanks Tim
Reply all
Reply to author
Forward
0 new messages