【发布时间】:2015-09-21 23:37:49
【问题描述】:
它正在添加指向存储在外部 url 中的 cookie 策略的链接。但不像在文本中添加链接。帮我在文本中添加一个 url,到策略 url。谢谢
@Override
public void onStart() {
super.onStart();
final SharedPreferences settings =
getSharedPreferences("localPreferences", MODE_PRIVATE);
if (settings.getBoolean("isFirstRun", true)) {
new AlertDialog.Builder(this)
.setTitle("Cookies")
.setMessage("On this site device identifiers are used to personalize content and ads,"
+ " in order to provide social media features and to analyze traffic. "
+ "We also share these identifiers and other information on your device with our social media partners, "
+ "advertising and web analytics./// En este sitio se usan identificadores de dispositivo"
+ " para personalizar el contenido y los anuncios, con el fin de ofrecer funciones de medios sociales"
+ " y para analizar el tráfico. Además, compartimos estos identificadores y otra información"
+ " sobre su dispositivo con nuestros partners de medios sociales,"
+ " de publicidad y de análisis web. http://www.urlaboutcookiepolicy.com")
.setNeutralButton("Close message", new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
settings.edit().putBoolean("isFirstRun", false).commit();
}
}).show();
}
}
【问题讨论】:
-
检查我的答案你会知道的