码迷,mamicode.com
首页 >  
搜索关键字:startactivity    ( 356个结果
Android 打开系统设置界面
Intent intent = new Intent(Settings.ACTION_SETTINGS);//系统设置界面 startActivity(intent); 另外Settings下面还有很多项可以选,例如: Settings.ACTION_WIFI_SETTINGS;//打开WiFi设置界面 Settings.ACTION_...
分类:移动开发   时间:2014-12-11 17:36:35    阅读次数:183
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
android内核剖析学习笔记:AMS(ActivityManagerService)内部原理和工作机制
一、ActivityManagerService提供的主要功能: (1)统一调度各应用程序的Activity (2)内存管理 (3)进程管理 二、启动一个Activity的方式有以下几种: (1)在应用程序中调用startActivity启动指定的Activity (2)在Home程序中单击一个应用图标,启动新的Activity (3)按“Back”键,结束当前Activity,返回到上一个Activity (4)长按“Home”...
分类:移动开发   时间:2014-12-09 21:32:35    阅读次数:1969
Android start_activity流程
好了,用上篇介绍的工具,跟踪了下startActivity在system_server中的流程,如下: The picture below is the flow chart for how the source Activity start a target activity Major includes four steps: (1) Preparation, flow chart in...
分类:移动开发   时间:2014-12-09 10:36:36    阅读次数:194
Android笔记 Intent用法总结
Intent: 官方解释: An intent is an abstract description of an operation to be performed. It can be used with startActivity to launch an Activity, broadcastIntent to send it to any interested Broadcas...
分类:移动开发   时间:2014-12-05 15:37:03    阅读次数:237
Android应用程序内部启动Activity过程(startActivity)的源代码分析
文章转载至CSDN社区罗升阳的安卓之旅,原文地址:http://blog.csdn.net/luoshengyang/article/details/6703247上文介绍了Android应用程序的启动过程,即应用程序默认Activity的启动过程,一般来说,这种默认 Activity是在新的进程和...
分类:移动开发   时间:2014-12-04 11:57:55    阅读次数:276
在BroadcastReceiver中启动Activity的问题
/** * Demo描述: * 在BroadcastReceiver中启动Activity的问题 * * 如果在BroadcastReceiver的onReceive()方法中如下启动一个Activity * Intent intent=new Intent(context,AnotherActivity.class); * context.startActivity(intent)...
分类:其他好文   时间:2014-12-03 23:24:58    阅读次数:234
startActivity的requires new task异常解析
很多人使用startActivity时候,会碰到如下的异常: Caused by: android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really...
分类:其他好文   时间:2014-12-03 12:28:34    阅读次数:138
推送通知栏 PendingIntent 参数解读
PendingIntentandroid.app.PendingIntent.getActivity(Contextcontext,intrequestCode,Intentintent,intflags)源码注释:RetrieveaPendingIntentthatwillstartanewactivity,likecallingContext.startActivity(Intent).Notethattheactivitywillbestartedoutsideofthecontextofane..
分类:其他好文   时间:2014-11-26 19:16:38    阅读次数:200
Android开发学习笔记之四大组件---Activity的跳转,数据传递(二)
上一章我们温习了Activity的创建,以及各生命周期,这一章我们主要学习Activity的跳转,以及Activity之间的数据传递一、Activity跳转:Activity之间的单纯跳转非常简单,只需要创建两个Activity,然后使用startActivity(intent)来进行跳转,看下代码...
分类:移动开发   时间:2014-11-26 18:01:57    阅读次数:133
356条   上一页 1 ... 26 27 28 29 30 ... 36 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!