acuteone
Apple Fan
Profile
Posts: 42
Reg: Sep 17, 2012
St.john's
1,720
06/17/13 09:52 PM (12 years ago)

Problem loading app's configuration data in Android

When I open my BT v2 app for the first time on my AVD I get a dialogue box with the following: -- Something's not right There was a problem loading the app's configuration data. See the LogCat (console) output in Eclipse. (2) -- Below is the LogCat output I copied the JSON from the iso app into the JSON snippit keeper and pasted it into the new app (same app, but on android) At the end I have "BT_activity_root: application data is not valid JOSN data? You could try to use an online JSON validator" I put it into the JSON validator and it returned valid JSON Any ideas, Min
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
06/17/13 10:21 PM (12 years ago)
You have an error in your JSON data. Copy and paste the whole of you JSON into the validate tool and it will show you the error
 
acuteone
Apple Fan
Profile
Posts: 42
Reg: Sep 17, 2012
St.john's
1,720
like
06/18/13 04:29 AM (12 years ago)
I've tried the JSON validating tool, and it is returned valid JSON. Still get the error below Any ideas? Min 06-18 11:21:40.268: W/ZZ(1058): BT_application:validateApplicationData EXCEPTION trying to parse JSON data? ERROR: org.json.JSONException: Expected literal value at character 65676 of {"BT_appConfig": { "BT_items":[ {"itemId":"JA10281815E295AB8EF463AAA", "itemType":"BT_app", "buzztouchAppId":"JA10281815E295AB8EF463AAA", "buzztouchAPIKey":"A2F4612D0E7C9097F0973CE", "dataURL":"https://www.buzztouch.com/api/app/?command=getAppData&appGuid=JA10281815E295AB8EF463AAA&apiKey=A2F4612D0E7C9097F0973CE&apiSecret=6314D186A1C4604DCCDD7F2", "reportToCloudURL":"https://www.buzztouch.com/api/app/?command=reportToCloud&appGuid=JA10281815E295AB8EF463AAA&apiKey=A2F4612D0E7C9097F0973CE&apiSecret=6314D186A1C4604DCCDD7F2&deviceId=[deviceId]&deviceLatitude=[deviceLatitude]&deviceLongitude=[deviceLongitude]&deviceModel=[deviceModel]&userId=[userId]", "registerForPushURL":"", "lastModified":"Tue, 18 Jun 2013 11:19:12 -0700", "lastPublished":"Tue, 18 Sep 2012 11:06:51 -0700", "name":"BC Science 10 Android", "version":"2.0", "currentMode":"Design", "startLocationUpdates":"0", "promptForPushNotifications":"0", "allowRotation":"largeDevicesOnly", "BT_themes":[{"itemId":"020DC75AC7881ABABB5ADFB", "itemType":"BT_theme", "backgroundColor":"#FFFFFF"} ],
 
Bonzo
Apple Fan
Profile
Posts: 783
Reg: Jan 30, 2012
Basingstoke
13,530
like
06/18/13 04:57 AM (12 years ago)
can you send all of you configuration data?
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
06/18/13 05:19 AM (12 years ago)
As Bonzo says, it's a JSON error. In your first error report above, it looks like the JSON data is cut off, it ends with: "forceRefres . Maybe when you copy/pasted you missed to copy it all?
 
acuteone
Apple Fan
Profile
Posts: 42
Reg: Sep 17, 2012
St.john's
1,720
like
06/18/13 05:37 AM (12 years ago)
You are right....when I paste the whole JSON (which is valid) into the snippit keeper it all goes in, but only a small part of the JSON is saved. Any way to make this the complete JSON? Min
 

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.