Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java / Android package name for example code

Tags:

java

android

Is there a legitimate 'generic' package name I can use to open-source some demo code?

I want to provide the source of a demo Android app as 'public-domain' via Google Code or wherever but I'd like the source package to be 'generic'. In other words, I do have a registered domain which I normally use for package naming but I'd rather not have that for demo code.

I sometimes see example code packages using com.example.some.package (for example) but that's a registered domain name. Is there any common accepted way of naming a generic package which doesn't use someone's registered domain?

like image 206
Squonk Avatar asked Feb 24 '26 15:02

Squonk


1 Answers

example.com, example.net and example.org are reserved by IANA for just such a purpose actually.

like image 193
Sean Owen Avatar answered Feb 26 '26 04:02

Sean Owen