7

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.

CoderDan
  • 442
  • 1
  • 4
  • 10

2 Answers2

8

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

getPackageName()

triad
  • 20,407
  • 13
  • 45
  • 50
-1

Do you mean this?

protected void onCreate(Bundle savedInstanceState){
    super.onCreate(savedInstanceState);
}
Bill Gary
  • 2,987
  • 2
  • 15
  • 19