问题
how can I protect an mp3 file I downloaded from my server (legal content owner) from being forwarded via email, Bluetooth etc.
I wish the file be playable on device media player so i will send it to ContentResolver.
I have seen this on some official apps for our region, but i do not know how to flag/mark my files as non share-able.
Thank You!
回答1:
how can I protect an mp3 file I downloaded from my server (legal content owner) from being forwarded via email, Bluetooth etc.
Technically, you can't, unless you implement your own MP3 player app and store it in there. If you are relying upon other apps to play the music, then by definition other apps have access to the music and could conceivably do things with it, such as sharing it via email, Bluetooth, etc.
However, in practice, if you are the one starting up the media player to play your music, and you do not offer options for sharing via email, Bluetooth, etc., then the user is unlikely to have any convenient means to do so themselves, except on rooted devices.
来源:https://stackoverflow.com/questions/13106338/android-protect-mp3-file-form-being-shared-but-still-playable