草庐IT

send_signal

全部标签

Android ACTION_SEND 为每个应用程序发送不同的文本

我正在使用一个带有ACTION_SEND的Intent,我需要分享不同的文本。我需要为Gmail发送文本,我需要为Twitter发送其他文本。取决于应用程序。能否在应用发送分享文本前获取用户选择的应用? 最佳答案 是的,你可以在应用发送分享的文本之前获取用户选择的应用。为此,您必须制定解决方法,即:您必须通过以下方式获取支持此Intent的应用程序列表:IntentsharingIntent=newIntent(android.content.Intent.ACTION_SEND);sharingIntent.setType("te

android - Android 应用邀请 : Message failed to send with missing container client ID

我正在尝试集成新的GooglePlay服务API“AppInvitesforAndroid”。我按照指南执行了所有步骤并生成了gogole-services.json文件。但是当我通过短信或电子邮件向选定的friend发送邀请时,我每次都会遇到同样的错误。Messagefailedtosend在ADB日志上得到这个:E/AppInviteAgent﹕generic::13:generic::INTERNAL:java.lang.IllegalArgumentException:RequestmustassociateavalidcontainerclientapplicationID.

android - 抽象谷歌客户端 : Fatal signal 11 (SIGSEGV)

06-0600:05:02.955:I/DEBUG(5660):************************************************06-0600:05:02.955:I/DEBUG(5660):Buildfingerprint:'google/occam/mako:4.2.2/JDQ39/573038:user/release-keys'06-0600:05:02.955:I/DEBUG(5660):Revision:'11'06-0600:05:02.955:I/DEBUG(5660):pid:3787,tid:3806,name:pool-1-thre

android - 使用 shareIntent 时如何使用 Intent.ACTION_SEND_MULTIPLE 发送多种数据类型?

文档中非常清楚,您可以使用以下方式发送多条数据:IntentshareIntent=newIntent();shareIntent.setAction(Intent.ACTION_SEND_MULTIPLE);shareIntent.putParcelableArrayListExtra(Intent.EXTRA_STREAM,imageUris);shareIntent.setType("image/*");startActivity(Intent.createChooser(shareIntent,"Shareimagesto.."));但似乎从那一行:shareIntent.se

android - 火力地堡 : Send notification with REST API

是否可以在Firebase上使用RESTAPI发送推送通知?我可以使用Firebase控制台发送通知,但我需要使用RESTAPI发送通知。 最佳答案 只是为了帮助,如果有人想使用RESTPOSTAPI,就在这里,使用具有以下配置的Postman网址:https://fcm.googleapis.com/fcm/send标题:"Content-Type":"application/json","Authorization":"key="body:{"to":"","notification":{"title":"CheckthisMo

android - 改造 - A/libc : Fatal signal 11 (SIGSEGV), 代码 1

我收到A/libc:致命信号11(SIGSEGV),当使用改造类生成我的服务接口(interface)的实现时代码1。我认为这是由于native库中的空指针段错误造成的。什么都没有抛出,所以我无法追踪它。最奇怪的是,它不会发生在我的任何模拟器或物理设备(所有6.0)上,除了我的HTC恰好是6.0.1。这是我的界面:publicinterfaceRestApiPerson{@GET(QUERY_PERSON)CallgetPersonSearchResult(@Query("query")Stringq);}这里是实现。崩溃发生在(Callcall=restApi.getPersonSe

android - 像 <b> <i> <a> 这样的 html 标签在发送到 ACTION_SEND 时不能与 HTML.fromHtml() 一起使用

当使用HTML.fromHtml()发送HTML格式的文本并放入Intent标志ACTION_SEND时,HTML格式的字符串将不会正确显示为默认电子邮件三星Note2和所有HTC设备等设备的客户端。但是,如果我选择gmail应用程序,那么我的html文本呈现良好。我尝试将邮件大小设置为最大,但这也无济于事。Stringmessage="MyAppSometext.";Intentemail=newIntent(Intent.ACTION_SEND);email.putExtra(Intent.EXTRA_SUBJECT,subject);email.setType("message/

android - java.lang.SecurityException : in android 8 while sending sms 错误

我在从oreo版本发送SMS时面临安全问题,它在另一个android版本中工作正常。在下面一行出现错误。sms.sendTextMessage(phoneNumber,null,message,sentPI,deliveredPI);报告1>java.lang.SecurityException:atandroid.os.Parcel.readException>(Parcel.java:1942)atandroid.os.Parcel.readException>(Parcel.java:1888)at>com.android.internal.telephony.ISms$Stub

android - 来自 Google Analytics for Android 的 RuntimeException "sending message to a handler on a dead thread"

我正在使用适用于Android的GoogleAnalytics(分析)来跟踪Android应用程序上的事件和页面浏览量。调用跟踪器的调度方法时,我收到一个RuntimeException:07-1218:02:05.594:WARN/MessageQueue(12823):Handler{44a08620}sendingmessagetoaHandleronadeadthread07-1218:02:05.594:WARN/MessageQueue(12823):java.lang.RuntimeException:Handler{44a08620}sendingmessagetoaH

Android ACTION_SEND 超链接在 GMail 中不起作用

这是我在Android中发送带有可点击链接的HTML电子邮件的代码。privatevoidsendEmail(){IntentemailIntent=newIntent(android.content.Intent.ACTION_SEND);Stringsubject="Prueba";Stringemailtext="PruebaEmail";emailIntent.setType("message/rfc822");emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,subject);emailIntent.putEx