1

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?

Felix G.
  • 6,365
  • 2
  • 16
  • 24
  • You may want to check this: http://stackoverflow.com/questions/13137339/can-we-get-chrome-browsing-history-bookmarks-in-our-android-app – Felix G. Feb 14 '16 at 15:38

0 Answers0