android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -


on android: app gives [application error] there network error (file:///android_asset/www/index.html).

searched in others answers not worked.

below appname.js in path:

android/native/src/common/appname/appname.java

public class appname extends wldroidgap {      @override     public void oncreate(bundle savedinstancestate){         super.oncreate(savedinstancestate);     }      /**      * onwlinitcompleted called when worklight runtime framework initialization complete      */     @override     public void onwlinitcompleted(bundle savedinstancestate){         super.loadurl(getwebmainfilepath());         // add custom initialization code after line     }  } 

how can achieve this?

what both index.html , appname.java/js?
in worklight 6.1.0.x, new application given index.html , main.js/main.css/appname.java

did rename of project files?
value mainfile in application-descriptor.xml? make sure "index.html".


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -