如何根据Intent的内容,去找到被start的activity呢?

李狗蛋52635 2012-04-06 09:51:27
各位好

intent = new Intent(Intent.ACTION_CALL_PRIVILEGED,
Uri.fromParts("tel", phoneNumber.toString(), null));
context.startActivity(intent);


如上,这是一段打启动电话activity的程序,但是如何去找它启动了哪个activity呢?
谢谢~
...全文
287 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
李狗蛋52635 2012-04-09
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 的回复:]

自己分析的很到位啊
[/Quote]
呵呵
李狗蛋52635 2012-04-06
  • 打赏
  • 举报
回复
01-26 00:44:08.178: INFO/ActivityManager(1219): Starting: Intent { act=android.intent.action.CALL_PRIVILEGED dat=tel:xxx-xxx-xxxx cmp=com.android.phone/.PrivilegedOutgoingCallBroadcaster } from pid 1322

01-26 00:44:08.238: INFO/ActivityManager(1219): Starting: Intent { act=android.phone.extra.NEW_CALL_INTENT dat=tel:xxx-xxx-xxxx flg=0x10000000 cmp=com.android.phone/.SipCallOptionHandler (has extras) } from pid 2057

01-26 00:44:08.278: INFO/ActivityManager(1219): Starting: Intent { act=android.intent.action.CALL dat=tel:xxx-xxx-xxxx flg=0x10000000 cmp=com.android.phone/.InCallScreen (has extras) } from pid 2057


在logcat中看到了启动的哪一个...
life02 2012-04-06
  • 打赏
  • 举报
回复
自己分析的很到位啊
李狗蛋52635 2012-04-06
  • 打赏
  • 举报
回复
这是网上大niu的原帖。

http://stackoverflow.com/questions/2296905/which-activity-handles-intent-action-call-privileged

80,348

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧