Quantcast
Channel: xda-developers - Android Software and Hacking General [Developers Only]
Viewing all articles
Browse latest Browse all 3614

[Q] no applications can perform this action

$
0
0
Dear all,

I am developing a small Android application with Gingerbread (2.3.3). I want to send a message home to myself when the application crashes. I have found enough examples of how to do this, have implemented it using Intent.ACTION_SEND. Everything works wonderfully, even in the emulator - but only when the emulator has a configured email client. When the emulator has no configured email client, the message "no applications can perform this action" is displayed to the user. This is also not surprising.

My question is: is it possible to trap or suppress this "no applications can perform this action" message before it gets to the user? I know that most users of my application will have a configured Email application - but there are some users that will not have email configured - and I would like my application to fail quietly. I have tried using PackageManager.queryIntentActivities, but this returns at least one entry in the list - again not surprising because the email application is installed - it is just not properly configured.

Does anyone have any ideas how I can trap or suppress the message?

Viewing all articles
Browse latest Browse all 3614

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>