How to get Bundle / Packager ID for Android

I am writing a library for android that needs a package identifier. I cannot figure out how to get the package identifier or equivalent for my Android application.

I think this is due to the Intent object, can't figure it out.

Thanks for any suggestions.

+4
source share
2 answers

Do you mean the package name for your application? You can use Activity.getPackageName ().

getPackageName ()

+6
source

Do you mean this?

protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); } 
0
source

Source: https://habr.com/ru/post/1391913/


All Articles