开发者

Android APK problem

开发者 https://www.devze.com 2023-03-29 21:43 出处:网络
while i compile my application on sdk and on my phone i s开发者_开发知识库ee the same application 3 times over the phone. Only 1 of them works and the other 2 throws exeption. this is the printscreen

while i compile my application on sdk and on my phone i s开发者_开发知识库ee the same application 3 times over the phone. Only 1 of them works and the other 2 throws exeption. this is the printscreen of the problem.

Android APK problem


That sounds very much like you've marked all the activities in your application with categor android.intent.category.LAUNCHER --- that's what makes the activities show up in the launcher. Naturally, if one of your activities gets launched when it's not expecting to be, it'll likely crash. But you'll have to post more info (like a stack trace) to tell for sure.


When working on an emulator, you can choose to wipe all user data on boot from the AVD manager. You might want to give that a try.

Also, as Kartik said, if you changed the package name of the application, it will install alongside the previous versions as Android sees it as a new application and not as an upgrade.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号