Show system settings fragment/activity inside your own app
<p>I need to display application settings screen for a specific system application in my own Android app. Currently I can only launch it as a separate activity and on a timer in the background I check if user performed the action (Force stop) and then re-lauch my activity.</p>

<p>What I have now:</p>

<pre><code>public static void showInstalledAppDetails(Context context, String packageName)
{
    Intent intent = new Intent();
    intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
    Uri uri = Uri.fromParts("package", packageName, null);
    intent.setData(uri);
    context.startActivity(intent);
}
</code></pre>

<p>I would like to integrate the settings screen into my own application, I have tried using ActivityGroup and then launching system settings as child activity. The operation fails with Security Exception (lack of MANAGE_USB permission).</p>

<p>Is there a way to make this work?</p>

<p>Thanks, Swav</p>
