腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(3243)
视频
沙龙
0
回答
Android
消息
对象
PendingIntent
,
获取
null
Intent.getExtras
().
getString
("
mystring
")
、
、
、
片段中包含以下
消息
对象
。public void onItemClick(AdapterView<?,
PendingIntent
.FLAG_UPDATE_CURRENT);该片段调用activity并传递
PendingIntent
。当我使用下面的代码从意图中
获取
字符串时,我在活动中得到了
NULL
下面是活动中的一段代码 Log.i(TAG, "int
浏览 1
提问于2017-06-05
得票数 0
2
回答
如何从解析通知中
获取
这些值?
、
ParsePush();push.setMessage("My measage");现在,我希望在收到通知后获得
消息
浏览 1
提问于2015-06-06
得票数 0
1
回答
仅通知振铃音频(不显示实际通知)
、
、
=
null
&&
intent.getExtras
().
getString
("img") !(); try {remote_picture = BitmapFactory.decodeStream((InputStream) new URL(
intent.getExtras</e
浏览 1
提问于2015-12-15
得票数 0
3
回答
获取
显示的EditText值AlertDialog
、
是否可以从EditText
获取
用户输入文本并将其显示在AlertDialog中?主活动提示用户设置警报,然后输入一条
消息
,以便在警报结束后显示。我希望能够显示用户在AlertDialog中输入的任何
消息
。
pendingintent
=
PendingIntent
.getBroadcast(this.getApplicationContext(), 9988, intent, 0);alertDialogBuilder.create();
浏览 5
提问于2014-01-06
得票数 0
3
回答
2项活动之间的意图
、
、
主用户必须使用facebook凭据登录(如果用户最近登录,应用程序使用先前保存的令牌),然后
获取
用户的id,通过调用LoggedActivity将其保存到意图中。openFacebook(); }); access_token=sp.
getString
("access_token",
null
); expires=sp.
getString
("access_expires&qu
浏览 1
提问于2014-05-04
得票数 0
1
回答
如何在推送通知(Gcm)
android
中展示图片?
、
、
请任何人建议我如何在推送通知中
获取
图片。提前谢谢你。 if(
intent.getExtras
().
getString
("message")!=
null
) Log.v("TAG_IMAGE"
浏览 0
提问于2015-08-13
得票数 16
回答已采纳
2
回答
从外部应用程序开始活动,缺少附加程序
、
、
我的应用程序中有一个小部件,应用程序应该可以使用startActivity(),我还需要在Intent启动活动时传递一些附加信息。但是在onCreate()中,Bundle's是空的!??已经有人试图解决这个问题,有人通过重写onNewIntent()来解决这个问题,因为如果我的活动实例已经存在,就可以调用它,但是在这方面也没有成功,因为onNewIntent()从来没有被调用过。那么这里发生了什么呢?我只想从我的应用程序外部开始一个活动,并通过Intent传递一些额外的内容。in
浏览 4
提问于2015-03-29
得票数 0
回答已采纳
1
回答
为广播接收器创建多个AlarmManager?
、
、
、
我正在通过BroadcastReceiver打电话给AlarmManager,它对我来说很好。这一次我需要什么做这个过程的方法是什么?
浏览 1
提问于2013-10-18
得票数 3
回答已采纳
1
回答
Phonegap推送通知
我开发了使用phonegap的移动应用程序。我对推送通知有一些问题。我想要的只是当我更新mysql数据库中的新内容时,它会向所有客户端发出警报。我在git中找到了一些例子。但这不是我想要的。通知警报不在状态栏中。如下图所示。 这是我在git https://github.com/khengsopheak/PushNotification的项目
浏览 0
提问于2015-12-03
得票数 0
回答已采纳
1
回答
重新启动后缺少意图“附加”值
、
、
、
、
"); int notificationId = extras.getInt("notificationId"); String message = extras.
getString
notificationId和
消息</e
浏览 0
提问于2018-06-26
得票数 1
3
回答
解析推送发送和接收,不
获取
ParsePushBroadcastReceiver
、
、
如何
获取
推送并发送推送。我想接收推送
消息
,并在活动上显示
消息
,我尝试了以下方法,但找不到ParsePushBrodcastReciver。我可以发送它并接收它,但我不能将
消息
保存在某个变量中import
android
.app.
PendingIntent
; import
android
.content.Context;
浏览 0
提问于2015-06-07
得票数 1
2
回答
当
android
应用程序关闭时,仅打开一个gcm通知
、
我正在开发一款
android
应用程序,在该应用程序中,当应用程序打开时,我会收到多个gcm通知,所有打开的通知都带有不同的数据,但当应用程序关闭时,我会收到多个通知,但只有一个通知打开,当我单击其他通知时String title =
intent.getExtras
().
getString
("title"); String lat = <
浏览 2
提问于2014-11-01
得票数 0
1
回答
使用GCM的通知
、
;import
android
.app.NotificationManager; String hash =
intent.getExtras
().
getString
("hash");Stri
浏览 2
提问于2017-01-10
得票数 1
回答已采纳
2
回答
多个已发送
消息
的BroadCastReceiver?
、
、
但是当我试图在广播接收器中接收确认
消息
时,我希望得到所有的数字,但最终得到的是相同的一个数字而不是n个数字。发送SMS的步骤intent.putExtra("phonenumber", sms_phonenumber);SmsMan
浏览 2
提问于2012-08-24
得票数 1
回答已采纳
2
回答
我想用
android
推送通知更新/删除sqlite中的数据
、
、
、
=
null
) { Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody
浏览 31
提问于2019-08-03
得票数 0
3
回答
无法读取解析推送通知包数据
、
、
、
void onReceive(Context context, Intent intent) { Bundle bundle =
intent.getExtras
this value
PendingIntent
pendingIntent
=
PendingIntent
.getActivity(conte
浏览 8
提问于2014-10-16
得票数 5
回答已采纳
2
回答
如何检测NotificationManager发送的通知发件人/检测在通知栏中单击了哪个通知?
、
、
Notification notification = new Notification(R.drawable.buslogo, message, System.currentTimeMillis()); { Log.i
浏览 5
提问于2011-05-24
得票数 1
回答已采纳
1
回答
发生本地通知,但屏幕上没有出现
、
、
、
、
NotificationChannel>() IM_CHANNEL_ID, "${domainContact.firstName} ${domainContact.lastName}"
浏览 4
提问于2022-04-20
得票数 1
回答已采纳
1
回答
向SQLite数据库中的每个联系人发送短信
、
我有一个SQLite表,每个表有不同的电话号码和不同的
消息
。我想要
获取
每一行的ID,这样我的IntentService就可以向每个号码发送唯一的短信。super.onCreate();protected void onHandleIntent(Intent intent) { String number = extras.
getString
(String.valueOf(
浏览 1
提问于2017-07-28
得票数 0
1
回答
ActivityManager:无法启动服务意图{ act=com.google.
android
.c2dm.intent.RECEIVE flg=0x1000010 (有额外的)} U=0:未找到
、
、
下面是我从
Android
手机获得GCM
消息
的
消息
(这些
消息
来自服务器多播到多个
android
设备):2018-10-26 15:46:36.222但是下面的代码并没有抛出任何错误,当我从服务器发送GCM
消息
时,我的所有
Android
设备都从上面获得
消息
(使它们看起来像是正确注册的,并从Google获得了一些信息)。GCM注册代码:
浏览 0
提问于2018-10-26
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券