Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the Android Bundle/Packager Identifier

I am writing a library for android that need the bundle identifier I can not figure out how to get the bundle identifier or equivalent for my running android application.

I think it is related to the Intent object by can not figure it out.

Thank you for any suggestions.

like image 988
CoderDan Avatar asked Jan 19 '12 19:01

CoderDan


1 Answers

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

getPackageName()

like image 147
triad Avatar answered Oct 04 '22 00:10

triad