04-01-2010 04:30 AM
This operation returning a null InputStream.
Is there any issue about compiling? Does widget packager remove not code file?
Thank you very much!
04-01-2010 12:00 PM
You may want to take a look at the source code for the widget templates. It should give you an idea on how we are pulling out the embedded resources.
The full source code for the widget templates is in a "device_templates" directory in the Widget SDK install dir. This is the full Java Code that gets wrapped around BrowserField and runs a widget.
04-02-2010 05:52 AM
I looked in the code for a solution to my problem, but according to my understanding the found method (which use BrowserFieldRequest obejct) is related to resource packed in the widget itself (it should be declared in config.xml).
Probably this is not possible...
Thank you very much.
04-02-2010 07:21 AM
Yeah.. I don't think you will be able to include it as a resource the way you are trying.
You may have to simply include the contents of the .js file in a string variable in your code. Not nearly as flexible that way, but it may be your only option.