Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

i can't open chromeview #26

Open
taiht opened this issue Aug 19, 2013 · 7 comments
Open

i can't open chromeview #26

taiht opened this issue Aug 19, 2013 · 7 comments

Comments

@taiht
Copy link

taiht commented Aug 19, 2013

error inflating class us.costan.chrome.ChromeView

@CesarValverdeG
Copy link

I have the same problem.

@qinglin
Copy link

qinglin commented Nov 8, 2013

same with my problem

@peter-lvp
Copy link

HOW TO FIX IT?

@mickyarun
Copy link

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..

@vipulanurag
Copy link

I did all the above steps but still getting the below error.. Can you pls help

error

@mickyarun
Copy link

Did you initialized chrome view in application class?

On Tue, Aug 12, 2014 at 12:43 AM, Anurag Pandey notifications@github.com
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
#26 (comment).

Thanks,
Arun.R

@vipulanurag
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants