From 01ca99032822e42486451a3b5aab4620580cec7b Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Mon, 28 Feb 2011 13:38:12 -0800 Subject: More descriptive errors for install failures DO NOT MERGE Backport of Ica79bece0fd29c27126e1ee51daeac96affaa1ab to use the removal failure error codes. This allows users to understand why a package could not be removed (i.e., device administrators). Bug: 4440857 Change-Id: I7f8af4115d21f2e746bc83f3ddc8a7b050c2b732 --- res/drawable/ic_result_status.xml | 21 +++++++++ res/layout/op_progress.xml | 13 +++++- res/layout/uninstall_progress.xml | 9 ++++ res/values/strings.xml | 27 ++++++++++++ .../packageinstaller/InstallAppProgress.java | 37 +++++++++++++--- .../packageinstaller/UninstallAppProgress.java | 51 +++++++++++++++++----- 6 files changed, 142 insertions(+), 16 deletions(-) create mode 100644 res/drawable/ic_result_status.xml diff --git a/res/drawable/ic_result_status.xml b/res/drawable/ic_result_status.xml new file mode 100644 index 00000000..5e8fe977 --- /dev/null +++ b/res/drawable/ic_result_status.xml @@ -0,0 +1,21 @@ + + + + + + + + \ No newline at end of file diff --git a/res/layout/op_progress.xml b/res/layout/op_progress.xml index ded050c3..4e8f9b1f 100755 --- a/res/layout/op_progress.xml +++ b/res/layout/op_progress.xml @@ -31,8 +31,19 @@ android:text="@string/installing" android:paddingTop="16dip" android:paddingLeft="16dip" - android:paddingBottom="16dip" android:textAppearance="?android:attr/textAppearanceMedium"/> + + +