I'm trying to make a screen with a pattern like Android Pattern Screen but not using it (I don't want lock my phone, only put a "private" section with a "door").
I need a screen to control the access a special section of my app so I have thought to use a pattern screen.
How can I do this? Where can I found a piece of code or and example?
Thanks :)
PD. The Screen I need is similar to this: http://www.actualidadgoogle.com/wp-content/uploads/2011/11/patron-desbloq-android.png
You can get the code from the android source. You can find the source here
Related
I need a code to use the lock screen instead of the system so that when i enter a specific password the device make the functionality that i codded it
Are you trying to implement a Lock Screen inside your app?? If so, take a look at the below links.
StackOverflow Discussion
GitHub
Has anyone got experience with developing an application to replace the default lock screen? I've been told it is not possible, however this application manages it.
Any tutorials or guidance you know of would be appreciated.
100% possible. Here are some links to get you started.
Android App and Pattern Lock Screen
Android Lock Screen Widget
Developing a custom lock screen
Try this one:
lockscreenswitchwidget
You can implement deviceAdminReciever to use device locks and all please have a look at this it explains everything about locks setting passwords.....
Update:
Use this library Link
and Source Here..
I know that there is already some apps can do this, such as:
WidgetLocker Lockscreen
Flyscreen
I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code.
And I wonder if it will be different to deal with when the screen is locked by draw pattern?
Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK.
I know that there is already some apps can do this, such as:
WidgetLocker Lockscreen
Flyscreen
I want to know how to do this in my app? What classes I can use? Or what articles I should read? I don't want to change the Android's source code.
And I wonder if it will be different to deal with when the screen is locked by draw pattern?
Have a look at this answer. You need to write your own home screen app which will implement the lockscreen behaviour that you require. There is sample code for writing your own home screen app in the Android SDK.
I want do an app,i want it look the same as this one:
I don't know how to write the word "writing" as the red mark ,and how to add the app icon on
the screen.
The answer is simple and yet annoying: It is not possible using the standard lock screen. Source of Android's lock screen describes where to find the source code of the default lock screen, and if you look into the source code of LockScreen.java you will find out that this information is hard coded. So basically you will have to wait for a new Android version to support this feature or program your own lock screen, which kind of misses the point. :-/
I only found a comment in the docu here that it could be possible to add a widget to the lock screen sometime. Any than this I found some apps that deliver a complete alternative lock screen.
So my guess it, that the clock on your screen is only able to show the info on the lock screen due to an extra (HTC?)-API that is not available for third party developer as suggested here: https://stackoverflow.com/questions/3556430 too.