码迷,mamicode.com
首页 >  
搜索关键字:Intent    ( 3334个结果
十八、Android引导界面
一、所需素材 很有必要整理一下,里面附带友盟的社会化分享组件,我就不去掉了。二、代码import com.umeng.update.UmengUpdateAgent;import android.app.Activity;import android.content.Intent;import an...
分类:移动开发   时间:2014-06-16 10:52:56    阅读次数:538
1.1.4 Getting Started_Budding Your First App_Starting Another Activity
AnIntentis an object that provides runtime binding between separate components (such as two activities). Theintentrepresents an app’s "intent to do so...
分类:移动开发   时间:2014-06-16 10:00:27    阅读次数:248
[备忘]Notification的实用
Intent resultIntent = null; if (!TextUtils.isEmpty(tid)){ resultIntent = new Intent("com.shijiebang.notify"); resultIntent.putExtra("_notify_url...
分类:其他好文   时间:2014-06-16 00:29:55    阅读次数:297
【Android开发那点破事】消息推送BroadcastReceiver,点击通知打开两次Activity问题
Android开发中,通常会使用BroadcastReceiver来接受Push推送消息。当APP收到推送通知时,我们需要在通知的点击事件中加入自己的逻辑。比如跳转到MainActivity。比如下面的代码(注意红色部分):public void onReceive(Context context, Intent intent) { Bundle bundle = intent.g...
分类:移动开发   时间:2014-06-15 19:54:15    阅读次数:251
android 创建通知栏Notification
///// 第一步:获取NotificationManager NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); ///// 第二步:定义Notification Intent intent = new Intent(this, Oth...
分类:移动开发   时间:2014-06-15 16:16:47    阅读次数:182
两个Activity之间共享数据、互相访问的另一种方式的实现
本帖最后由 勇敢的心_ 于 2010-9-29 11:51 编辑本人从windows编程转过来学习Android开发,一直在想如果两个Activity之间能够像C#或delphi中的Form一样,可以直接访问其成员(字符、数值、成员对象等),并能调用其公开的方法,那应该比用Intent来传递数据直接...
分类:其他好文   时间:2014-06-12 14:05:03    阅读次数:266
android应用程序监听SMS Intent广播
当设备接收到一条新的SMS消息时,就会广播一个包含了android.provider.Telephony.SMS_RECEIVED动作的Intent。对于应用程序监听SMS Intent广播,首先需要添加RECEIVE_SMS权限。通过在应用程序manifest中添加一个uses-permissio...
分类:移动开发   时间:2014-06-12 10:20:50    阅读次数:263
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!