I would like to open Google docs using intent from my application.
I already have a document in web (which has the permission "Anyone with the link can view").
I would like to add the document link in intent-data.
My objective is, on tapping a button Google docs application will open up displaying the document (no intent chooser dialog will be displayed)
Any help is appreciated. Thank you.
Try this code it will not open intent Chooser dialoge
Intent markerIntent=new Intent(Intent.ACTION_VIEW);
markerIntent.setData(Uri.parse("market://details?id=com.google.android.apps.docs.editors.docs"));
startActivity(markerIntent);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.