Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
01/18/14 11:07 AM (11 years ago)

Problem Loading Apps Configuration Data

I originally developed my app in progress on my system running Windows 8 and it runs just fine in the simulator. I loaded my project on my MacBook Air and tried to run it and now I am getting "There was a problem loading the apps configuration data" error. I copied and ran my BT_Config through the JSON Validator and the JSON is showing valid. Here is what I get in my logcat and console: Console: [2014-01-18 12:30:24 - letsgo] ------------------------------ [2014-01-18 12:30:24 - letsgo] Android Launch! [2014-01-18 12:30:24 - letsgo] adb is running normally. [2014-01-18 12:30:24 - letsgo] Performing com.letsgo.BT_activity_start activity launch [2014-01-18 12:30:24 - letsgo] Automatic Target Mode: using device '192.168.56.101:5555' [2014-01-18 12:30:24 - letsgo] Application already deployed. No need to reinstall. [2014-01-18 12:30:24 - letsgo] Starting activity com.letsgo.BT_activity_start on device 192.168.56.101:5555 [2014-01-18 12:30:24 - letsgo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.letsgo/.BT_activity_start } [2014-01-18 12:30:24 - letsgo] ActivityManager: Warning: Activity not started, its current task has been brought to the front logcat: 01-18 17:26:46.657: W/ZZ(2195): BT_fragment_load_config_data:onOptionsItemSelected. Selected Item: 0 01-18 17:26:46.657: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData 01-18 17:26:46.661: W/ZZ(2195): BT_device:updateDeviceConnectionType: ConnectionType: WIFI 01-18 17:26:46.665: W/ZZ(2195): BT_device:updateDeviceSize This device has a screen size of: 480 (width) x 800 (height). 01-18 17:26:46.665: W/ZZ(2195): BT_device:updateDeviceSize This application considers this to be a "small device" 01-18 17:26:46.665: W/ZZ(2195): BT_device:updateDeviceSize This device is in "portrait" orientation. 01-18 17:26:46.665: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData loading "BT_config.txt" from /assests folder in project... 01-18 17:26:46.777: W/ZZ(2195): BT_fileManager: readTextFileFromAssets: "/BT_config.txt" 01-18 17:26:46.777: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData loaded "BT_config.txt" from /assets folder successfully... 01-18 17:26:46.777: W/ZZ(2195): BT_application: getDataURLFromAppData 01-18 17:26:46.781: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData "BT_config.txt" file does use a dataURL for remote updates... 01-18 17:26:46.781: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData cachedAppConfig.txt does not exist in the cache, using the BT_config.txt file included in project... 01-18 17:26:46.781: W/ZZ(2195): BT_application: validateApplicationData 01-18 17:26:46.793: D/dalvikvm(2195): GC_CONCURRENT freed 421K, 6% free 8417K/8903K, paused 1ms+11ms, total 15ms 01-18 17:26:46.793: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData application data appears to be valid JSON... 01-18 17:26:46.797: W/ZZ(2195): BT_application: parseJSONData 01-18 17:26:46.797: W/ZZ(2195): BT_application: parsing core settings... 01-18 17:26:46.797: W/ZZ(2195): BT_application: parsing themes... 01-18 17:26:46.797: W/ZZ(2195): BT_application: parsing tabs... 01-18 17:26:46.797: W/ZZ(2195): BT_application: parsing menus... 01-18 17:26:46.797: W/ZZ(2195): BT_application: parsing screens... 01-18 17:26:46.797: W/ZZ(2195): BT_application:parseJSONData done parsing application data 01-18 17:26:46.797: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData An exception occurred (55). java.lang.NullPointerException: replacement == null 01-18 17:26:46.797: W/ZZ(2195): BT_fragment_load_config_data:loadAppConfigData:sendMessageToMainThread 0 Thank you
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/14 11:24 AM (11 years ago)
Didn't read all of it but this: [2014-01-18 12:30:24 - letsgo] ActivityManager: Warning: Activity not started, its current task has been brought to the front Do an uninstall and try again. LA
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
01/18/14 01:07 PM (11 years ago)
I deleted and re-downloaded the ADT again as well as my project, and still the same issue. logcat: [2014-01-18 14:52:00 - letsgo] ------------------------------ [2014-01-18 14:52:00 - letsgo] Android Launch! [2014-01-18 14:52:00 - letsgo] adb is running normally. [2014-01-18 14:52:00 - letsgo] Performing com.letsgo.BT_activity_start activity launch [2014-01-18 14:52:00 - letsgo] Automatic Target Mode: using device '192.168.56.101:5555' [2014-01-18 14:52:00 - letsgo] Uploading letsgo.apk onto device '192.168.56.101:5555' [2014-01-18 14:52:01 - letsgo] Installing letsgo.apk... [2014-01-18 14:52:02 - letsgo] Success! [2014-01-18 14:52:02 - letsgo] Starting activity com.letsgo.BT_activity_start on device 192.168.56.101:5555 [2014-01-18 14:52:02 - letsgo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.letsgo/.BT_activity_start } [2014-01-18 14:59:59 - letsgo] Dx trouble writing output: already prepared [2014-01-18 15:00:12 - letsgo] ------------------------------ [2014-01-18 15:00:12 - letsgo] Android Launch! [2014-01-18 15:00:12 - letsgo] adb is running normally. [2014-01-18 15:00:12 - letsgo] Performing com.letsgo.BT_activity_start activity launch [2014-01-18 15:00:12 - letsgo] Automatic Target Mode: using device '192.168.56.101:5555' [2014-01-18 15:00:12 - letsgo] Uploading letsgo.apk onto device '192.168.56.101:5555' [2014-01-18 15:00:13 - letsgo] Installing letsgo.apk... [2014-01-18 15:00:14 - letsgo] Success! [2014-01-18 15:00:14 - letsgo] Starting activity com.letsgo.BT_activity_start on device 192.168.56.101:5555 [2014-01-18 15:00:14 - letsgo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.letsgo/.BT_activity_start } [2014-01-18 15:01:21 - letsgo] ------------------------------ [2014-01-18 15:01:21 - letsgo] Android Launch! [2014-01-18 15:01:21 - letsgo] adb is running normally. [2014-01-18 15:01:21 - letsgo] Performing com.letsgo.BT_activity_start activity launch [2014-01-18 15:01:21 - letsgo] Automatic Target Mode: using device '192.168.56.101:5555' [2014-01-18 15:01:21 - letsgo] Application already deployed. No need to reinstall. [2014-01-18 15:01:21 - letsgo] Starting activity com.letsgo.BT_activity_start on device 192.168.56.101:5555 [2014-01-18 15:01:21 - letsgo] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.letsgo/.BT_activity_start } [2014-01-18 15:01:21 - letsgo] ActivityManager: Warning: Activity not started, its current task has been brought to the front
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/14 01:27 PM (11 years ago)
No I meant to delete the App off the simulator. LA
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
01/18/14 05:36 PM (11 years ago)
Found my issue in the manifest permissions (-:
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/18/14 06:20 PM (11 years ago)
ok interesting..can you share what it was for future references? LA
 
Stacey5150
Lost but trying
Profile
Posts: 54
Reg: Feb 17, 2013
West Middlesex,...
8,490
like
01/19/14 05:06 AM (11 years ago)
Found an earlier posting by cpmilez and Naudes that the issue is solved when READ_PHONE_STATE permission is deleted from the manifest. Sorry I did not clarify in earlier post. <uses-permission android:name="android.permission.READ_PHONE_STATE" />
 
LA
Aspiring developer
Profile
Posts: 3280
Reg: Aug 16, 2012
Jerseyville, IL
42,900
like
01/19/14 07:08 AM (11 years ago)
Thank you! This will assist members in the future. LA
 
Arubaman
Aspiring developer
Profile
Posts: 636
Reg: Oct 20, 2011
Akron
16,910
like
01/19/14 10:18 PM (11 years ago)
Glad you got it solved, sometimes the errors help me learn faster.
 

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.