summaryrefslogtreecommitdiff
path: root/apps/Development/src/com/android/development/Development.java
diff options
context:
space:
mode:
Diffstat (limited to 'apps/Development/src/com/android/development/Development.java')
-rw-r--r--apps/Development/src/com/android/development/Development.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/Development/src/com/android/development/Development.java b/apps/Development/src/com/android/development/Development.java
index a3979f219..8a317cd27 100644
--- a/apps/Development/src/com/android/development/Development.java
+++ b/apps/Development/src/com/android/development/Development.java
@@ -16,8 +16,13 @@
package com.android.development;
+import java.util.List;
+
import android.app.LauncherActivity;
import android.content.Intent;
+import android.content.pm.PackageManager;
+import android.content.pm.ResolveInfo;
+import android.provider.Settings;
public class Development extends LauncherActivity
{
@@ -25,7 +30,17 @@ public class Development extends LauncherActivity
protected Intent getTargetIntent() {
Intent targetIntent = new Intent(Intent.ACTION_MAIN, null);
targetIntent.addCategory(Intent.CATEGORY_TEST);
- targetIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
return targetIntent;
}
+
+ protected void onSortResultList(List<ResolveInfo> results) {
+ super.onSortResultList(results);
+ Intent settingsIntent = new Intent(Settings.ACTION_APPLICATION_DEVELOPMENT_SETTINGS);
+ List<ResolveInfo> topItems = getPackageManager().queryIntentActivities(
+ settingsIntent, PackageManager.MATCH_DEFAULT_ONLY);
+ if (topItems != null) {
+ super.onSortResultList(topItems);
+ results.addAll(0, topItems);
+ }
+ }
}