package de.thedevstack.conversationsplus.providers; import android.net.Uri; import android.support.v4.content.FileProvider; import de.thedevstack.conversationsplus.BuildConfig; import de.thedevstack.conversationsplus.ConversationsPlusApplication; import de.thedevstack.conversationsplus.entities.DownloadableFile; /** * Created by lookshe on 27.03.16. */ public class ConversationsPlusFileProvider extends FileProvider { private static final String SCHEME = "content"; private static final String AUTHORITY = BuildConfig.APPLICATION_ID; public static Uri createUriForPrivateFile(DownloadableFile file) { return FileProvider.getUriForFile(ConversationsPlusApplication.getAppContext(), AUTHORITY, file); } }