On 06/08/2011 11:44 AM, Robert Osfield wrote:
Would it be possible for the two Android examples to use the same
resource directory? Perhaps have to two examples in dedicated Android
directory off OpenSceneGraph/examples/ i.e.
OpenSceneGraph/examples/Android/
OpenSceneGraph/examples/Android/res/
OpenSceneGraph/examples/Android/viewerGLES1
OpenSceneGraph/examples/Android/viewerGLES2
As I said before, I'm sure it's possible, but it would still require a
change to the build system to make it look in the parent directory for
resources. The biggest problem I think is that these build rules are
part of the SDK itself (it's not like you can just change a file in the
app's directory tree). It makes it easy to create Android apps
("android create project"), but it also makes it rather inflexible.
Practically, this makes little difference when you realize is that the
resources would end up being duplicated anyway once compiled. Each
application is compiled into a single package file containing its code,
resources, and other data. Android applications are not permitted to
access the resources of other applications directly. In order to do
this, you'd have to set up a public content provider, which is a lot
more trouble than it's worth for a simple example.
--"J"
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org