When My app started, show a notification. then pull down the status bar,
click this notification, the app UI showed.
But when I press back button, the my-app disappeard, and the other my-app
show on top window, press back button again, get the home screen.
It's seem like two my-app in window stack. *but my expect is one app
instance.**
*
If current is home screen, pull down status bar, click notification, repeate
several times, just on "back" button to get home screen.
If launch My app from main menu icon, pull down status bar, click
notification, repeate several times, need multi-"back" button to get home
screen.
private void showStartNotify() {
Notification notification = new Notification(
R.drawable.stat_started,
getString(R.string.service_started),
System.currentTimeMillis());
PendingIntent contentIntent = PendingIntent.getActivity(this, 0,
new Intent(this, My.class), 0);
notification.setLatestEventInfo(this,
getString(R.string.service_name),
getString(R.string.service_started),
contentIntent);
notification.flags |= Notification.FLAG_ONGOING_EVENT;
mNotifyManager.notify(1, notification);
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en