草庐IT

send-feedback

全部标签

Android:没有应用程序可以执行此操作 (ACTION_SEND)

首先我看到了我遇到的同样的问题,在这里解决了。但即使那里有答案,我也没有解决。而且我找不到添加评论的地方。只回答,作为一个答案,我不确定人们是否会收到通知。这就是为什么我要创建一个新问题。对不起:S我是Android世界的新手,我正在尝试一些基本的东西。我知道这似乎太幼稚了,但我无法弄清楚问题出在哪里。我正在尝试打开一个应用程序来发送电子邮件。native应用程序与否。我使用的是真实设备(索尼爱立信XperiaX10),并且我至少有两个应用程序能够处理电子邮件。我有以下代码:Intentintent=newIntent(android.content.Intent.ACTION_SEN

Android Intent ACTION.SEND——无法向 Twitter 或 Facebook 发送文本

当我尝试通过Intent将EditText中的文本字符串传递到Facebook或Twitter时遇到问题。事实上,目前唯一可行的选择是电子邮件。我使用的代码如下:Intentintent=newIntent(Intent.ACTION_SEND);intent.setType("text/plain");intent.putExtra(Intent.EXTRA_TEXT,textVariable.getText());intent.putExtra(Intent.EXTRA_SUBJECT,"SubjectTitle");startActivity(Intent.createChoos

android - 权限拒绝 : not allowed to send broadcast android. intent.action.AIRPLANE_MODE

我正在尝试以编程方式打开飞行模式。Settings.System.putInt(context.getContentResolver(),Settings.Global.AIRPLANE_MODE_ON,1);IntentaeroPlaneIntent=newIntent(Intent.ACTION_AIRPLANE_MODE_CHANGED);aeroPlaneIntent.putExtra("state",true);context.sendBroadcast(aeroPlaneIntent);设置Global.AIRPLANE_MODE_ON失败,就好像我检查它返回0(OFF)的

android - 如何查看ACTION_SEND intent是否启动?

我的应用程序使用标准的简单文本共享。在我的测试中,我想检查我的Activity是否启动了共享Intent。可能吗?我正在使用ActivityInstrumentationTestCase2测试。Activity:finalIntentsendIntent=newIntent();sendIntent.setAction(Intent.ACTION_SEND);sendIntent.putExtra(Intent.EXTRA_TEXT,message);sendIntent.setType("text/plain");startActivity(Intent.createChooser(

android - Realm 和 Retrofit2 : sending auto-managed objects

当使用Realm和Retrofit2将自动管理的RealmObject发送到我们的服务器时,Retrofit2(使用Gson)仅发送RealmObject中的整数。它完全忽略了Strings等字段,并没有把这些放在json中。没有错误记录。但是,如果我断开RealmObject与Realm的连接:realm.copyFromRealm(myRealmObject)然后它会发送所有字段。可能是什么问题呢?有没有合适的解决方案? 最佳答案 开始之前在我在Stackoverflow上的一篇帖子中,我已经解释了同时使用Gson和Realm时

安卓 : Sending an SMS (using the Outbox)

我正在开发一个适用于Android的SMS应用程序,它无疑需要发送SMS(请看!;)现在,我知道网上有很多资源描述了如何使用SmsManager发送短信……但是,显然,当使用该方法时,短信并未存储在“已发送”文件夹中。.这是SMS应用程序的基本要求。我如何将(消息的)条目添加到“发件箱”中,以便它被发送(并自动存储在SENT文件夹中)......字段“_id、threadid、read、status、type、service_center”(消息表的属性)的值是什么?也欢迎任何其他替代方案。:)提前致谢... 最佳答案 我一直在寻找

Android:ACTION_SEND_MULTIPLE 与 com.android.email

我正在尝试将Intent中的多个附件发送到电子邮件应用程序(而非Gmail应用程序)。我正在使用:IntentemailIntent=newIntent(android.content.Intent.ACTION_SEND_MULTIPLE);emailIntent.setType("plain/text");emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL,newString[]{"sample@email.com"});emailIntent.putExtra(android.content.Intent.EXTRA_S

android - Intent + Share + Action_Send_Multiple + Facebook 不工作

我正在尝试使用Intent进行分享。它适用于单张图片或当我使用Intent.ACTION_SEND时。但是当我使用Intent.ACTION_SEND_MULTIPLE时,它似乎在Facebook上不起作用,例如我正在使用下面的代码。ArrayListfiles=newArrayList();Filea=newFile(FileUtil.getDefaultMediaFolderPath(),"a.jpeg");Fileb=newFile(FileUtil.getDefaultMediaFolderPath(),"b.jpeg");files.add(Uri.fromFile(a));

android - Facebook Intent.ACTION_SEND 始终返回 0 作为 resultCode

我正在尝试使用我的应用程序并启动Intent.ACTION_SEND在Facebook上分享照片。我的代码如下:Filefile=newFile(imagePath);IntentsharingIntent=newIntent(Intent.ACTION_SEND);sharingIntent.setType(MimeTypeUtils.getMimeType(imagePath));sharingIntent.putExtra(Intent.EXTRA_STREAM,Uri.fromFile(file));sharingIntent.setPackage("com.facebook.

java - 在 Android 上捕获和拦截 ACTION_SEND Intent

目前我有一个非常标准的ACTION_SENDIntent来从我的应用程序内部共享信息。代码类似于以下内容:Intentintent=newIntent(Intent.ACTION_SEND);intent.setType("text/plain");intent.putExtra(Intent.EXTRA_SUBJECT,subject);intent.putExtra(Intent.EXTRA_TEXT,text);context.startActivity(Intent.createChooser(intent,title));现在,如果用户在他们的手机上安装了Facebook应用