How to create a Fullscreen-Notification like the "Incoming Call"-Notification?

0 Matt B · January 22, 2015
Hey everybody,

i found the "Android App Development for Beginners"-Tutorial on Youtube and i really like them.
On my first project i need a (from my point of view) special kind of notification.

I need a notification like the "Incoming Call" Notification from Android.

Here are the main aspect it has to provide:
- Fullscreen (without statusline, titlebar, ...)
- Two Buttons (yes/no)
- Switch display on if it's switched off
- Show notification even if device is locked


I already have some ideas/code to create some of the functions.


For the fullscreen notification i created a fullscreen activity. But i don't know how to call it as notification.


Switch Display on and show notification 'topmost':
Window w = this.getWindow();
w.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
w.addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
w.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
w.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);


Does someone have an idea how to implement such a notification?

Thanks

Post a Reply

Replies

Oldest  Newest  Rating
0 Asad Haris · January 22, 2015
can't find the option on where to ask a question on the "forum", any help? 
  • 1

Java / Android Development

107,026 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator