New Running Services UI.
This introduces a simplified (thanks, dsandler!) UI for Running Services,
collapsing the groups of apps and processes into single lines. Tapping
on a line moves to a new activity showing details on that group, where the
stop functionality is now available.
This UI is now also integrated into Manage Applications, as the Running
tab. You no longer get a really confusing, misleading, scary list of
every package that appears to be laying around for some reason.
The code was also re-organized, to put everything related to Manage
Applications and Running Services under its own package.
There is still some clean-up -- some performance improvements (such as
not re-computing the world when we switch to the details view), and if
this looks good then eradicating the old running services UI.
Change-Id: I3fc059c18060600742cab5b455d11ff74bf45ae3
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 78c0f5b..c3b0236 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -350,7 +350,7 @@
</intent-filter>
</activity>
- <activity android:name="ManageApplications"
+ <activity android:name=".applications.ManageApplications"
android:label="@string/manageapplications_settings_title"
android:clearTaskOnLaunch="true"
android:configChanges="orientation|keyboardHidden">
@@ -365,15 +365,22 @@
</intent-filter>
</activity>
- <activity android:name="InstalledAppDetails" android:label="@string/application_info_label">
+ <!-- Keep compatibility with old shortcuts. -->
+ <activity-alias android:name=".ManageApplications"
+ android:targetActivity=".applications.ManageApplications"
+ android:exported="true" />
+
+ <activity android:name=".applications.InstalledAppDetails"
+ android:label="@string/application_info_label">
<intent-filter>
- <action android:name="android.intent.action.VIEW" />
+ <action android:name="android.settings.APPLICATION_DETAILS_SETTINGS" />
<category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.VOICE_LAUNCH" />
+ <data android:scheme="package" />
</intent-filter>
</activity>
- <activity android:name="RunningServices"
+ <!--
+ <activity android:name=".applications.RunningServices"
android:label="@string/runningservices_settings_title"
android:clearTaskOnLaunch="true">
<intent-filter>
@@ -384,6 +391,24 @@
<category android:name="com.android.settings.SHORTCUT" />
</intent-filter>
</activity>
+ -->
+
+ <!-- Provide direct entry into manage apps showing running services. -->
+ <activity-alias android:name=".RunningServices"
+ android:targetActivity=".applications.ManageApplications">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.DEFAULT" />
+ <category android:name="android.intent.category.MONKEY" />
+ <category android:name="android.intent.category.VOICE_LAUNCH" />
+ <category android:name="com.android.settings.SHORTCUT" />
+ </intent-filter>
+ </activity-alias>
+
+ <activity android:name=".applications.RunningServiceDetails"
+ android:theme="@android:style/Theme.NoTitleBar"
+ android:label="@string/runningservicedetails_settings_title">
+ </activity>
<activity android:name="SecuritySettings"
android:label="@string/location_security_settings_title"