|
@@ -38,7 +38,7 @@ import android.support.v4.content.LocalBroadcastManager;
|
|
|
import android.util.Log;
|
|
|
import android.widget.Toast;
|
|
|
|
|
|
-import de.tudarmstadt.informatik.hostage.commons.HelperUtils;
|
|
|
+import de.tudarmstadt.informatik.hostage.R;
|
|
|
import de.tudarmstadt.informatik.hostage.location.MyLocationManager;
|
|
|
import de.tudarmstadt.informatik.hostage.persistence.HostageDBOpenHelper;
|
|
|
import de.tudarmstadt.informatik.hostage.protocol.Protocol;
|
|
@@ -412,8 +412,8 @@ public class Hostage extends Service {
|
|
|
private void attackNotification() {
|
|
|
SharedPreferences defaultPref = PreferenceManager.getDefaultSharedPreferences(this);
|
|
|
String strRingtonePreference = defaultPref.getString("pref_notification_sound", "content://settings/system/notification_sound");
|
|
|
- builder = new NotificationCompat.Builder(this).setContentTitle(getString(R.string.app_name)).setTicker("Honeypot under attack!")
|
|
|
- .setContentText("Honeypot under attack!").setSmallIcon(R.drawable.ic_service_red).setAutoCancel(true).setWhen(System.currentTimeMillis())
|
|
|
+ builder = new NotificationCompat.Builder(this).setContentTitle(getString(R.string.app_name)).setTicker(getString(R.string.honeypot_live_threat))
|
|
|
+ .setContentText(getString(R.string.honeypot_live_threat)).setSmallIcon(R.drawable.ic_service_red).setAutoCancel(true).setWhen(System.currentTimeMillis())
|
|
|
.setSound(Uri.parse(strRingtonePreference));
|
|
|
Intent launchIntent = new Intent(getApplicationContext(), MainActivity.class);
|
|
|
TaskStackBuilder stackBuilder = TaskStackBuilder.create(this);
|