开发者

Android Activity File Naming Conventions

开发者 https://www.devze.com 2023-04-05 15:56 出处:网络
I have my app and start开发者_StackOverflowed by naming the packages that contain .java files things like. com.activity.app

I have my app and start开发者_StackOverflowed by naming the packages that contain .java files things like. com.activity.app

so for instance I have a search activity and it would be under com.search.app

I believe I read somewhere that com is used only in development and you should use another naming convention when publishing. Is there any truth to this and are there any conventions to abide by?


The convention is something like: com.my_company_name.my_app_name

There's nothing written in stone, really...


Yor package name should be unique as this identifies (and is visible in URL) the app on the Market.

Best practice is to use your internet domain name if you have one.

0

精彩评论

暂无评论...
验证码 换一张
取 消