Hey Angelo,
For the moment I've only just used BNDTools to generate the manifest which
seems to work well now, the class mismatch error is gone now.
However, I do get a Nullpointer when trying to draw something on the screen
using the imported packages. But I guess that occurs because the bundle
Yay, another BNDtools convert! :)
I'm not sure what you mean by get a Nullpointer when trying to draw something
on the screen; perhaps you're missing an Acitivity or something. Remember
that, at least in my experience, the Android lifecycle prevails, and OSGi has
to be fit into that.
Angelo
I'm probably looking at a solution which isn't going to work, but the idea
was to start a new activity from the bundle (which also contains that
activity) in the bundle.start method like so:
Intent i = new Intent();
i.setAction(Intent.ACTION_MAIN);
i.addCategory(Intent.CATEGORY_LAUNCHER);
Hi Marcel,
Off course, and I do believe it's an Android/OSGi in general combination
problem (albeit caused by myself), and after all this is the Felix user
list...
Will try some more things and try to narrow down the problem so I can post
a more specific question in the right place!
Maurice
On
This could have something to do with the way you instantiate your framework,
_or_ with the way your bundle is packaged.
Could you post (a) your framework instantiation code, and (b) the manifest of
your bundle?
Angelo
On Apr 2, 2012, at 10:18 AM, M. van Ree wrote:
Hello all,
I have a
Hello Angelo,
Thank you for your fast response!
Here is some more info:
a:
public FelixManager(String rootPath)
{
this.rootPath = rootPath;
felixProperties = new FelixProperties(this.rootPath);
bundlesDir = new File(rootPath+/felix/bundle);
if (!bundlesDir.exists()) {
Right.
I'm not entirely sure what's up, but some things come to mind,
- in stead of building the manifest by hand, you should consider using
something like BND (perhaps with BNDTools, if you're an Eclipse user) to handle
that for you. If you don't need to use DynamicImport, stick with 'regular'
I was considering the use of BNDTools indeed, and will look into that for
sure now.
I didn't know about the Bundle-ManifestVersion, will look into that too!
The comma is indeed a copy-paste error, as you can see in the bottom import
statement, I closed the last one without a comma. But, sharp to
Hi Maurice,
See inline.
On Apr 2, 2012, at 11:51 AM, M. van Ree wrote:
I was considering the use of BNDTools indeed, and will look into that for
sure now.
I didn't know about the Bundle-ManifestVersion, will look into that too!
The comma is indeed a copy-paste error, as you can see in the
9 matches
Mail list logo