android - Google documents mime type -


i trying access google doc on android 4.4 using intent.action_get_content, documents in google drive chooser appear grayed out (not selectable). can doc/docx files on google drive fine, not google documents. mime types specified match ones listed in google drive's supported mime types.

here code snippet (running on android 4.4):

intent intent = new intent(intent.action_get_content); intent.addcategory(intent.category_openable); intent.settype("*/*"); intent.putextra(intent.extra_mime_types, new string[]{         "application/msword",         "application/vnd.oasis.opendocument.text",         "application/vnd.openxmlformats-officedocument.wordprocessingml.document",         "application/vnd.openxmlformats-officedocument.wordprocessingml.template",         "application/vnd.google-apps.document",         "application/vnd.google-apps.kix", }); startactivityforresult(intent, 0); 

any ideas on might wrong?

google drive supports multiple file types, , "google doc" 1 such file type. suspect google drive may contain other file types. example, depending on use case, should consider including following mime types:

application/vnd.google-apps.presentation application/vnd.google-apps.spreadsheet application/vnd.google-apps.drawing 

however, not cover file types possible. need understand file types want support , include mime types.

or, if want support all openable file types, should not specify extra_mime_types @ all.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -