0

I'm having two modules in my project. Both the modules have different package names. I'm using the second module as a library. The problem is, when I use getPackageName() in this second module, it returns me the package name of the first module.

How to resolve that?

1
  • getPackageName() returns the package name which you have defined in your manifeast Commented Apr 6, 2016 at 10:16

1 Answer 1

3

The solution was simple. Using getClass().getPackage().toString() returned me the package name of the current class and hence the current module.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.