In my application I need to know the name of package name. I have no problem when I want to grab it in activities but i can\'t take it in other classes. Following code is workin
The simple, or another way is to pass Context into the helper class constructor:
MyClassConstructor(Context context){ String packageName = context.getPackageName(); }