一、所需素材
很有必要整理一下,里面附带友盟的社会化分享组件,我就不去掉了。二、代码import
com.umeng.update.UmengUpdateAgent;import android.app.Activity;import
android.content.Intent;import an...
分类:
移动开发 时间:
2014-06-16 10:52:56
阅读次数:
538
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
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来接受Push推送消息。当APP收到推送通知时,我们需要在通知的点击事件中加入自己的逻辑。比如跳转到MainActivity。比如下面的代码(注意红色部分):public void onReceive(Context context, Intent intent) {
Bundle bundle = intent.g...
分类:
移动开发 时间:
2014-06-15 19:54:15
阅读次数:
251
///// 第一步:获取NotificationManager
NotificationManager nm = (NotificationManager)
getSystemService(Context.NOTIFICATION_SERVICE);
///// 第二步:定义Notification
Intent intent = new Intent(this, Oth...
分类:
移动开发 时间:
2014-06-15 16:16:47
阅读次数:
182
本帖最后由 勇敢的心_ 于 2010-9-29 11:51
编辑本人从windows编程转过来学习Android开发,一直在想如果两个Activity之间能够像C#或delphi中的Form一样,可以直接访问其成员(字符、数值、成员对象等),并能调用其公开的方法,那应该比用Intent来传递数据直接...
分类:
其他好文 时间:
2014-06-12 14:05:03
阅读次数:
266
当设备接收到一条新的SMS消息时,就会广播一个包含了android.provider.Telephony.SMS_RECEIVED动作的Intent。对于应用程序监听SMS
Intent广播,首先需要添加RECEIVE_SMS权限。通过在应用程序manifest中添加一个uses-permissio...
分类:
移动开发 时间:
2014-06-12 10:20:50
阅读次数:
263