Android Sending image from assets folder using Content Provider?

后端 未结 1 1637
温柔的废话
温柔的废话 2021-01-27 05:49

Hello~ I\'m trying to send an image from the assets folder in an application via a general intent (so the user can send an image to any other application which accepts such an i

1条回答
  •  抹茶落季
    2021-01-27 06:30

    Thanks to CommonsWare, I realized the issue here. The problem is where the provider is supposed to be declared within the manifest- specifically, between the application tags.

    So, the manifest should look like this...

    
    
        
            
        
    
    
    

    Notice that in the code I posted within the question, the provider was between the manifest tags yet outside the application tags (similar to where permissions are declared). Instead, the provider declaration must be between the application tags, just like where Activities are declared.

    0 讨论(0)
提交回复
热议问题