ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Other Software > Developer's Corner

Android package name

(1/2) > >>

miva2:
I'd like to finally contribute to NANY this year and am thinking of making a simple android app...or two.
I know some java but don't know much about android yet.

Before starting my app, I need to give it a package name.
Which, if uploaded on google play, must be a unique identifier.
Android package names follow the Java package name convention. Usually this is the reverse domain name for the app. Default it is com.example.appname.
I've also seen e-mail adresses being used like com.domain.name.appname.
I'm not planning to get a domain for my apps and don't like to use my email address.
It's just a convention and I believe anything works as long as it is unique and follows the rules(about hyphens and caps and all) but I'd like to use a good convention that I can use in the future.

Currently I have: miva2.apps.appname
with "miva2.apps." litterally and "appname" replaced by the actual app name ofcourse.

Is this good? Any suggestions? Any things I need to know about package names?
I'd just like to know the opinion of people here :) Good luck to other NANY contestants!

ewemoa:
May be you will find the following of some use:

  An answer to "Android - Package Name convention" on StackOverflow

mwb1100:
The idea of using a domain name in the Java package name convention for widely/publicly distributed packages was to  was to help ensure that distributed packages would have unique names by piggy-backing on the domain name system of ownership of names.  Microsoft's COM used GUIDs to create unique names for components; Java's convention is much friendlier.

I'd suggest using an email address for the base of your package namespace. If you don't want to use your real email address, create a dummy account somewhere (gmail, yahoo, whatever) and use that.

Or maybe mouser might consent to allowing the use of "com.donationcoder.your-userid" as a Java package namespace convention for DC contributors?

Ath:
Following the (standardized) suggestion that ewemoa posted, I'd go for com.miva2.<apptype>.<appname>, just like a Java classpackage.
If it's specifically community/freeware opensource software (OSS/FOSS) it could use org instead of com.

Using DonationCoder in your packagename would suggest you either 'work' for DonationCoder, or made it specifically for DonationCoder, both of which aren't true (afaics).

Deozaan:
Using DonationCoder in your packagename would suggest you either 'work' for DonationCoder, or made it specifically for DonationCoder, both of which aren't true (afaics).-Ath (October 04, 2013, 01:33 AM)
--- End quote ---

It would be made specifically for DonationCoder if it was made for NANY. Sort of.

Navigation

[0] Message Index

[#] Next page

Go to full version