cordova - Improving phonegap app performance by defining my own WebView -
i developing app in phonegap. have performance issues want create own webview class , utilize instead of default one.
i found can improve performance doing that, doing way:
https://github.com/ajoslin/angular-mobile-nav/wiki/phonegap,-improving-performance
the problem don't know in class have override init method of "activity" have tried doing in cordovaactivity class method init method different link says. way:
public void init() { this.init(appview, null, null); }
can help me should set thie code utilize mywebview class:
cordovawebview webview = new mywebview(myactivity.this); super.init(webview, new cordovawebviewclient(this, webview), new cordovachromeclient(this,webview));
thank you
yes - seek cordovaactivity. if not - check manifest file - main activity class name. need import mywebview class main activity.
public void init() { cordovawebview webview = new mywebview(myactivity.this); super.init(webview, new cordovawebviewclient(this, webview), new cordovachromeclient(this,webview)); }
performance cordova webview
No comments:
Post a Comment