Lock An app with password
<p>I would like to make an apps in android. From which i can lock other installed apps with password.
Is there any way? Please help me in coding functionality..
I can read all installed apps by following code. But i need to know how can i lock another apps?</p>

<pre><code>    PackageManager pm = getPackageManager();
    List&lt;ApplicationInfo&gt; apps = pm.getInstalledApplications(0);
    List&lt;ApplicationInfo&gt; installedApps = new ArrayList&lt;ApplicationInfo&gt;();

    for(ApplicationInfo app : apps) {
        ApplicationInfo aa = app;
        //checks for flags; if flagged, check if updated system app
        if((app.flags &amp; ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) == 1) {
            installedApps.add(app);
            Log.v("__________________",""+aa.processName.toString());

        //it's a system app, not interested
        } else if ((app.flags &amp; ApplicationInfo.FLAG_SYSTEM) == 1) {
            //Discard this one
        //in this case, it should be a user-installed app
             installedApps.add(app);
             Log.v("__________________",""+aa.processName.toString());
        } else {
            installedApps.add(app);

        }

    }
</code></pre>
