Chooser intent has no apps
<p>The problem I have is that when this intent is started there are no apps to show. Why is that? I need all apps to be visible since onClick the button will go to any app the user wants to and save it (use this app as default). What could be the solution? </p>

<pre><code>Intent intent = new Intent(Intent.ACTION_ALL_APPS);
                        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        String title = getResources().getString(R.string.chooser_title);
                        Intent chooser = Intent.createChooser(intent, title);
                        chooser.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                        startActivity(chooser);
</code></pre>