Cybran
Cybran

Reputation: 83

Differentiating APK files?

I have an application that I want to distribute a free and paid version for. However, when I try to install them both on the same phone, they both register as the same application. They have different package names, so I don't know how to differentiate them so that they can install as two applications.

They also both have completely different certificates when I signed them.

Upvotes: 2

Views: 135

Answers (2)

Nick
Nick

Reputation: 758

From this question:

The Android SDK formally addresses the issue of a shared or common codebase with something called a library project.

Basically, the shared code is defined as a library project, then a paid and a free version are simply two different projects in your eclipse workbench, both referencing aforementioned library project.

Updated link: http://developer.android.com/guide/developing/projects/projects-eclipse.html

Upvotes: 2

Anearion
Anearion

Reputation: 103

I think it's because you have to firm each app with a different key.

Upvotes: 0

Related Questions