fusionmtx
Android Fan
Profile
Posts: 178
Reg: Jun 15, 2011
Orlando
2,180
02/03/13 04:14 PM (12 years ago)

assist with renaming application package

Ever since all the new stuff in our apps like the push coding, my app crashes when i rename the application package. this wasn't the case before. When i re-downloaded my package I would go to android tools and select rename app package, enter in what i needed and it worked fine. Has anyone encountered this? here is the logcat This is a fresh download of the source from Buzztouch.com. the only thing i did was rename the application package as I always have done before. 02-03 18:10:26.808: E/AndroidRuntime(28367): FATAL EXCEPTION: main 02-03 18:10:26.808: E/AndroidRuntime(28367): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.v1_4.B60E6D01565D444A597A8FCB.com/com.hnn.WB_screen_menuImage}: java.lang.IllegalStateException: Application does not define permission com.v1_4.B60E6D01565D444A597A8FCB.com.permission.C2D_MESSAGE 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2088) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1929) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:135) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:347) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:704) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.widget.TabHost.setCurrentTab(TabHost.java:368) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.widget.TabHost.addTab(TabHost.java:246) 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.hnn.BT_activity_root_tabs$1.run(BT_activity_root_tabs.java:298) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.os.Handler.handleCallback(Handler.java:615) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.os.Handler.dispatchMessage(Handler.java:92) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.os.Looper.loop(Looper.java:137) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.ActivityThread.main(ActivityThread.java:4918) 02-03 18:10:26.808: E/AndroidRuntime(28367): at java.lang.reflect.Method.invokeNative(Native Method) 02-03 18:10:26.808: E/AndroidRuntime(28367): at java.lang.reflect.Method.invoke(Method.java:511) 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1004) 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:771) 02-03 18:10:26.808: E/AndroidRuntime(28367): at dalvik.system.NativeStart.main(Native Method) 02-03 18:10:26.808: E/AndroidRuntime(28367): Caused by: java.lang.IllegalStateException: Application does not define permission com.v1_4.B60E6D01565D444A597A8FCB.com.permission.C2D_MESSAGE 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.google.android.gcm.GCMRegistrar.checkManifest(GCMRegistrar.java:137) 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.hnn.BT_activity_base.onCreate(BT_activity_base.java:132) 02-03 18:10:26.808: E/AndroidRuntime(28367): at com.hnn.WB_screen_menuImage.onCreate(WB_screen_menuImage.java:105) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.Activity.performCreate(Activity.java:5048) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094) 02-03 18:10:26.808: E/AndroidRuntime(28367): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2052) 02-03 18:10:26.808: E/AndroidRuntime(28367): ... 16 more
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
02/03/13 04:43 PM (12 years ago)
I'm not so good in Java or Eclipse as to assist... But when I rename my apps, I dont use 'file -> rename'; I select the actual 'project' and right click on the package to get a different 'drop down context' menu, and I choose 'Refactor' and the 'rename' from that menu... Is that how you rename? Can trying it different bring any different results? Cheers! -- Smug
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/03/13 05:21 PM (12 years ago)
It looks to me like you're missing a push notification permission in the manifest, which is odd as it's something I assume would be added with the core bt files. Also, I notice it's a BTv1.4 app, is that right? I can't imagine that the push notification code would be compatible with google api4?? Could be wrong though, often am.. What happens if you don't rename the app?
 
fusionmtx
Android Fan
Profile
Posts: 178
Reg: Jun 15, 2011
Orlando
2,180
like
02/03/13 05:51 PM (12 years ago)
Well when i was just starting out with BuzzTouch I made a 1.4 app and lost the keystore lol which is a rookie mistake since i really didnt know what i was doing. So I made a new 2.0 app and have been using that ever since with no issue. Ive just been using the same Application package the same as the 1.4
 
fusionmtx
Android Fan
Profile
Posts: 178
Reg: Jun 15, 2011
Orlando
2,180
like
02/03/13 05:51 PM (12 years ago)
If I dont rename the application package the app runs fine. This only is in related to the new push coding that has been implemented.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
02/03/13 07:01 PM (12 years ago)
**Rubbish answer - deleted!
 

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.