Valid name for Android package name

If I have a domain name, for example, 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 has tried a domain name with a hyphen '-' in it.

+5
source share
4 answers

apply to my work years and some webpages such as this  you should replace the "-" dash with the underscore "_".

if website: dan-carlos.com

package name: com.dan_carlos

+2
source

According to docs :

Java . . ('A' 'Z'), ('_'). .

, , , , , "." "_".

+1

, , '-' .

, → Android → ,

0

- ( ), (.) (_). , com.dan.carlos com.dan_carlos

0

All Articles