pwnall / chromeview

Proof of concept Android WebView implementation based on Chromium code
1.69k stars 434 forks source link

i can't open chromeview #26

Open taiht opened 10 years ago

taiht commented 10 years ago

error inflating class us.costan.chrome.ChromeView

CesarValverdeG commented 10 years ago

I have the same problem.

qinglin commented 10 years ago

same with my problem

peter-lvp commented 10 years ago

HOW TO FIX IT?

mickyarun commented 10 years ago

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 commented 9 years ago

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

error

mickyarun commented 9 years ago

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 https://github.com/pwnall/chromeview/issues/26#issuecomment-51826482.

Thanks, Arun.R

vipulanurag commented 9 years ago

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