包含标签 intent 的文章

Android Intents and Intent Filters(三)

数据(data)检测 data标记也是在intent-filter中定义的,大致格式如下: 1 2 3 4 5 <intent-filter> <action android:name="android.intent.action.VIEW"></action> <category android:name="android.intent.category.DEFAULT"></category> <data android:mimeType="text/plain"></data> </intent-filter> 每个data定义一个URI和数据类型(MIME),URI由4个属性来定义,分别是android:scheme,android:host,android:port,an……

阅读全文

Android Intents and Intent Filters(二)

Category(类别)检测 类别在中是通过标记定义的,Category和Action一样,他们的名字都是一个字符串定义,但是我们在代码中可以使用对应的类别常量,在xml文件定义中只能使用定义好的字符串。Android的Intent类中提供了很多内置的类别定义,一中类别代表一个意思……

阅读全文

Android Intents and Intent Filters(一)

看过前面的几节教程的应该都会留意到一个很重要的东西,那就是Intent。Intent是什么呢?我们都知道Android有四大核心组件 Activity、Service、Broadcast Receiver和Content Provider,略去Content Provider不提,那么剩……

阅读全文

最近文章

分类

标签

其它