Change the error message when attempting to open a file that cannot be opened.
Previously, a file that could not be opened had to be a failed download.
Now that we allow the download of files which cannot be opened, we need
a different error message when attempting to open them.
diff --git a/res/values/strings.xml b/res/values/strings.xml
index d81e38d..1999f54 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -603,7 +603,10 @@
external storage is busy so they cannot download anything. Informs
the user how to enable SD card storage -->
<string name="download_sdcard_busy_dlg_msg">The SD card is busy. To allow downloads, select \"Turn off USB storage\" in the notification.</string>
-
+
+ <!-- Title for a dialog informing the user that there is no application on
+ the phone that can open the file that was downloaded -->
+ <string name="download_no_application_title">Cannot open file</string>
<!-- Message for a dialog informing the user that there is no application on
the phone that can open the file that was downloaded -->
<string name="download_no_application">No application can be found to open this file.</string>
diff --git a/src/com/android/browser/BrowserDownloadPage.java b/src/com/android/browser/BrowserDownloadPage.java
index a2b144b..9c15c17 100644
--- a/src/com/android/browser/BrowserDownloadPage.java
+++ b/src/com/android/browser/BrowserDownloadPage.java
@@ -413,7 +413,7 @@
startActivity(intent);
} catch (ActivityNotFoundException ex) {
new AlertDialog.Builder(this)
- .setTitle(R.string.download_failed_generic_dlg_title)
+ .setTitle(R.string.download_no_application_title)
.setIcon(R.drawable.ssl_icon)
.setMessage(R.string.download_no_application)
.setPositiveButton(R.string.ok, null)