Java Code Examples for android.app.Notification.Builder#build()

The following examples show how to use android.app.Notification.Builder#build() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BasicPushNotificationBuilder.java    From letv with Apache License 2.0 5 votes vote down vote up
@TargetApi(16)
final Notification a(Builder builder) {
    builder.setDefaults(this.notificationDefaults);
    builder.setSmallIcon(this.statusBarDrawable);
    Notification build = builder.build();
    build.flags = this.notificationFlags;
    return build;
}
 
Example 2
Source File: DefaultPushNotificationBuilder.java    From letv with Apache License 2.0 4 votes vote down vote up
@TargetApi(16)
Notification a(Builder builder) {
    return builder.build();
}