According to the doc, if the intent in startActivity(intent) is not
found, there will be an exception raised. Therefore I use a try/catch
block. However, even if I use a random string as the intent, the
promised exception does not occur.

Instead I see a dialog that says: "No application can perform this
function". I also get the same dialog if the intent is valid (picked
up by an app) but apparently doesn't want to act when the extras are
not what the app expects (e.g. my earlier question about
Intent.ACTION_SEND and mime types).

I am using the 1.5_r2 SDK on an AVD running 1.5, with the app running
at version 1.1 (sdk=2). Is this a doc error, a bug or am I
misunderstanding something? Can I simply delete the try/catch block?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to