bash
(bash *)
1
Documentation gives the following API call for fetching the package name.
getPackageName
public static java.lang.String getPackageName(Values input)
Given the input Values, returns the name of the current package directory.
getPackageName() fails when invoked without parameters.
Could anyone give some hint on what needs to be passed in the Values input???
Thanks in advance
bash
(bash *)
2
Ooops Wrong subject !!!
Should have been getPackageName API Call
Bhavani Shankar
Guest
(Guest)
3
How to use the getPackageName() without any value. I just want to know the package name where my service will run. Any Idea.
saurabhm
(saurabhm *)
4
do NSService.getPackage() to get the package name.
HTH.
Saurabh.
saurabhm
(saurabhm *)
5
If my previous post is cryptic, do this to get the package name
InvokeState.getCallingService().getPackage().getName()
Use this at your own risk.
Being inquisitive, why do you want to know of the package name? for debug info??