chromeview icon indicating copy to clipboard operation
chromeview copied to clipboard

i can't open chromeview

Open taiht opened this issue 11 years ago • 7 comments

error inflating class us.costan.chrome.ChromeView

taiht avatar Aug 19 '13 08:08 taiht

I have the same problem.

CesarValverdeG avatar Oct 24 '13 23:10 CesarValverdeG

same with my problem

qinglin avatar Nov 08 '13 01:11 qinglin

HOW TO FIX IT?

peter-lvp avatar Feb 20 '14 09:02 peter-lvp

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

mickyarun avatar Apr 24 '14 11:04 mickyarun

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

error

vipulanurag avatar Aug 11 '14 19:08 vipulanurag

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

mickyarun avatar Aug 12 '14 09:08 mickyarun

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

vipulanurag avatar Aug 12 '14 15:08 vipulanurag