Blog: https://www.giorgosneokleous.com/
StackOverflow: https://stackoverflow.com/users/3330058/giorgos-neokleous
Twitter: https://twitter.com/neokleoys2005
Full-Screen Intent Notification Android Example
License: MIT License
Blog: https://www.giorgosneokleous.com/
StackOverflow: https://stackoverflow.com/users/3330058/giorgos-neokleous
Twitter: https://twitter.com/neokleoys2005
Hi, the componet is not work in Android 11.
After the LockScreenActivity
is launched over the lockscreen and there's no password configured when pressing back button you will go back to the MainActivity
instead of the lockscreen.
The fix is to add attributes android:showWhenLocked(true)
and android:turnScreenOn(true)
to the LockScreenActivity
tag in the manifest. The code in the LockScreenActivity
class and the attribute android:showOnLockScreen
are useless (at least on Android 10). Fix it by yourself, I'm just too lazy to create a PR.
Thanks for this VERY helpful example!
The issue is that the app can not wake the device since it is missing the wake lock permission:
<uses-permission android:name="android.permission.WAKE_LOCK" />
By adding this permission the app would be able to wake the device as well. As it stands it does not open in sleep-mode.
Hello,
I'm trying to adapt an existing application for Android 10.
We used to switch to an alarm full screen activity (thus interrupting the user) in case of a high importance events.
This seems no more possible with Android 10.
What is your experience?
I thought that we could display a full screen notification, but your sample seems to prove me wrong, in the sense that the notification is not full screen (like an incoming call would?).
Hi,
Thank you for this wonderful example. Helped me very much. But, I'm having an issue when the device is locked and the app is not open.
Greetings, I have defined Reminder. I want to show an Alert message to the user in the application when it is time for the reminder objects. How do I support this?
Hi,
nice project I have learned much from this.
I am testing scheduled fullscreen intent and it do not start when phone - Samsung A51 Android 10 - is turned off.
I can see sound from notification, but the screen is always off.
I have add
android:showOnLockScreen="true android:showWhenLocked="true"
but it did not help.
I am also trying to add some more permissions to manifest, but it also do not help me.
But your similar project works much better - github.com โบ yuriykulikov โบ AlarmClock
I am trying to add some code from your AlarmClock to this project, but I am probably missing something.
What is the different ? What is important to add here to start work from phone, which is turned off ?
Best Regards
Slavomir Fabian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.