码迷,mamicode.com
首页 >  
搜索关键字:Intent    ( 3334个结果
Intent 简单用法
1.Intent有什么用?Android设计理念是鼓励减少组件间的耦合,因此Android提供了Intent (意图) ,Intent是一种消息传递机制,可以在程序内使用,也可以在程序间使用,主要用于启动“Activity”“Service”和“广播“某个事件已发生。2.Intent的有几种类型?I...
分类:其他好文   时间:2014-12-11 17:13:54    阅读次数:112
Tab标签页接口---使用Intent对象
TabHost tabHost = getTabHost(); Intent it = new Intent(); it.setClass(Main.this, DateTimePicker.class); TabSpec spec=tabHost.new...
分类:其他好文   时间:2014-12-11 13:58:17    阅读次数:139
Intent 、Intent Filter 和传输数据
Intent 使用最常使用的是:Intent intent = new Intent();intent.setClass(Main.this,New.class);startActivity(intent);其他的Intent 的使用:打开一个网站:Uri uri = Uri.parse("http...
分类:其他好文   时间:2014-12-11 13:48:04    阅读次数:123
关于intent
不能运行,显示没有Activity来handle intent修正:错误原因:setAction后面跟的是Intent而不是包名 主要是没仔细看提示
分类:其他好文   时间:2014-12-10 22:31:34    阅读次数:138
兔子--多击事件
package com.example.myclickmore; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.os.SystemClock; import android.util.Log; import android.view.Menu...
分类:其他好文   时间:2014-12-10 21:21:31    阅读次数:198
activity 和service通信,调用service方法
package com.evt.services; import java.io.FileDescriptor; import java.io.PrintWriter; import com.evt.MyApplication; import android.app.Service; import android.content.Intent; import android.os.Bi...
分类:其他好文   时间:2014-12-10 12:44:46    阅读次数:161
Android 四大组件 之 Broadcast/Receiver 流程
下图描述了在source application中broadcast一个intent,注册此intent的Target Application如何启动和接收的流程。 The picture above is the flow chart for how the source Application broadcast an intent (1) Inform AMS to br...
分类:移动开发   时间:2014-12-10 12:36:08    阅读次数:192
Android中Service类onStartCommand
Android开发的过程中,每次调用startService(Intent)的时候,都会调用该Service对象的onStartCommand(Intent,int,int)方法,然后在onStartCommand方法中做一些处理。然后我们注意到这个函数有一个int的返回值,这篇文章就是简单地讲讲i...
分类:移动开发   时间:2014-12-10 10:36:27    阅读次数:163
使用Intent的好处、回调的含义
使用Intent的好处: (1)Android使用统一的Intent对象来封装“启动意图”,提供了一致的编程模型,可以启动Activity、Service、BroadcastReceiver组件 (2)应用程序可以启动具有某种特征的组件,而不与某个具体的组件耦合,利用高层次的解耦 (3)是应用程序组件通信之间的重要媒介,用Intent携带Bundle对象数据 回调的含义: 在...
分类:其他好文   时间:2014-12-09 23:09:11    阅读次数:176
Android ListView 中的onItemClick方法中Intent 无法跳转的解决方案
I found this somewhere after googlingThere will be case that your custom list item doesn’t respond when you click…so what’s the reason and what’s the ...
分类:移动开发   时间:2014-12-09 22:45:03    阅读次数:205
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!