I am trying to make an application that opens a certain file type (similar to a spreadsheet app that opens csv files) but I can’t find out how. All I need to do is ber able to set an intent to open that file and the method which contains the file path
UPDATE
I am not trying to open a file, i am trying to make my application be launched when another app wants to open my file.
well you have to become an content provider for that particular file type. Becoming content provider does not assures that you’ll be default provider though, when your application is installed android will notify user with option to make your application as default content provider. Now it’s up to user if he chooses your app to be default. It’s similar for having multiple Dialer’s, android asks you which dialer would you like to use by default.