Android Application Development (AND-401) — Question 86
When publishing an update to your application to the market, the following must be taken into consideration:
Answer options
- A. The package name must be the same, but the .apk may be signed with a different private key.
- B. The package name does not have to be the same and the .apk can be signed with a different private key.
- C. The package name must be the same and the .apk must be signed with the same private key.
- D. The package name does not have to be the same, but the .apk must be signed with the same private key.
Correct answer: C
Explanation
The correct answer is C because when updating an application, the package name must remain consistent to ensure the update is recognized as a continuation of the original app. Additionally, the .apk must be signed with the same private key to validate the authenticity of the update, preventing issues with app integrity and user trust. The other options incorrectly suggest that either the package name can change or that a different private key can be used, which is not permissible in the update process.