I need to write some util class by myself and I need the packagename of android app. While I found the packageManager which only can be used in Activity and so on that has c
getApplicationContext().getPackageName() will give the package name.
getApplicationContext().getPackageName()