igde_
igde_

Reputation: 261

Android APK problem

while i compile my application on sdk and on my phone i see 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.There are 3 YayinAkisi apk why?

Upvotes: 1

Views: 145

Answers (2)

David Given
David Given

Reputation: 13691

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.

Upvotes: 4

Bram Vandenbussche
Bram Vandenbussche

Reputation: 1401

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.

Upvotes: 2

Related Questions