summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/com/android/packageinstaller/InstallAppProgress.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/com/android/packageinstaller/InstallAppProgress.java b/src/com/android/packageinstaller/InstallAppProgress.java
index c6e3a46..7554704 100755
--- a/src/com/android/packageinstaller/InstallAppProgress.java
+++ b/src/com/android/packageinstaller/InstallAppProgress.java
@@ -22,6 +22,7 @@ import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.PendingIntent;
+import android.content.ActivityNotFoundException;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
@@ -375,7 +376,11 @@ public class InstallAppProgress extends Activity implements View.OnClickListener
}
clearCachedApkIfNeededAndFinish();
} else if(v == mLaunchButton) {
- startActivity(mLaunchIntent);
+ try {
+ startActivity(mLaunchIntent);
+ } catch (ActivityNotFoundException e) {
+ Log.e(TAG, "Could not start activity", e);
+ }
clearCachedApkIfNeededAndFinish();
}
}