I figured it out. It was a combination of not accessing the correct
Android resources and faulty data structure. The correct code follows
(hope this helps someone else):
public void parseCharXmlFile(){
Chars myCh;
String nameTag= ;
try {
Thanks Kumar,
It keeps opening the DexFile.class (seems to throw an io exception)
in the debugger and says Source not found. It asks me if I want to
change the source. Nothing really glaring in the log. Why does the
compiler see my file and not the runtime guys?
Thanks.
Chris
--
You received
If you running from Eclipse, press F8 a few times to let it finish crashing.
Or run without the debugger attached.
_Then_ check the log.
--
Kostya Vasilyev
30.09.2011 13:12 пользователь Dancing Fingers batym...@gmail.com
написал:
Thanks Kumar,
It keeps opening the DexFile.class (seems to throw
Thanks Kostya,
My debugging talent isn't great. I got a parsing error on line 5.
I really wish that System.out.println would print to console rather
than Log, but that's just me.
Thanks.
Chris
--
You received this message because you are subscribed to the Google
Groups Android Developers
You can run adb logcat from your computer's command line window, if you
prefer to see logcat output outside Eclipse.
--
Kostya Vasilyev
30.09.2011 13:46 пользователь Dancing Fingers batym...@gmail.com
написал:
Thanks Kostya,
My debugging talent isn't great. I got a parsing error on line 5.
I
This is very weird, the debugger steps, using step into, the try and
than steps back out to the parent of the method without printing the
warning statements. I guess io would be hard to write a debugger for.
If I were the Android Plugin God, I would have Log.i print to the
LogCat and
So I'm starting to suspect my XML file. Here it is:
?xml version=1.0 encoding=UTF-8?
Chars
ChPair
chE/ch
ct175391/ct
/ChPair
ChPair
chT/ch
ct129899/ct
/ChPair
ChPair
chA/ch
ct110693/ct
/ChPair
ChPair
chO/ch
I don't see your code ever assigning anything to myCh, so expect it to crash
when trying to call setTheChar and setCount.
Also, that charAt(0) should really be charAt(1), no?
--
Kostya Vasilyev
01.10.2011 2:03 пользователь Dancing Fingers batym...@gmail.com написал:
So I'm starting to suspect
Thanks Kostya,
I changed the '0' to a '1' without success. Actually Chars have only
2 fields: a char and an int, which I thought setters were for. The
thing of it is that I keep getting an XMLPullParserException, saying
that I'm reading line -1, column -1.
Thanks.
Chris
On Sep 30, 6:18 pm,
9 matches
Mail list logo