I have a worklight hybrid app running on android and I wanted to add some functionality to call into a native android library that isn't currently provided via worklight or cordova. My understanding is I'll need to create a cordova plugin to do this. Creating the cordova plugins seems pretty straight forward given the steps explained in the Getting started tutorial.
The one hang-up I have is when I go to create the Java class to implement the plugin. The tutorial says "Start by creating a Java class for a plug-in"... but it doesn't really say 'where' to create it. In Worklight Studio, whenever I go to create a new java class (Right click worklight project > New > Class) it wants to create it in the Project/server/java directory.
Looking at the tutorial sample code, it looks like I should be able to create a new class in the Project/Apps/name/android/nativeResources/src directory, as that is where the example class was created, but right clicking on any of those directories doesn't list a "Java Class" as a option (short of going to "Other" and picking it there). Also, there is no 'src' directory under the nativeResources directory and from my experience, that directory is typically created by eclipse as needed.
I also tried creating a "Native API" sub-project to see if that would generate the needed directories but it did not and seems to be unrelated for what I want to achieve.
So the ultimate question is should I just manually create the directories under the nativeResources folder and add in my new class (even though eclipse / worklight studio doesn't seem to recognize that as a valid location) or am I totally missing something?