Looks like you're right, Worklight Skins fail to load - at least on the first load of the application; if you load it a second time, it does work.
I've opened a defect for this issue.
If you are an IBM business partner or customer, please open a PMR so that once fixed you'll be able to receive this in the form of an iFix release.
Here's what I've done:
- Created a new project and application
- Added the Android environment
- Added an application skin, android.skin, to the Android environment
- Added a
main.css
to my-app\android.skin\css withbody {background-color:red}
- Changed
getSkinName()
in my-app\android\js\skinLoader.js' toreturn "android.skin"
- Run As > Run on Worklight Development Server
- Run As > Android application
The first load indeed loads the "default" skin instead of "android.skin". The second time I loaded the app (from the device, not by re-installing the app), it did load the "android.skin"...
So anyway, there's a defect. But you can continue developing your application albeit in a somewhat inconvenient way...