嗨我想在android文件系统中添加新功能后修复问题,但是我收到此错误:
android.os.FileUriExposedException:file:///storage/emulated/0/MyApp/Camera_20180105_172234.jpg通过ClipData.Item.getUri()暴露在app之外
所以我希望有人可以帮我解决这个问题:)
谢谢
android.os.FileUriExposedException: file:///storage/emulated/0/MyApp/Camera_20180105_172234.jpg exposed beyond app through ClipData.Item.getUri()
Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个.sh脚本,检查/ etc/hosts中是否存在某些类似"teamspeak.com"的IP /域,如果没有,那么我想在hosts文件中添加一些东西.
现在我正在尝试这个:
if ! grep -q "teamspeak.com == teamspeak.com" /etc/hosts; then
echo "Exists"
else
echo "Add to etc host ting here" >> /etc/hosts;
fi
Run Code Online (Sandbox Code Playgroud)