-2

I'm creating new Android project and since I don't have a domain, should I name my package com.myappname or com.myappname.myappname?

user2668638
  • 653
  • 1
  • 7
  • 9

4 Answers4

0

It really doesn't matter, but the convention is to use reverse domain name format

com.domain.appname

scourge192
  • 1,909
  • 16
  • 22
0

The package name is used for unique identification for your application.

You can give com.myappname or com.myappname.myappname

Only thing is that it must not conflict with any existing application in Play Store

The difference is that

if you give com.myappname you will be mapped internally as com/myappname

and

if you give com.myappname.myappname you will be mapped internally as com/myappname/myappname

Arun C
  • 9,035
  • 2
  • 28
  • 42
0

It is convention to use your package name as a domain name for marking unique. You can use any package name as you wish. like com.projectname

Mohammod Hossain
  • 4,134
  • 2
  • 26
  • 37
0

Your Package Name will be your app identity on Play Store, Choose whichever Suits your app.

Generally com.example.example is used, You can use com.example or com.example.example.example , But it should be available on play store, If you are not making apps for playstore then thee is no restriction for your Package name. For better idea about Naming Conventions , READ THIS

Community
  • 1
  • 1
hemantsb
  • 2,049
  • 2
  • 20
  • 29