android :: Notification :: show
# Show the notification
fun show
do
sys.jni_env.push_local_frame(8)
var context = app.native_activity
var builder = new NativeNotificationBuilder(context)
# If no custom icon is specified, use app's
var small_icon = self.small_icon
if small_icon == null then small_icon = "icon"
var small_icon_id = app.resource_manager.other_id(small_icon.to_s, "drawable")
builder.small_icon = small_icon_id
# Other options
if title != null then builder.title = title.to_java_string
if text != null then builder.text = text.to_java_string
if ticker != null then builder.ticker = ticker.to_java_string
builder.ongoing = ongoing
var notif = builder.create
var manager = context.notification_manager
var id = self.id
if id == null then id = sys.next_notification_id
manager.notify(tag.to_java_string, id, notif)
self.id = id
sys.jni_env.pop_local_frame
end
lib/android/notification/notification.nit:67,2--97,4