package org.samsung.miniproject;import android.app.Activity;import android.content.ContentValues;import android.content.Intent;import android.database... ...
分类:
其他好文 时间:
2017-08-13 23:34:49
阅读次数:
393
文章转载自http://blog.csdn.net/demonliuhui/article/details/51511136 这里仅供自己学习参考; Context,中文直译为“上下文”,SDK中对其说明如下: 1、它描述的是一个应用程序环境的信息,即上下文。 2、该类是一个抽象(abstract ...
分类:
其他好文 时间:
2017-08-13 19:22:21
阅读次数:
173
1. Android中如何从一个Activity中ArrayList<HashMap<String,Object>>传递到另一个activity? eg: 存:intent.putExtra("arrayList", dataList); 取(记得强制类型转换): ArrayList<HashMap ...
分类:
其他好文 时间:
2017-08-13 10:04:50
阅读次数:
166
不时的回过头来看看自己的Andriod学习、实践之路,总发现有些曾经不明确的,如今清楚缘由。也会发现一些之前没怎么关注的。如今看到了 ,很想去深刻了解的。 比方:Bundle。 在一个Activity的生命周期中,首先要运行的是onCreate方法 @Override protected void ...
分类:
移动开发 时间:
2017-08-12 18:58:06
阅读次数:
194
Intent intent = new Intent(Intent.ACTION_MAIN); intent.addCategory(Intent.CATEGORY_LAUNCHER); ComponentName cn = new ComponentName("com.example.timer"... ...
分类:
移动开发 时间:
2017-08-12 14:02:46
阅读次数:
181
Intent i = new Intent("android.settings.APPLICATION_DETAILS_SETTINGS");String pkg = "com.android.settings";String cls = "com.android.settings.applicat ...
分类:
移动开发 时间:
2017-08-12 13:23:54
阅读次数:
287
android其中显式intent和隐式intent的差别 定义: Intent定义:Intent是一种在不同组件之间传递的请求消息。是应用程序发出的请求和意图。作为一个完整的消息传递机制,Intent不仅须要发送端,还须要接收端。 显式Intent定义:对于明白指出了目标组件名称的Intent。我 ...
分类:
其他好文 时间:
2017-08-11 14:47:17
阅读次数:
218
好久没有写android的小样例了,因为前几天写了一篇关于Intent.Action的文章(http://blog.csdn.net/ljphhj/article/details/38796739)。有朋友私信问我关于ACTION_SCREEN_ON和ACTION_SCREEN_OFF还有ACTIO ...
分类:
其他好文 时间:
2017-08-11 10:43:40
阅读次数:
238
使用Intent实现打电话的动作,我们须要在 AnroidMainfest.xml中增加通话权限,打开这个文件,在application节点的前面增加以下内容 <uses-permission android:name="android.permission.CALL_PHONE" /> 以下,使用 ...
分类:
移动开发 时间:
2017-08-08 12:39:16
阅读次数:
145
Android系统的4个组件最终还剩一种组件了BroadcastReceiver,这个组件是全局监听器,能够监听系统全局的广播消息,能够方便的实现系统中不同组件之间的通信 BroadcastReceiver有自己的进程,系统级监听器,仅仅要存在与之匹配的Intent被广播出来,BroadcastRe ...
分类:
移动开发 时间:
2017-08-07 11:50:11
阅读次数:
251