Is the name / domain name of my Android app important?

I created an android app using the package name (for example) com.myawesomeapp.android.

I bought myawesomeapp.com but I am no longer interested in keeping the domain itself, but I want to keep the app.

Is there a danger that the domain will expire? If someone else registers the domain later, is there a way they could request control of Google from Google?

Thank!

+3


source to share


1 answer


Domain name ownership has nothing to do with it. You can choose any package name you want for your application. The combination of app package name and your certificate is your app. Any package of bits with this name and this certificate is your application.

Same certificate, different package name? Another application that you created.

Same package, different certificate? The first install wins. If any user installs my application with my certificate and given package name and then tries to install your application, same package name, different certificate, Android will refuse the second installation.

It turns out that your app package name becomes the name of essentially a user directory on the device, which is the root of all your persistent app stores.



Btw, this has nothing to do with the java package you are using for your application. Aapt, the resource compiler will use the application package name as the java package for the java code it generates. If you use the same package for your java code, then all the usual Java rules apply: you don't need to explicitly import stuff that is in the same package.

Also, when specifying java object names in the manifest, you can remove the application package name. So, for example, if your app package is foo.bar and you have a class named foo.bar.baz.Zqx3, you only need to enter ".baz.Zqx3" (in fact, you can even leave the original ". ".).

It is convenient to place your Java in the same package as your application, but it is absolutely not necessary.

+1


source







All Articles