commit | 23b4faf69437b732d681d9bee5c9a84379d5ccad | [log] [tgz] |
---|---|---|
author | Xavier Ducrohet <xav@android.com> | Thu Sep 24 17:41:13 2009 -0700 |
committer | Xavier Ducrohet <xav@android.com> | Fri Sep 25 11:57:44 2009 -0700 |
tree | b2f7ef4edda01b216aa7ed2137e7296b9e080f50 | |
parent | a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169 [diff] |
Use reflection to figure out a readable string from install error code. Instead of a switch that needs to be maintained, the code now look for public static final int fields in PackageManager whose names start with INSTALL_FAILED or INSTALL_PARSE_FAILED. If their int value match the error code, the name of the field is used as a human readable error string. Change-Id: If58ddc4d9ccc40a9a8aaec9de4cc7e4931db0292