码迷,mamicode.com
首页 >  
搜索关键字:intent 数据传递    ( 4566个结果
Cocos2d-x中关于lua的坑
上周在项目开发中遇到一个奇怪的问题,某个c++模块解压完的字节流数据传递给lua后,lua在做基于字节流的反序列化时始终出错,刚开始以为是不是c++模块读取出来的字节流有问题,但是debug发现,c++拿到的字节流确实是正...
分类:其他好文   时间:2014-07-22 09:06:06    阅读次数:528
Intent 用法全面总结
调用拨号程序      // 给移动客服10086拨打电话 Uri uri = Uri.parse("tel:10086"); Intent intent = new Intent(Intent.ACTION_DIAL, uri); startActivity(intent); 发送短信或彩信      // 给10086发送内容为“Hello”的短信 Uri uri = Uri.par...
分类:其他好文   时间:2014-07-21 11:34:44    阅读次数:285
android当中taskAffinity属性与launchMode相关
一、本文尝试解释以下问题 1.? Activity被启动之后放在哪个任务栈当中?与哪些因素有关? 2.? Activity的四种启动模式对Activity的启动有哪些影响? 3.? 在Activity中使用startActivityForResult(intent, REQU...
分类:移动开发   时间:2014-07-21 10:13:40    阅读次数:239
Android:Bundles in Activities and Fragments
Activity When you are creating a new instance of Activity via Intent, you can pass some extra data to the Activity. Data are stored in Bundle and can be retrieved by calling?getIntent().getExtras...
分类:移动开发   时间:2014-07-21 10:11:31    阅读次数:272
客户端如何调用IBinder接口对象
代码: public void funclick(View view){ Intent _intent = new Intent(MainActivity.this,MyService.class); bindService(_intent, conn, BIND_AUTO_CREATE); } private ServiceConnection conn = new Serv...
分类:其他好文   时间:2014-07-20 23:11:45    阅读次数:310
startActivityForResult的用法和demo
有时候我们需要把A activity提交数据给B activity处理,然后把结果返回给A这种方式在很多种情况需要用到,比如我应用的程序需要有拍照上传的功能。一种解决方案是 我的应用程序〉调用系统相机〉拍照〉关闭系统相机〉返回拍照后的照片到我的应用程序启动一个ForResult的意图:Intent ...
分类:其他好文   时间:2014-07-20 22:23:36    阅读次数:263
使用代码启动其他程序
你要访问其他的程序,那么这个程序要先装在到模拟器或真机上面,因为我们要使用要访问其他程序的包。 简单的访问有以下两种方式(目前只知道这两种): 一、使用Intent的setComponent方法 Intent intent = new Intent(); intent.setComponent(new ComponentName("包名", "包名.主类名")); intent....
分类:其他好文   时间:2014-07-20 22:15:53    阅读次数:374
Android开发-- 使用ADT23 的一些问题
在使用最新版ADT 23进行android学习时发现一些问题:1.通过设置intent的action来启动另外一个activity时,会出现No Activity found to handle Intent这个错误仔细查看了源码发现代码错误,思索许久并未找出错误。当查看到工程的build path...
分类:移动开发   时间:2014-07-20 21:29:35    阅读次数:261
服务端如何暴露IBinder接口对象
服务端如何暴露IBinder接口对象: package com.example.mydownload; import android.app.Service; import android.content.Intent; import android.os.Binder; import android.os.IBinder; public class MyService extends Se...
分类:其他好文   时间:2014-07-20 09:34:28    阅读次数:201
Network management system scheduling for low power and lossy networks
In one embodiment, a network management system (NMS) determines an intent to initialize a request-response exchange with a plurality of clients in a l...
分类:Web程序   时间:2014-07-20 08:31:43    阅读次数:382
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!