Hi all,
How
would I go about locking an application so that one would need to
re-enter a username and password to gain entry again. I know thats very
vague so here goes;
Background: Im new to C# and developing a
C# mobile app which displays confidential info to the user. Ideally, if
the user has not tapped the screen for x minutes, the application
should lock itself and not permit the user to see what it was
displaying. This functionality should also be available as an icon
incase the user voluntarily wants to lock the application.
This are my thoughts on accomplishing this: Have
a thread that monitors for taps and if the time between last tap
exceeds a certain threshold, then the screen lock is called (Is this
possible in C# ). If the user taps the lock icon, then the screen lock
should be called anyways. This therefore entails that I also write a
screen-saver of some type that gets invoked and hides the application.
Okay..thats
the idea. As mentioned previously, I am new to C# and my thoughts may
be too simplistic or too complicated i.e not a good C# way of solving
the problem. Im learning C# as I write this application and as such Im
always open to ideas. Any ideas are greatly appreciated.
<Nick>
|
|
Locking an application
Dreedle
I believe this is addressed here -
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=935134&SiteID=1