Changed code to ensure it always is taken in foreground

Changed code to ensure it always is taken in foreground (maybe we need a switch for this option)?
Also we need in Android-manifest: android:launchMode="singleTask" or android:launchMode="singleIstance"