no apps can ios canperformaction this action

The page is temporarily unavailable
nginx error!
The page you are looking for is temporarily unavailable.
Please try again later.
Website Administrator
Something has triggered an error on your
This is the default error page for
nginx that is distributed with
It is located
/usr/share/nginx/html/50x.html
You should customize this error page for your own
site or edit the error_page directive in
the nginx configuration file
/etc/nginx/nginx.conf.android - No apps can perform this action - Stack Overflow
Join Stack Overflow to learn, share knowledge, and build your career.
or sign in with
When I am trying to invoke implicit intent with action "Intent.ACTION_GET_CONTENT", I am getting this error alert "No apps can perform this action." Thanks in advance. Please see my code below.
Intent intent = new Intent();
intent.setType("*/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(Intent.createChooser(intent, "Select File"), SELECT_FILE);
43.8k1196112
Problem coming from
This is used to create intents that only specify a type and not data,
for example to indicate the type of data to return.
intent.setType("*/*"); // Arise problem
intent.setType("image/*");
You can try with
Intent intent_open = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent_open.setType("image/* video/*");
43.8k1196112
You need to set an explicit MIME data type to intent. For example
Intent intent=new Intent(Intent.ACTION_PICK);
intent.setType("image/*"); //for image pick from gallery via intent
intent.setType("video/*"); //for video pick from gallery via intent
Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
intent.setType("video/*, images/*");
startActivityForResult(Intent.createChooser(intent, "Select File"), SELECT_FILE);
15.5k42039
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled博主最新文章
博主热门文章
您举报文章:
举报原因:
原文地址:
原因补充:
(最多只允许输入30个字)android:调用安卓系统的邮件发送功能时总是出现No applications can perform this action_百度知道
android:调用安卓系统的邮件发送功能时总是出现No applications can perform this action
如题,实现的是一个程序,能够调用系统的邮件发送功能,可是在虚拟机上运行时老是出现没有应用程序可以支持此操作,检查了Intent的设置也没错误,求问题原因。
我有更好的答案
真机测试吧!模拟器还是有一些限制的!系统版本是多少?
模拟器上没有邮件吧
为您推荐:
其他类似问题
安卓系统的相关知识
换一换
回答问题,赢新手礼包
个人、企业类
违法有害信息,请在下方选择后提交
色情、暴力
我们会通过消息、邮箱等方式尽快将举报结果通知您。android - No application can perform this action, when send email - Stack Overflow
Join Stack Overflow to learn, share knowledge, and build your career.
or sign in with
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, text.getText());
sendIntent.setType("message/rfc822");
startActivity(Intent.createChooser(sendIntent, "Send email with"));
this was my code.
I tried the send mail in emulator. But it shows the no application can perform this action. if anyone knows means tell me
Thanks in advance
You need to use
intent.setType("text/plain");
Also, the Intent.ACTION_SEND is made for sharing, you may want to use Intent.ACTION_SENDTO to only get the list of e-mail clients, or avoid sharing applications such as Facebook, Twitter, etc.
2,24411319
There's a better approach if you want to send mail: use Action.SEND_TO:
Intent sendIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
sendIntent.putExtra(Intent.EXTRA_TEXT, text.getText());
That will narrow down the searchlist.
NOTE: Make sure you have set up email account on emulator, else the Email application will not be in the handlers-list, and you'll get exception.
This worked for me
Intent email = new Intent(Intent.ACTION_SEND);
email.putExtra(Intent.EXTRA_EMAIL, new String[]{""});
email.putExtra(Intent.EXTRA_SUBJECT, "subject");
email.putExtra(Intent.EXTRA_TEXT, "message");
email.setType("message/rfc822");
startActivity(Intent.createChooser(email, "Choose an Email client :"));
This generally means that there is no application installed currently, that understands the request you're making.
In this instance I would hazard a guess that there is no email app installed on the emulator? Or possibly that it hasn't been set up.
3,68712657
After trying everything as mentioned in the above comments, if you don't find your solution, Just set an email in the default email in Emulator. It works for me.
This means that there is no application that is registered for handling such kind of intent.
Try setting the intent type to "text/plain"
emailIntent.setType("text/plain");
and/or set
to set the content of the email
sendIntent.putExtra(Intent.EXTRA_EMAIL, text.getText());
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 performaction 的文章

 

随机推荐