以下全是个人理解//瞎扯 其实活动理解理解起来就像一个个函数 那么Intent就是调用函数和参数传递 可以有无参,仅仅是调用 由活动A调用活动B,无参,无返回值,当然B调用结束,要回到A。 可以有参数 由活动A调用活动B,无参,无返回值。 可以传参当然也可以返回参数 其实吧 可以把活动间通信想象成两 ...
分类:
其他好文 时间:
2016-07-08 23:08:58
阅读次数:
262
Android四大基本组件分别是Activity,Service服务,Content Provider内容提供者,BroadcastReceiver广播接收器。一:了解四大基本组件Activity :应用程序中,一个Activity通常就是一个单独的屏幕,它上面可以显示一些控件也可以监听并处理用户的事件做出响应。Activity之间通过Intent进行通信。在Intent 的描述结构中,有两个最重要...
分类:
移动开发 时间:
2016-07-08 21:55:58
阅读次数:
278
LocationManager提供的addProximityAlert(double latitude , double longitude , float radius , long expiration , PendingIntent intent)方法用于添加一个临近警告。 所谓临近警告,也就 ...
分类:
其他好文 时间:
2016-07-08 21:33:28
阅读次数:
222
android允许应用程序自由地发送和接收广播。 广播是通过Intent进行数据传递的。接收广播则通过Broadcast Receiver(广播接收器)实现. 广播分为:标准广播和有序广播。 标准广播:一种完全异步执行的广播,在广播发出之后,所有的广播接收器几乎都会在同一时刻接收到这条广播消息,因此 ...
分类:
移动开发 时间:
2016-07-08 00:03:24
阅读次数:
268
什么是AJAX? Ajax, shorthand for Asynchronous JavaScript and XML, is a web development technique for creating interactive web applications. The intent is ...
分类:
Web程序 时间:
2016-07-07 22:32:12
阅读次数:
258
在没用eventBus之前一直用Android广播方式通知消息更新UI 广播写法 首先发送广播通知 Intent intent = new Intent(); intent.setAction("action.refreshFriend"); //名称自定义标识是哪个通知消息 sendBroadca ...
分类:
其他好文 时间:
2016-07-07 17:15:11
阅读次数:
216
一、原因:当调用到onNewIntent(intent)的时候,需要在onNewIntent() 中使用setIntent(intent)赋值给Activity的Intent.否则,后续的getIntent()都是得到老的Intent。二、onNewIntent()在IntentActivity中重 ...
Intent
关于Intent我们都知道他是各个组件,进程之间的通信纽带,Android系统也是通过Intent来查找软件中的对应的组件,这个查找的过程就是...
分类:
移动开发 时间:
2016-07-06 11:56:16
阅读次数:
398
应用场景:用于安卓的短信发送功能 异常名称:Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND } 源码如下 ...
分类:
移动开发 时间:
2016-07-05 13:55:16
阅读次数:
229
方法一: 如果单纯的传递List<String> 或者List<Integer>的话 就可以直接使用 Java代码 intent.putStringArrayListExtra(name, value) intent.putIntegerArrayListExtra(name, value) 方法二 ...
分类:
移动开发 时间:
2016-07-05 01:06:19
阅读次数:
220