Skip to content Skip to sidebar Skip to footer

Share Pdf File Via My Application On Android

Hi I have to develop an application which should enable sharing of pdf files. I have to create a service wich puts my application as default for .PDF file sharing. As you can see o

Solution 1:

http://www.vogella.com/articles/AndroidIntent/article.html

Go here, then check

4.3. Example: Register an activity forthe share intent

Solution 2:

You need to register it as a reciever for the SEND action. An example is given here. The mime type for pdf is 'application/pdf'.

Solution 3:

I think you cannot force that, its totally on android system, thats why it pushes for a chooser with all the apps that has registered themselves as handler for specified data type, following which user can mark it as default or not.

Post a Comment for "Share Pdf File Via My Application On Android"