Discussion Forums  >  Uncategorized

Replies: 1    Views: 146

OTG Applications
Aspiring developer
Profile
Posts: 22
Reg: Jun 07, 2011
Mentor,Ohio
1,770
11/12/11 09:20 PM (14 years ago)

Quiz - Force Close on Android

I just created a trivia game app for android and it is force closing after answering 10 questions correct. I changed the amount of questions to 9 and it does not crash. I noticed that this bug was being looked into but that was back in Jan of 2011 I was wondering if this bug was fixed but now has resurfaced because of updates?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
11/13/11 03:34 AM (14 years ago)
Nah, not resurfaced...never got finalized and fixed! For most folks there just lying to the control panel. If you want 10 questions, enter 11 in the panel then set 10 as the number of questions. Hack but works. It's a bug in the way the quiz finds the next question in the list when an answer is tapped. The array of questions is say 10 long and the code is looking for number 11 - which doesn't exist - which causes the crash. It's a matter of figuring out where this is happening. I've dug into it a few times but always got pulled another direction and moved it aside. Funny, I can remember starting to dig this up at least 10 times and never finding / fixing anything. I'll move it on the hot-list again!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.