摘要:
android组件的事件处理有2种方式:
1、基于监听器的事件处理方式:先定义组件,然后为组件设定监听器。
详见http://blog.csdn.net/jediael_lu/article/details/11555497
2、基于回调的事件处理方式:让每一个组件继承UI类,并重写该类的事件处理方法。当该组件遇到某事件时,即会触发相应的事件处理方法。 阅读全文
posted @ 2013-10-31 13:14
安卓吧
阅读(4217)
评论(0)
推荐(0)
摘要:
以上方法均通过测试,tv_result为自设定的TextView。 阅读全文
posted @ 2013-10-31 12:35
安卓吧
阅读(5125)
评论(0)
推荐(0)
摘要:
一:Notification
1.NotificationManager nm = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);
2. notification.setLatestEventInfo(this, "国安部给你发短信!", "你被通辑啦~~~", contentIntent);
2.1: PendingIntent contentIntent = PendingIntent.getActivity(this, 0, intent, 0);
2.1.1: Intent intent = new Intent();
intent.setAction(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:110"));
3.nm.notify(0,notification);
3.1:Notification notification = new
Notification(R.drawab 阅读全文
posted @ 2013-10-31 07:53
安卓吧
阅读(3898)
评论(0)
推荐(0)

浙公网安备 33010602011771号