Closed alongubkin closed 10 years ago
The problem was that chromeview doesn't work on Android 4.4, but since WebView is backed by Chromium in 4.4, I'll just make 2 different apks, one for earlier OS version and one for 4.4.
There is no need to create two different APKs. Just select the engine based on the OS version.
In your Activity.onCreate:
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.init(); // For Android 4.0-4.3 use ChromeView because WebView is too bugged if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH && Build.VERSION.SDK_INT < Build.VERSION_CODES.KITKAT) { ChromeView.initialize(this); ChromeView chromeView = new ChromeView(webnachrichten.this);
ChromeSettings settings = chromeView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDatabaseEnabled(true);
settings.setDomStorageEnabled(true);
setContentView(chromeView);
}
super.loadUrl(Config.getStartUrl());
}
I'm trying to run chromeview and when I call
ChromeView.initialize
anUnsatsifiedLinkError
exception is thrown.These are the steps I did:
What is the problem? How can I fix it?