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

Limitation should be noted! #41

Open
sonusingh opened this issue Dec 2, 2013 · 4 comments
Open

Limitation should be noted! #41

sonusingh opened this issue Dec 2, 2013 · 4 comments

Comments

@sonusingh
Copy link

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.

@ghost
Copy link

ghost commented Dec 2, 2013

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

@sonusingh
Copy link
Author

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//issues/41#issuecomment-29599179
.

@ghost
Copy link

ghost commented Dec 2, 2013

Ah.. I use eclipse kepler and ADT 22.3.

And You MUST

ChromeView.initialize(this);

at application, not activity.

@kashban
Copy link

kashban commented May 19, 2014

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.

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

2 participants