[英]How are privacy policies done?
I am curious about the proper way of doing privacy policies if displaying natively in a mobile app? 如果在移动应用程序中本地显示,我对制定隐私策略的正确方法感到好奇吗? I can create a string constant, however, it seems like it would be easier to add as a text file and then read from the text file.
我可以创建一个字符串常量,但是,将其添加为文本文件然后从该文本文件中读取似乎会更容易。 This is what I wanted to do, however, the text that should be hyperlinked would not be hyperlinked.
这就是我想做的,但是,应该超链接的文本不会被超链接。
private String readFromFile() {
String ret = "";
try {
InputStream inputStream = openFileInput("config.txt");
if ( inputStream != null ) {
InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
String receiveString = "";
StringBuilder stringBuilder = new StringBuilder();
while ( (receiveString = bufferedReader.readLine()) != null ) {
stringBuilder.append(receiveString);
}
inputStream.close();
ret = stringBuilder.toString();
}
}
catch (FileNotFoundException e) {
Log.e("login activity", "File not found: " + e.toString());
} catch (IOException e) {
Log.e("login activity", "Can not read file: " + e.toString());
}
return ret;
}
So how is everyone doing this? 那么,每个人都如何做到这一点?
好吧,如果您计划更改策略,则希望将其从数据库中提取出来。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.