I'm making an application that allows the user to access their bookmarks in Google Chrome on an onClick
event. I have tried the following, but I get a runtime
error on my onClick
event
My Code is as follows
public void onClickbtnSavedArticles(View view) {
Uri uri = Uri.parse("chrome://bookmarks/"); // missing 'http://' will cause crashed
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
For some reason it doesn't seem to find chrome://bookmarks/
as a URL.
Any ideas on how I would go about fixing this issue?