If I own a domain name like e.g Dan-Carlos.com
Does the andoid package name allow use like com.dan-carlos.com?
I have not tried using it but I am curious if anyone tried domain name with hyphen '-' in it.
Package names are written in all lower case to avoid conflict with the names of classes or interfaces. Companies use their reversed Internet domain name to begin their package names—for example, com. example.
One method to look up an app's package name is to find the app in the Google Play app store using a web browser. The package name will be listed at the end of the URL after the '? id='.
The APK Package Name is the directory of the app on the Android operating system, as well as the address of the app on the Google Play Store. Therefore, the APK Package Name must be unique (multiple apps with the same APK Package Name cannot be published).
Java conventions typically recommend package names to be a website address (like your company's) in reverse, e.g. com. google. foo. More on naming conventions here. Follow this answer to receive notifications.
refer to my working years and some web pages like this you should replace "-" dashes with "_" underline.
if web site is : dan-carlos.com
package name is : com.dan_carlos
According to the docs :
A full Java-language-style package name for the application. The name should be unique. The name may contain uppercase or lowercase letters ('A' through 'Z'), numbers, and underscores ('_'). However, individual package name parts may only start with letters.
So, sadly you can't use anything else except for English letters, digits, the character "." and the character "_" .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With