Hi,
On Tue, Apr 13, 2010 at 11:27 AM, Mahammad Nasir
<[email protected]> wrote:
> ...How can i check if a bundle is already installed? i dint find any api to
> check if it is already installed...
you can do something like
String bundleSymbolicName = ...
Bundle[] bundles = bundleContext.getBundles();
for (Bundle bundle : bundles) {
if (bundleSymbolicName.equals(bundle.getSymbolicName())) {
return bundle;
}
}
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]