diff options
author | Konstantin Lopyrev <klopyrev@google.com> | 2010-08-18 22:08:09 -0700 |
---|---|---|
committer | Konstantin Lopyrev <klopyrev@google.com> | 2010-08-27 09:09:02 -0700 |
commit | 97b0639645d9c387cdd9884272e053c467a240da (patch) | |
tree | 7c952e2b4b5287d866832f9ce95a9e3aaf2bea89 /hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java | |
parent | 70a830d8ab396328ab984c75f923400af6a52e55 (diff) | |
download | sdk-97b0639645d9c387cdd9884272e053c467a240da.zip sdk-97b0639645d9c387cdd9884272e053c467a240da.tar.gz sdk-97b0639645d9c387cdd9884272e053c467a240da.tar.bz2 |
Creating the application
Change-Id: I8f2fce7328cc1d93caed1cf003f04e41204f864c
Diffstat (limited to 'hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java')
-rw-r--r-- | hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java b/hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java index 8d77410..f26cc2c 100644 --- a/hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java +++ b/hierarchyviewer2/app/src/com/android/hierarchyviewer/HierarchyViewerApplicationDirector.java @@ -30,6 +30,10 @@ public class HierarchyViewerApplicationDirector extends HierarchyViewerDirector private final ExecutorService executor = Executors.newSingleThreadExecutor(); + public static HierarchyViewerDirector createDirector() { + return director = new HierarchyViewerApplicationDirector(); + } + @Override public void terminate() { super.terminate(); @@ -43,9 +47,6 @@ public class HierarchyViewerApplicationDirector extends HierarchyViewerDirector @Override public String getAdbLocation() { String hvParentLocation = System.getProperty("com.android.hierarchyviewer.bindir"); - // TODO REMOVE THIS. - hvParentLocation = "/usr/local/google/android-ext/out/host/linux-x86/bin"; - System.out.println(hvParentLocation); if (hvParentLocation != null && hvParentLocation.length() != 0) { return hvParentLocation + File.separator + SdkConstants.FN_ADB; } @@ -58,12 +59,12 @@ public class HierarchyViewerApplicationDirector extends HierarchyViewerDirector * progress bar to show that we are doing something in the background. */ @Override - public void executeInBackground(final Runnable task) { + public void executeInBackground(final String taskName, final Runnable task) { executor.execute(new Runnable() { public void run() { - System.out.println("STARTING TASK"); + HierarchyViewerApplication.getApp().startTask(taskName); task.run(); - System.out.println("ENDING TASK"); + HierarchyViewerApplication.getApp().endTask(); } }); } |