Discussion Forums  >  Uncategorized

Replies: 5    Views: 443

Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
01/18/11 09:51 AM (15 years ago)

Quiz issue in Android - no questions.

Hey, (hopefully) quick question regarding the Quiz page in Android. I've compiled through Eclipse, and am testing my NASA 360 project on my Droid Eris phone, but I'm running into a slight problem. The Quiz I've set up goes immediately from the Starting Quiz loading screen to the Quiz Complete pop-up, indicating 0 points scored, 0/0 correct/incorrect, and elapsed time 0:00, even though I've populated the quiz with 35 questions through the online control panel. I've looked through the README.TXT and the boards (where I was able to figure out the problems with my Multiple Location Maps), but I can't find any discussion of this yet. Has anyone had a similar experience or have suggestions? Thanks in advance!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/18/11 11:28 AM (15 years ago)
Hi... I just confirmed your question - you're right. It doesn't appear that you have done anything wrong and this should work. Looking into this right now.... bear with us for a few minutes....
 
Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
like
01/18/11 11:52 AM (15 years ago)
Thanks! It was working last night in the iOS simulator, btw, if that makes a difference.
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/18/11 12:14 PM (15 years ago)
Yeah, not an iOS or Control Panel issue... Android only. Found it and fixed it - yippee! You have two options. Option B. may be better if you have changed / customized anything in your Android project after downloading it from your control panel? A) Re-download the Android project from your control panel. Delete the existing project from Eclipse, then re-create a new project using the new download. BE SURE TO DELETE CACHED DATA on your device after re-installing your app. Use the context-menu button from your app's home screen to do this B) Open your existing Android Project in Eclipse and remove one line of code in the Screen_QuizMultipleChoice.java file. This one line is the problem, it needs to be removed. The project in your control panel has been updated, which is why re-downloading it would work. So...the line you want to remove reads... screenGuid = raw.getString(guid); This is about 1/5 the way down in the this file. You'll see it about three lines under the comments that read: //quiz properties are in appDelegate.currentScreen.jsonScreenOptions So... remove his line all-together - it should not be there... the portion of code you are working with should look like this when you are done.. .... code above //quiz properties are in appDelegate.currentScreen.jsonScreenOptions try{ JSONObject raw = new JSONObject(appDelegate.currentScreen.jsonScreenOptions); numberOfQuestions = Integer.parseInt(raw.getString(numberOfQuestions)); questionDelay = Integer.parseInt(raw.getString(questionDelay)); }catch (Exception je){ Log.i(ZZ, thisActivityName + :onCreate error : + appDelegate.currentScreen.jsonScreenOptions); } ...code below REFRESH you devices cached data and all should be fine. Thanks TONS for finding this - it's an issue that would only cause troubles under a few circutmstances but it's good to get it fixed! Be sure to re-post if you get it fixed so we can remove it from the bug-list.
 
Tom Shortridge
Aspiring developer
Profile
Posts: 78
Reg: Nov 22, 2010
Virginia
1,480
like
01/18/11 12:26 PM (15 years ago)
Coolio, went with Option B. Now just a few more kinks to work out and this thing should be ready to go! Thanks for your swift response!
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
01/18/11 12:34 PM (15 years ago)
Glad to hear it..Good luck
 

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.