I build two apps first app com.pakname.pak1 and the second with com.pakname.pak2 package name, then I got one key mykey.keystore.
What happens if I sign the both apps with the same key and publish them to the android market ?
is this good habit ? I guess is not but I do not get the point of signing apps from same company with different keys.
can someone explain me this kind of scenario
Thanks
Read this
Signing Strategies
Some aspects of application signing may affect how you approach the development of your application, especially if you are planning to release multiple applications.
In general, the recommended strategy for all developers is to sign all of your applications with the same certificate, throughout the expected lifespan of your applications. There are several reasons why you should do so:
Application upgrade – As you release updates to your application, you will want to continue to sign the updates with the same certificate or set of certificates, if you want users to upgrade seamlessly to the new version. When the system is installing an update to an application, it compares the certificate(s) in the new version with those in the existing version. If the certificates match exactly, including both the certificate data and order, then the system allows the update. If you sign the new version without using matching certificates, you will also need to assign a different package name to the application — in this case, the user installs the new version as a completely new application.
Application modularity – The Android system allows applications that are signed by the same certificate to run in the same process, if the applications so requests, so that the system treats them as a single application. In this way you can deploy your application in modules, and users can update each of the modules independently if needed.
Code/data sharing through permissions . The Android system provides signature-based permissions enforcement, so that an application can expose functionality to another application that is signed with a specified certificate. By signing multiple applications with the same certificate and using signature-based permissions checks, your applications can share code and data in a secure manner.
On the Market the really important things are package name and versioning. If you try to upload two different package names for the same app, you'll drop in a grey zone full of pain :(
Second one, if you try to upload twice the same app forgetting to update version, the Market will refuse your upload and you have to rebuild your app changing the version.
Finally, I use the same keystore and the same signature for my apps without issues :)