chromeview
chromeview copied to clipboard
i can't open chromeview
error inflating class us.costan.chrome.ChromeView
I have the same problem.
same with my problem
HOW TO FIX IT?
I fixed it recently , as follows. you should do ChromeView.initialize(this); only in class which extends Application.
and application class should be mentioned in androidmainfest.xml under application. if you need any help contact me..
I did all the above steps but still getting the below error.. Can you pls help
Did you initialized chrome view in application class?
On Tue, Aug 12, 2014 at 12:43 AM, Anurag Pandey [email protected] wrote:
I did all the above steps but still getting the below error.. Can you pls help
[image: error] https://cloud.githubusercontent.com/assets/715103/3881188/87c3c994-218b-11e4-9a44-f375e5e7f4dc.png
— Reply to this email directly or view it on GitHub https://github.com/pwnall/chromeview/issues/26#issuecomment-51826482.
Thanks, Arun.R
Yes.. My application class looks like below:
import us.costan.chrome.ChromeView; import android.app.Application;
public class ChromeWebView extends Application {
@Override
public void onCreate() {
super.onCreate();
ChromeView.initialize(this);
}
}
and my activity class tat loads chromeview looks like:
public class LoadScrollGraph extends Activity {
private ChromeView chromeView ;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
chromeView = new ChromeView(this);
setContentView(chromeView);
Intent myIntent = getIntent(); // gets the previously created intent
String scrollGraphUrl = myIntent.getStringExtra("scrollGraphUrl");
chromeView.clearCache(true);
chromeView.clearHistory();
chromeView.getSettings().setJavaScriptEnabled(true);
chromeView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
chromeView.setScrollBarStyle(WebView.SCROLLBARS_OUTSIDE_OVERLAY);
chromeView.loadUrl(scrollGraphUrl);
}
Now I am getting below error: 08-12 10:06:06.218: E/chromium(28830): [ERROR:gles2_cmd_decoder.cc(5645)] PERFORMANCE WARNING: Some textures are unrenderable.
It works perfect if i open google chrome as external browser...... M I missing something here