As an Android player, to hide and display programs, use Notification to implement switching.
The Notification code is as follows:
String notificationMessage = (Audio) obj). name_label;
Notification notification = new Notification (R. drawable. icon, icationicationmessage, System. currentTimeMillis ());
Try {
Intent contentIntent = new Intent (getApplicationContext (),
Class. forName ("com. ***. ***. * *** "); // load the class. If the class name is directly passed, the page will be reloaded upon clicking, and the final page status cannot be restored.
ContentIntent. setFlags (Intent. FLAG_ACTIVITY_SINGLE_TOP );
PendingIntent pendingIntent = PendingIntent. getActivity (getApplicationContext (), 0, contentIntent, 0 );
Notification. setLatestEventInfo (PlayerService. this, getString (R. string. app_name), icationicationmessage, pendingIntent );
Notification. flags | = Notification. FLAG_ONGOING_EVENT;
Micationicationmanager. Y (id, notification );
} Catch (ClassNotFoundException ex ){
// Log
}
The author is idle in playing chess