stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
07/12/13 03:16 PM (12 years ago)

updating app

I am updating an Android app and it's been a long time so I'm not sure what I'm doing wrong since it's not working. I've just added a few screens and some docs. I've linked the new docs and then deleted the old config file and replaced it with the new one. I have not recompiled, since this method worked when I updated the same app in IOS. However, it will not run in the simulator or on the device I use and when I run on the simulator I get the following in the logcat below. Am I forgetting a step? Thanks. Steve 07-12 18:10:09.444: D/dalvikvm(292): GC_FOR_MALLOC freed 181 objects / 161448 bytes in 42ms 07-12 18:10:09.444: W/ZZ(292): BT_activity_root:loadAppData loaded BT_config.txt from /assets folder successfully... 07-12 18:10:09.444: W/ZZ(292): BT_application: getDataURLFromAppData 07-12 18:10:09.534: W/ZZ(292): skyeventfinder_appDelegate:SoundEffectLoader:doInBackground initSoundEffects 07-12 18:10:09.534: W/ZZ(292): skyeventfinder_appDelegate:SoundEffectLoader:doInBackground initSoundEffects DISABLED 07-12 18:10:09.644: D/dalvikvm(292): GC_FOR_MALLOC freed 5042 objects / 356936 bytes in 32ms 07-12 18:10:09.654: W/ZZ(292): BT_activity_root:loadAppData BT_config.txt file does not use a dataURL for remote updates... 07-12 18:10:09.654: W/ZZ(292): BT_fileManager:deleteFile cachedAppConfig.txt 07-12 18:10:09.654: W/ZZ(292): BT_activity_root:loadAppData continuing to load with BT_config.txt data in Eclipse project... 07-12 18:10:09.654: W/ZZ(292): BT_application: validateApplicationData 07-12 18:10:09.815: W/ZZ(292): BT_activity_root: application data appears to be valid JSON... 07-12 18:10:09.815: W/ZZ(292): BT_application: parseJSONData 07-12 18:10:09.875: D/dalvikvm(292): GC_FOR_MALLOC freed 22246 objects / 758360 bytes in 31ms 07-12 18:10:09.994: W/ZZ(292): BT_application: parsing core settings... 07-12 18:10:09.994: W/ZZ(292): BT_application: parsing themes... 07-12 18:10:09.994: W/ZZ(292): BT_application: parsing tabs... 07-12 18:10:09.994: W/ZZ(292): BT_application: parsing screens... 07-12 18:10:10.014: W/ZZ(292): BT_application:parseJSONData done parsing application data 07-12 18:10:10.014: W/ZZ(292): BT_activity_root:transitionToAppHomeScreen 07-12 18:10:10.014: W/ZZ(292): BT_activity_root:transitionToAppHomeScreen splash screen with itemId: A007B3E185FB604D64E5A56 07-12 18:10:10.014: W/ZZ(292): BT_application:getScreenDataByItemId with itemId: = "A007B3E185FB604D64E5A56" 07-12 18:10:10.014: W/ZZ(292): BT_application:getScreenDataByItemId with itemType: "BT_screen_splash" with nickname: "splash" 07-12 18:10:10.025: I/dalvikvm(292): Could not find method com.google.android.gcm.GCMRegistrar.checkDevice, referenced from method com.skyeventfinder.BT_activity_base.onCreate 07-12 18:10:10.025: W/dalvikvm(292): VFY: unable to resolve static method 338: Lcom/google/android/gcm/GCMRegistrar;.checkDevice (Landroid/content/Context;)V 07-12 18:10:10.034: D/dalvikvm(292): VFY: replacing opcode 0x71 at 0x0046 07-12 18:10:10.034: D/dalvikvm(292): VFY: dead code 0x0049-005d in Lcom/skyeventfinder/BT_activity_base;.onCreate (Landroid/os/Bundle;)V 07-12 18:10:10.034: I/dalvikvm(292): Could not find method com.google.android.gcm.GCMRegistrar.onDestroy, referenced from method com.skyeventfinder.BT_activity_base.onDestroy 07-12 18:10:10.034: W/dalvikvm(292): VFY: unable to resolve static method 342: Lcom/google/android/gcm/GCMRegistrar;.onDestroy (Landroid/content/Context;)V 07-12 18:10:10.034: D/dalvikvm(292): VFY: replacing opcode 0x71 at 0x0027 07-12 18:10:10.044: I/dalvikvm(292): Could not find method com.google.android.gcm.GCMRegistrar.register, referenced from method com.skyeventfinder.BT_activity_base.registerForPush 07-12 18:10:10.044: W/dalvikvm(292): VFY: unable to resolve static method 343: Lcom/google/android/gcm/GCMRegistrar;.register (Landroid/content/Context;[Ljava/lang/String;)V 07-12 18:10:10.044: D/dalvikvm(292): VFY: replacing opcode 0x71 at 0x006e 07-12 18:10:10.044: I/dalvikvm(292): Could not find method com.google.android.gcm.GCMRegistrar.isRegisteredOnServer, referenced from method com.skyeventfinder.BT_activity_base.registerForPush 07-12 18:10:10.044: W/dalvikvm(292): VFY: unable to resolve static method 341: Lcom/google/android/gcm/GCMRegistrar;.isRegisteredOnServer (Landroid/content/Context;)Z 07-12 18:10:10.044: D/dalvikvm(292): VFY: replacing opcode 0x71 at 0x007d 07-12 18:10:10.044: D/dalvikvm(292): VFY: dead code 0x0080-00a1 in Lcom/skyeventfinder/BT_activity_base;.registerForPush ()V 07-12 18:10:10.044: D/dalvikvm(292): VFY: dead code 0x00a3-00b9 in Lcom/skyeventfinder/BT_activity_base;.registerForPush ()V 07-12 18:10:10.074: W/ZZ(292): BT_activity_base:onCreate (BASE CLASS) 07-12 18:10:10.084: W/ZZ(292): BT_screen_splash:onCreate 07-12 18:10:10.084: W/ZZ(292): BT_viewUtilities:updateBackgroundColorsForScreen with nickname: "splash" 07-12 18:10:10.094: W/ZZ(292): BT_viewUtilities:updateBackgroundColorsForScreen: setting background color to: "#FFCCFF" 07-12 18:10:10.094: W/ZZ(292): BT_screen_splash:onStart (BASE CLASS) 07-12 18:10:10.094: W/ZZ(292): BT_screen_splash: start GPS is set to NO in the applications configuration data, not starting GPS 07-12 18:10:10.094: W/ZZ(292): BT_screen_splash:onResume (BASE CLASS) 07-12 18:10:10.106: W/ZZ(292): BT_screen_splash:backgroundWorkerThread using image from project bundle: "splashsmall.png" 07-12 18:10:10.134: W/ZZ(292): BT_screen_splash:setBackgroundImage: returned to UI Thread... 07-12 18:10:10.134: W/ZZ(292): BT_screen_splash:setBackgroundImage: setting background image 07-12 18:10:12.101: W/ZZ(292): BT_screen_splash:animateSplashScreen 07-12 18:10:12.101: W/ZZ(292): BT_application: getHomeScreen 07-12 18:10:12.101: W/ZZ(292): BT_act_controller:loadScreenObject for screen with itemId: "21137442A3FA5131D38A840" and itemNickname: "My Home Screen Menu" and itemType: "BT_screen_menuList" 07-12 18:10:12.124: W/ZZ(292): BT_act_controller: EXCEPTION transitioning to next screen. ERROR: java.lang.ClassNotFoundException: com.skyeventfinder.BT_screen_menuList 07-12 18:10:12.124: W/ZZ(292): BT_screen_splash:onPause (BASE CLASS) 07-12 18:10:12.575: W/ZZ(292): BT_screen_splash:onStop (BASE CLASS) 07-12 18:10:12.575: W/ZZ(292): BT_screen_splash:onDestroy (BASE CLASS) 07-12 18:10:12.645: D/dalvikvm(292): GC_FOR_MALLOC freed 5215 objects / 244744 bytes in 65ms 07-12 18:10:12.645: E/WindowManager(292): Activity com.skyeventfinder.BT_screen_splash has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43efc418 that was originally added here 07-12 18:10:12.645: E/WindowManager(292): android.view.WindowLeaked: Activity com.skyeventfinder.BT_screen_splash has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43efc418 that was originally added here 07-12 18:10:12.645: E/WindowManager(292): at android.view.ViewRoot.<init>(ViewRoot.java:247) 07-12 18:10:12.645: E/WindowManager(292): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148) 07-12 18:10:12.645: E/WindowManager(292): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91) 07-12 18:10:12.645: E/WindowManager(292): at android.view.Window$LocalWindowManager.addView(Window.java:424) 07-12 18:10:12.645: E/WindowManager(292): at android.app.Dialog.show(Dialog.java:241) 07-12 18:10:12.645: E/WindowManager(292): at com.skyeventfinder.BT_activity_base.showAlertFromClass(BT_activity_base.java:402) 07-12 18:10:12.645: E/WindowManager(292): at com.skyeventfinder.BT_act_controller.loadScreenObject(BT_act_controller.java:384) 07-12 18:10:12.645: E/WindowManager(292): at com.skyeventfinder.BT_screen_splash.animateSplashScreen(BT_screen_splash.java:199) 07-12 18:10:12.645: E/WindowManager(292): at com.skyeventfinder.BT_screen_splash$2.run(BT_screen_splash.java:138) 07-12 18:10:12.645: E/WindowManager(292): at android.os.Handler.handleCallback(Handler.java:587) 07-12 18:10:12.645: E/WindowManager(292): at android.os.Handler.dispatchMessage(Handler.java:92) 07-12 18:10:12.645: E/WindowManager(292): at android.os.Looper.loop(Looper.java:123) 07-12 18:10:12.645: E/WindowManager(292): at android.app.ActivityThread.main(ActivityThread.java:4627) 07-12 18:10:12.645: E/WindowManager(292): at java.lang.reflect.Method.invokeNative(Native Method) 07-12 18:10:12.645: E/WindowManager(292): at java.lang.reflect.Method.invoke(Method.java:521) 07-12 18:10:12.645: E/WindowManager(292): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 07-12 18:10:12.645: E/WindowManager(292): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 07-12 18:10:12.645: E/WindowManager(292): at dalvik.system.NativeStart.main(Native Method)
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/12/13 04:25 PM (12 years ago)
actually, please ignore the above question, Iv've discovered a few boo-bos I made.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
07/12/13 11:40 PM (12 years ago)
lol - don't you love it when that happens? :)
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
07/13/13 03:18 AM (12 years ago)
>Iv've discovered a few boo-bos I made. Since you've started a thread and resolved it, could you please share what it was that you did wrong in order to help the future readers of this forum?
 
stevek
Aspiring developer
Profile
Posts: 808
Reg: Dec 24, 2011
great neck
8,080
like
07/13/13 04:52 AM (12 years ago)
Actually, I made the stupid mistake of copying the config file from my IOS app to Android instead of the Android apps config file. That's what you get when you try to do before you think.
 

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.