[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread piyu
Hi John, Can copy here code to know how you are reading fron input stream. Thanks in advance. On Jul 1, 12:36 am, RespeckKnuckles (John Licato) respeckknuckl...@gmail.com wrote: Hey guys, I have some xml files with a custom format (based on the scxml specifications) that I want my

[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread RespeckKnuckles (John Licato)
Hey guys, I put the xml file into the res/raw directory and it works better, but still not working completely. Here is the code I'm using: InputStream toParse = getResources().openRawResource(R.raw.test); // file is in res/raw/test.xml

[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread RespeckKnuckles (John Licato)
Just in case the ?xml ? element was the problem, I tried this xml code instead: ?xml version=1.0 encoding=utf-8? HTML/HTML and still didn't work. On Jul 1, 12:46 pm, RespeckKnuckles (John Licato) respeckknuckl...@gmail.com wrote: Hey guys, I put the xml file into the res/raw directory and it

Re: [android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread Mark Murphy
Put it back in res/xml/. Use getResources().getXml() to get an XmlPullParser on the file. On Thu, Jul 1, 2010 at 2:47 PM, RespeckKnuckles (John Licato) respeckknuckl...@gmail.com wrote: Just in case the ?xml ? element was the problem, I tried this xml code instead: ?xml version=1.0

[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread Bob Kerns
Sure. Design some XML language -- the one Google used for layouts would work but is rather complex and not focused on your particular problem -- and I think you'd have to reimplement it to use non- compressed XML. There's probably no need to give the server the ability to design completely

[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread Bob Kerns
No idea off the top of my head, other than that something you think is true probably isn't. Not exactly a helpful observation... But why not try HTML/ instead of HTML/HTML, and verify that you're getting that. They're equivalent, but going to even simpler XML may lead you to discover the problem

[android-developers] Re: Loading from a compiled xml file

2010-07-01 Thread Bob Kerns
That's a good thing to do, but he'll have to rewrite his code. It would be wise to test that his existing code is working as a baseline, and check it in to revision control, and write a few unit tests, before doing that. Unless his code is trivial, of course. Or his head gets too bloody from

[android-developers] Re: Loading from a compiled xml file

2010-06-30 Thread Bob Kerns
Don't put it in the xml/ directory. That does indeed get compiled into a binary format, and you'd need to use the corresponding API for reading it. (Or you could recode to use that API, and gain efficiency and space -- but first, you'd like to test the code you've already written, right?) So put

[android-developers] Re: Loading from a compiled xml file

2010-06-30 Thread ABhi
I'm not sure if i understand the question correctly. My need is slightly different for dynamic screen generation. Hi All, I'm dealing with a problem you guys might not have faced earlier. I'm having a use-case in my Android application where the actual screen that i want to show to user is not