Android intent to open video with raw resource?

后端 未结 1 1945
借酒劲吻你
借酒劲吻你 2020-12-21 07:15

Does anyone know of an intent I can use to open a raw mp4 resource in the phone\'s video player? I tried this code:

    Uri video = Uri.parse( \"android.reso         


        
1条回答
  •  一向
    一向 (楼主)
    2020-12-21 07:57

    Other apps can't access your resources. You'll need to create a ContentProvider, or store the data in a place accessible to anyone (either SD card, or in a public folder in your local storage).

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