Quantcast
Viewing all articles
Browse latest Browse all 8068

Opening a File PLEASE HELP

For the love of god, lets say i have downloaded a file, i have the file location

var intent = Ti.Filesystem.getFile(fileloc);
 
                    Ti.Android.currentActivity.startActivity(Ti.Android.createIntent({
 
                    action: Ti.Android.ACTION_VIEW,
 
                    type: 'application/x-zip',
 
                    data: intent.getNativePath()
 
    })
 
    );  
        Ti.Android.currentActivity.startActivity(intent);
how on earth do i get it to open with a default app i just keep getting the error
Uncaught Error: No Activity found to handle Intent { act=android.intent.action.VIEW

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>