Question

I've been working on making customized lock screen.

I think I succeeded on making view come up when the screen is turned on.

However, I am wondering how I can make my app realize user's swipe activity in order to make screen go to the home screen just like the normal android lock screen does.

Any suggestion will be very helpful thx!

Was it helpful?

Solution

Here are some examples to detect right,left,up and down swipes.You can detect any of the swipes and finish all activities to exit from your app.

Example 1

Example 2

Example 3

You can ask if you have any further queries.Happy coding :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top