1.Intent有什么用?Android设计理念是鼓励减少组件间的耦合,因此Android提供了Intent (意图) ,Intent是一种消息传递机制,可以在程序内使用,也可以在程序间使用,主要用于启动“Activity”“Service”和“广播“某个事件已发生。2.Intent的有几种类型?I...
分类:
其他好文 时间:
2014-12-11 17:13:54
阅读次数:
112
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 intent = new Intent();intent.setClass(Main.this,New.class);startActivity(intent);其他的Intent 的使用:打开一个网站:Uri uri = Uri.parse("http...
分类:
其他好文 时间:
2014-12-11 13:48:04
阅读次数:
123
不能运行,显示没有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
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
下图描述了在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开发的过程中,每次调用startService(Intent)的时候,都会调用该Service对象的onStartCommand(Intent,int,int)方法,然后在onStartCommand方法中做一些处理。然后我们注意到这个函数有一个int的返回值,这篇文章就是简单地讲讲i...
分类:
移动开发 时间:
2014-12-10 10:36:27
阅读次数:
163
使用Intent的好处:
(1)Android使用统一的Intent对象来封装“启动意图”,提供了一致的编程模型,可以启动Activity、Service、BroadcastReceiver组件
(2)应用程序可以启动具有某种特征的组件,而不与某个具体的组件耦合,利用高层次的解耦
(3)是应用程序组件通信之间的重要媒介,用Intent携带Bundle对象数据
回调的含义:
在...
分类:
其他好文 时间:
2014-12-09 23:09:11
阅读次数:
176
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