I am trying to open doc, ppt, xls and pfg files with an application installed with an intent. For pdf I am using i.setDataAndType(Uri.fromFile(file), "application/pdf"); but if I do the following:
i.setDataAndType(Uri.fromFile(file), "application/doc");
I get an exception saying that there are no applications that can handle intentions. What am I doing wrong? I have QuickOffice installed, so I think it can open the file.
source share