FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
AndroidTutorialForBeginners/Notification.java at master · Progzizo/AndroidTutorialForBeginners · GitHub
Progzizo
/
AndroidTutorialForBeginners
Public
forked from
hussien89aa/AndroidTutorialForBeginners
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
AndroidTutorialForBeginners
/
Notification.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (7 loc) · 392 Bytes
Breadcrumbs
AndroidTutorialForBeginners
/
Notification.java
Copy path
File metadata and controls
9 lines (7 loc) · 392 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
NotificationCompat
.
Builder
nbuild
=
new
NotificationCompat
.
Builder
(
this
);
nbuild
.
setContentTitle
(
"Danger"
)
.
setContentText
(
"it will run soon"
)
.
setSmallIcon
(
R
.
drawable
.
play
);
NotificationManager
manager
=(
NotificationManager
)
getSystemService
(
Context
.
NOTIFICATION_SERVICE
);
manager
.
notify
(
1
,
nbuild
.
build
());
manager
.
cancel
(
1
);
Back
|
FazBrowse Home
|
New Git URL