chromeview icon indicating copy to clipboard operation
chromeview copied to clipboard

Limitation should be noted!

Open sonusingh opened this issue 11 years ago • 4 comments

It would be great if it was made clear on the main page that this will not work on Android 3.x or below!

It would have saved me a lot of time trying to figure out why the application never started properly and crashed.

sonusingh avatar Dec 02 '13 07:12 sonusingh

Eclipse throws a compile error if you set minSdkVersion < Library's minSdkVersion.

ghost avatar Dec 02 '13 07:12 ghost

i don't get any compiler errors, but the following code doesn't seem to work:

package com.example.test;

import android.os.Bundle; import android.app.Activity; import android.view.Menu;

import us.costan.chrome.ChromeView;

public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    ChromeView.initialize(this);
    ChromeView chromeView = (ChromeView)findViewById(R.id.chromeView1);
    chromeView.loadUrl("http://www.google.com");
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is

present. getMenuInflater().inflate(R.menu.main, menu); return true; }

}

On Mon, Dec 2, 2013 at 7:34 AM, HackerK [email protected] wrote:

Eclipse throws a compile error if you set minSdkVersion < Library's minSdkVersion.

— Reply to this email directly or view it on GitHubhttps://github.com/pwnall/chromeview/issues/41#issuecomment-29599179 .

sonusingh avatar Dec 02 '13 07:12 sonusingh

Ah.. I use eclipse kepler and ADT 22.3.

And You MUST

ChromeView.initialize(this);

at application, not activity.

ghost avatar Dec 02 '13 13:12 ghost

It's also not working for Android 4.4 and above. This should be noted too, as it cost me quite some time finding this.

kashban avatar May 19 '14 07:05 kashban