startIntent with documents

85 views Asked by At

I have a problem, I have this code.

Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.fromFile(file));

        intent.setType("application/*");
        startNewActivity(intent);

I opened Documents but throws me an error , saying Documents has closed unexpectedly.

But on the other hand , if I navigate to the file location and I open it, Documents, opens me perfectly .

I trace capturing the whole I find this phone .

E/CAKEMIX_CRASHED﹕ java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.docs.editors.docs/com.qo.android.quickoffice.QuickofficeDispatcher}: android.content.ActivityNotFoundException: Unable to find explicit activity class {com.quickoffice.android/com.google.android.apps.docs.quickoffice.HomeActivity}; have you declared this activity in your AndroidManifest.xml?

all help as welcome.

THX

0

There are 0 answers