Use system PIN dialog in Android application
<h2>Background</h2>

<p>I am trying to write an application which works like described below.</p>

<ul>
<li>When user start application it check if user have registered PIN on his device.</li>
<li>If user have registered PIN, application must show button "Continue with PIN".</li>
<li>When user press on button "Continue with PIN" system standard PIN dialog must appears. 
<img src="http://i.stack.imgur.com/miyXI.png" alt="enter image description here"></li>
<li>User enter his PIN and press "Continue" button. </li>
<li>After System must check if entered PIN is correct or no and continue working.</li>
</ul>

<hr>

<h2>Researches</h2>

<p>I have made some researches and find some articles on <a href="http://stackoverflow.com/">stackoverflow</a> and other internet sources which say "<strong><em><a href="http://stackoverflow.com/questions/7983143/where-can-i-find-examples-or-tutorials-about-creating-a-custom-android-lockscree">There is no way to develop a new custom unlock mechanism on a non-rooted phone.</a></em></strong>" or "<a href="http://stackoverflow.com/questions/10086659/use-system-pin-in-android"><strong><em>I would be surprised if you could, because then you would be probably able to steal the pin code, and I don't think anyone would want that.</em></strong></a>".</p>

<p>Also I have watched some video tutorials like <a href="http://www.youtube.com/watch?v=1_H4AlQaNa0"><strong><em>Tutorial: Android Internals - Building a Custom ROM, Pt. 1 of 2</em></strong></a> and <a href="http://www.youtube.com/watch?v=rFqELLB1Kk8"><strong><em>Tutorial: Android Internals - Building a Custom ROM, Pt. 2 of 2</em></strong></a>.</p>

<p><em><strong>EDITED</em></strong></p>

<p>I have made some researches today and found very interesting thing, I think I am on a right way to the solution, and I want to share my ideas with you. So looking in android sources I found an interesting files <strong><em>ChooseLockPassword.java</em></strong> (<em>packages\apps\Settings\src\com\android\settings</em>) and <strong><em>LockPatternUtils.java</em></strong> (*frameworks\base\core\java\com\android\internal\widget*) now I am interest in:</p>

<h3>Question</h3>

<p><strong>How can I call <code>LockPatternUtils</code> class function from my code</strong> ? Or Why I cant see that function in Eclipse ?</p>

<hr>

<h2>Decision</h2>

<p>So I think that the only way to get access to the Android <strong><em>system PIN dialog</em></strong> is to root the phone make some changes in the system files and use <strong><em>system PIN dialod</em></strong></p>

<hr>

<h2>Question</h2>

<ol>
<li>Can somebody provide me useful links about getting access to the system PIN dialog in the rooted phone.</li>
<li>Am I on a right way and can I solve my problem in this way ?</li>
<li>If anybody encountered such problem please help me to solve. </li>
</ol>

<p>Any Solutions ?</p>
