`
hxdawxyhxdawxy
  • 浏览: 125940 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

android intent filter

 
阅读更多
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter >
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="app" />
            </intent-filter>


页面上href="app://"




--------------------------------------------------------------------------------
 
1.
<intent-filter>  
                <category android:name="android.intent.category.DEFAULT"></category>  
                <action android:name="android.intent.action.VIEW"></action>  
                <data android:scheme="sh"></data>  
            </intent-filter>

2.
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("sh://123123123")));  


3.
this.getIntent().getScheme();//获得Scheme名称  
this.getIntent().getDataString();//获得Uri全部路径  
分享到:
评论

相关推荐

    Android Intent Filter用法

    这个例子主要讲下Intent Filter的用法。对应博客地址:http://blog.csdn.net/chenliqiang12345678/article/details/50568468

    Android Intent和Intent Filter详解

    Intents and Intent Filters  三种应用程序基本组件——activity, ... 在上述三种情况下, android系统会自己找到合适的activity, service, 或者 broadcast receivers来响应intent. 三者的intent相互独立互不干扰.

    Android_Intent和Intent_Filter详解

    Android_Intent和Intent_Filter详解

    Android Intent 过滤例子

    一个非常简单的Android intent 匹配过滤的例子,给初学者参考

    Intent filter 关于Action、Category属性详解源码

    Intent filter 关于Action、Category属性详解源码 对应的博客文章链接: http://blog.csdn.net/a13429921973/article/details/9271973

    Android Intents and Intent Filters(二)源代码

    Android Intents and Intent Filters(二)源代码 对应博客 http://blog.csdn.net/michael__li/article/details/6950127

    Android Intent 组件通信与广播消息

    Android组件通信与广播消息,Intent与Intent-filter详解

    Data、Type属性与Intent-filter配置

    Data、Type属性与Intent-filter配置首界面如图4所示,点击“查看图片”可以选择3个符合条件的Activity显示分别以全屏、图5和缩小三个不同的Activity显示图片。

    Android中的Intent Filter匹配规则简介

    主要为大家详细介绍了Android中的Intent Filter匹配规则,感兴趣的小伙伴们可以参考一下

    详解Android中Intent对象与Intent Filter过滤匹配过程

    如果对Intent不是特别了解,可以参见博文《详解Android中Intent的使用方法》,该文对本文要使用的action、category以及data都进行了详细介绍。如果想了解在开发中常见Intent的使用,可以参见《Android中Intent习惯...

    Android解析Intent Filter的方法

    主要介绍了Android解析Intent Filter的方法,较为详细的分析了Intent解析的原理与相关技巧,具有一定参考借鉴价值,需要的朋友可以参考下

    Android Intent 、intent-filter详解

    参考...,讲解的很好 1.什么是Intent(定义) Intent这个单词的意思就是”意图,目的,意向”,Intent是一种运行时绑定(runtime binding)机制,它能在程序运行的过程中连接两个不同的组件。 个

    android MMS短信开发

    intent filter android:priority &quot;2147483647&quot;&gt; &lt;action android:name &quot;android provider Telephony SMS RECEIVED&quot; &gt; &lt; intent filter&gt; &lt;intent filter android:priority ...

    Android中Intent习惯用法

    如果对Intent Filter不是特别了解,可以参见《详解Android中Intent对象与Intent Filter过滤匹配过程》。 本文着重讲一下Android中一些常见的Intent的习惯用法,比如如何通过Intent发送短信、发送邮件、启动摄像机...

    Intents 和Intent filter 理论介绍

    本文是android开发中消息机制Intent 理论部分的详细介绍与分析。通过本文会了解android上层各个应用组建是如何通信和发生松散耦合的。

    android 8.1设置添加Ethernet功能选项

    &lt;category android:name="com.android.settings.SHORTCUT" /&gt;+ &lt;/intent-filter&gt; &lt;meta-data android:name="com.android.settings.FRAGMENT_CLASS" android:value=...

    Android初学习之intent-filter意图过滤器

    使用 Intent Filter ,应用程序组件告诉 Android ,它们能为其它程序的组件的动作请求提供服务,包括同一个程序的组 件、本地的或第三方的应用程序。 注:因为是初学,我们在这里只浅谈activity并进行一些实验,了解...

Global site tag (gtag.js) - Google Analytics