Two notification problem:
1.notification how to be able to remind only once, or not to remind the corresponding activity, but are also reminded of the information, or have in the status bar when no reminder! Or not repeated reminders! (Now the situation is such that every once went to check the data, the data will remind! That case, notification will always remind, will make people bored!)
2.ActivityGroup, all the activity is through the following code into a view then add ActivityGroup, the code goes
/ / To jump interface
Intent intent = new Intent (this, B.class) addFlags (Intent.FLAG_ACTIVITY_CLEAR_TOP);.
/ / Put an Activity into a View
. Window w = group.getLocalActivityManager () startActivity ("B", intent);
View view = w.getDecorView ();
/ / Add the View large ActivityGroup in
group.setContentView (view);
Use notification alert is normal in ActivityGroup, but prompted click the status bar to jump to the corresponding activity, that will create a new activity, and this activity is not ActivityGroup, and will cover the following tab label! I ask how can click on the status bar to prompt new activity added to ActivityGroup in!
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
1.notification.flags | = Notification.FLAG_ONLY_ALERT_ONCE; together with this property if this provision is no longer ringing or vibrating notification in the notification bar prompts
Notification bar shows the current notification has been Andrews is impossible to get, you can think of ways to use log files to record the way, showing what is recorded, which can record your current show whether you need to display a notification message, I click to
jump to the first empty your default interface need to jump jump to transit interface, to be transit, the transit time records do show clear action2 Click certainly will jump to a new interface, this is basically impossible to avoid
Reply:
thanks!
No comments:
Post a Comment