How to include XML files on the Android device or into the APK compiler.
Posted: Mon Mar 18, 2019 12:16 pm
Hi
I need to know how to include some .XML files to my Android device or maybe it's possible to include the files in the main program?
I have two lines in my code that need to be include .XML files.
moai.CreateDialog(FileToString("Edit.xml"), "win")
moai.CreateApp(FileToString("ExpoEditeur.xml"))
I did try to insert the TEXT like this
moai.CreateDialog(<?xml version="1.0" encoding="iso-8859-1"?> <dialog id="dlg" title="Ajouter un Article" width="300"> <vgroup> <colgroup columns="2"> <label># Item</label> <textentry id="item"/> <label>Nom</label> <textentry id="Nom"/> <label>Prix</label> <textentry id="Prix"/> <label># Exposant</label> <textentry id="Exp"/> </colgroup> <hgroup> <button id="ok">OK</button> <button id="cancel">Cancel</button> </hgroup> </vgroup> </dialog>
, "win")
but Hollywood failed to compile.
Thank you.
I need to know how to include some .XML files to my Android device or maybe it's possible to include the files in the main program?
I have two lines in my code that need to be include .XML files.
moai.CreateDialog(FileToString("Edit.xml"), "win")
moai.CreateApp(FileToString("ExpoEditeur.xml"))
I did try to insert the TEXT like this
moai.CreateDialog(<?xml version="1.0" encoding="iso-8859-1"?> <dialog id="dlg" title="Ajouter un Article" width="300"> <vgroup> <colgroup columns="2"> <label># Item</label> <textentry id="item"/> <label>Nom</label> <textentry id="Nom"/> <label>Prix</label> <textentry id="Prix"/> <label># Exposant</label> <textentry id="Exp"/> </colgroup> <hgroup> <button id="ok">OK</button> <button id="cancel">Cancel</button> </hgroup> </vgroup> </dialog>
, "win")
but Hollywood failed to compile.
Thank you.