What is the package in android?

半城伤御伤魂 提交于 2019-12-12 03:34:51

问题


I have uploaded my first application to google playstore as you see in this image in manifest in package it says auc.visorimagenes.ssssss

in the left part you could see my structure code where it is as auc.visorimagenes.

in playstore you see it:

but What it says auc.visorimagenes if in my manifest I had set auc.visorimagenes.sssss

I want to up a new app with same code (only changing some resources) this is would be a new app not an update.

then I must to change auc.visorimagenes.sssss ???


回答1:


Contains information about a Java package. This includes implementation and specification versions. Typically this information is retrieved from the manifest.

Packages are managed by class loaders. All classes loaded by the same loader from the same package share a Package instance.

Hope this helps!




回答2:


Could you try and change the android:name attribute of your application entry in the manifest as follows and see if it helps?

<application
   ....
   android:name=".App"  (or android:name=".Application.App")
 />

This will ensure that the app uses the same package name as the one declared in the manifest.




回答3:


The package in android is the name of the application that makes it unique from any other android apps, therefore allow the production of multiple apps with the same product name.



来源:https://stackoverflow.com/questions/35350946/what-is-the-package-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!