import android.app.Activity;\r
import android.app.AlertDialog;\r
import android.app.Dialog;\r
+import android.app.Notification;\r
+import android.app.NotificationManager;\r
+import android.app.PendingIntent;\r
import android.app.ProgressDialog;\r
import android.content.Context;\r
import android.content.DialogInterface;\r
\r
// init translated text\r
NavitTextTranslations.init();\r
-\r
+ \r
+ // Setup a notification in the android notification bar, remove it in the exit() function\r
+ NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\r
+ Notification notification = new Notification(R.drawable.icon,"Navit is running",0);\r
+ notification.flags = Notification.FLAG_NO_CLEAR;\r
+ PendingIntent appIntent = PendingIntent.getActivity(getApplicationContext(), 0, getIntent(), 0);\r
+ notification.setLatestEventInfo(getApplicationContext(), "Navit running", "Navit still running", appIntent);\r
+ nm.notify(R.string.app_name, notification);\r
+ \r
// get the local language -------------\r
Locale locale = java.util.Locale.getDefault();\r
String lang = locale.getLanguage();\r