Help me please, to check this code? why it run catch?? Android
<pre><code>public void getDataPermission() {

    final TextView twCheck = (TextView) findViewById(R.id.textView1);
    final TextView twPackageInfo = (TextView) findViewById(R.id.textView2);
    final ListView lwPackage = (ListView) findViewById(R.id.listView1);
    PackageManager pm = lwPackage.getContext().getPackageManager();
    PermissionInfo permissions;
    try {
        permissions = pm.getPermissionInfo("com.android.music",
                PackageManager.GET_PROVIDERS);
        Iterator it = ((Collection&lt;PackageInfo&gt;) permissions).iterator();
        // Temporary string
        String temp = "";
        // Counter package
        int i = 0;
        while (it.hasNext()) {
            PackageInfo rf = (PackageInfo) it.next();
            temp = rf.toString();
            twPackageInfo.append(temp);
        }

        temp = permissions.toString();
        twPackageInfo.append(temp);
        twCheck.append(" : Process try");

    } catch (NameNotFoundException e) {
        // TODO Auto-generated catch block
        twCheck.append(" : Process catch");
        e.printStackTrace();
    }

}
</code></pre>

<p>In my emulator has package:com.android.music.
I don't understand that why app process catch?
App should be to process catch. Why?</p>

<p>Sorry for my bad English.</p>
