Giter Club home page Giter Club logo

android-lockscreensample-disablehomebuttonkey's Introduction

LockScreenSample-Disable HomeButton or HomeKey Event

Android LockScreenSample Using Service - Disable HomeButton Key Event LockScreenSample use Android Service. So, Ignores HomeButton Key Event.

Download

Current version: [1.0.2]

Gradle:

compile 'com.github.dubulee:lockscreendiablehomebuttonkey:1.0.2'

As there are a lot questions about "how to disable home button in android?" on Stack Overflow, such as

This Sample support UnSoft Home Key(UnVirtual Home Key) like Samsung Galaxy And Soft Home Key(Virtual Home Key) like LG G, Google Nexus.

This Sample is similar to Microsoft corp. - Next Lock Screen, KaKao corp. - KaKaoTalk Notification Cover

Test Samsung Galaxy,LG G, Nexus5

###UnSoftKey - Test Samsung

ScreenShotScreenShot

###SoftKey - Test LG G, Nexus5

ScreenShotScreenShot ScreenShot

How to use

Test Start

Lockscreen.getInstance(ContextInstance).startLockscreenService();

Test Stop

Lockscreen.getInstance(ContextInstance).stopLockscreenService();

android-lockscreensample-disablehomebuttonkey's People

Contributors

hmm-umm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-lockscreensample-disablehomebuttonkey's Issues

Error:Exception thrown while executing model rule: org.gradle.api.publish.plugins.PublishingPlugin$Rules#addConfiguredPublicationsToProjectPublicationRegistry(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry, org.gradle.api.publish.PublishingExtension, org.gradle.api.internal.project.ProjectIdentifier)

Error:Exception thrown while executing model rule: org.gradle.api.publish.plugins.PublishingPlugin$Rules#addConfiguredPublicationsToProjectPublicationRegistry(org.gradle.api.internal.artifacts.ivyservice.projectmodule.ProjectPublicationRegistry, org.gradle.api.publish.PublishingExtension, org.gradle.api.internal.project.ProjectIdentifier)

What can I do?

Dont work in android 7

hi , i tested your sample apk , it doesnt work on Redmi Note 4x and Galaxy S7 (android 7).

Cannot resolve symbol 'ContextInstance'

Hello,
First of all thanks for that package. It might be really useful.

I get an error, which i write on to title. I add gradle dependecies and call the function : Lockscreen.getInstance(ContextInstance).startLockscreenService();

I hope, you'll find out why.
Happy coding

The screen is not turned off automatically as regular lock screen

As usual, the lock screen will be turned off automatically after 10s to save phone battery. We can toggle this feature on activity with the flag FLAG_KEEP_SCREEN_ON, but it seems we couldn't with window manager.

Is there anyway to turn off screen after 10s? Thanks

about memory usage

Memory usage has been increased when call lock screnn,and will not be reduced when unlock, what can I do

Notification drawer

Hi @DUBULEE

I've tried to impleemnt so that the status bar is shown in the lockscreen and that you can pull down the notification drawer. I've managed to get both by commenting out mParams.flags = WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS;

The problem now is that the drawer goes behind the lock screeen... Do you have any idea on how to solve this? Without making your custom notification manager appear on screen.

And for last,
thanks, It's a great project!

Softkey transparency

Hello @DUBULEE !
Thanks for starting this project !

As we see in your examples of the LG G and Google Nexus, do you know why the background of the others activities appears behind the virtual keys bar ? Can we do something about this or it's a virtual key mobile limitation ? did you try something like fullscreen or force black background of the softkeys ?
What are the differents option did you try to avoid this transparency? (to avoid spend time to retest them ..)

Regards,
Alex

not sure how to use stopLockscreenService

i have started a new project just to test this library

protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Lockscreen.getInstance(getApplicationContext()).startLockscreenService();
}

i'm able to see that if i turn my screen off and then on this activity goes on top of all but home button and back button are working :(

please kindly explain how to use it, and hanks for your work it's awesome !

在小米手机上没用

你好,在小米手机上,亮屏后无法出现自定义lockscreen,要在解锁后,才能看到自定义lockscreen。请问能实现类似网易云音乐的效果吗?即点亮屏幕后,即能看到自定义的LockScreen。(不是音乐播放的RemoteControlClient那种) 谢谢!

Difference Between APK and Code

While I've installed apk file and no overlay permission asked to me and when i executed the code It prompt overlay permission ...how you handle in the apk ? is there a difference between in apk and source code ?

Gradle sync error

Can't sync with Gradle.

Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed with multiple errors, see logs

how to use this library to disable home key in my activity

Hi i used your library it is perfect i want the same result but when i added

 `Lockscreen.getInstance(ContextInstance).startLockscreenService();`

in my oncreate and added
this Lockscreen.getInstance(ContextInstance).stopLockscreenService();
in my button where i wand to unlock but it is not disabling the home key. But your apk is disabling the home key in my phone. So please do say how to use it for my lockscreen i am stuck at this part for long days

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.