随笔分类 -  Android

摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--NotificationManagernotificationManager=(NotificationManager)getSystemService(NOTIFICATION_SERVICE);Notificationnotification=newNotification(R.drawable.icon,"您有新消息了",System.currentTimeMillis());Pending 阅读全文
posted @ 2011-01-25 15:38 Liren 阅读(562) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--privatevoidsendMessage(Stringcontact,Stringmessage){SmsManagersmsManager=SmsManager.getDefault();PendingIntentsentIntent=PendingIntent.getBroadcast(this,0,newIntent(),0);if(message.length()70){ListS 阅读全文
posted @ 2011-01-25 15:30 Liren 阅读(458) 评论(0) 推荐(0)
摘要:调用系统联系人列表[代码]获取返回代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1@Override2protectedvoidonActivityResult(intrequestCode,intresultCode,Intentintent){3if(ACTION_PICK==requestCode){4if(resultCode==Activity.RESULT_OK){5UricontactData=intent.getData(); 阅读全文
posted @ 2011-01-25 15:29 Liren 阅读(865) 评论(0) 推荐(1)
摘要:Android 给自己的类加个事件1、定义一个接口[代码]2、给你的类定义事件privateISpriteAction.OnClickListeneronClickListener=null;[代码] 触发事件 if(onClickListener!=null)onClickListener.onClick(this);3、设置事件处理代码代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--title.setOnClickListener(new 阅读全文
posted @ 2011-01-04 15:48 Liren 阅读(348) 评论(0) 推荐(0)
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1btnRotate.setOnClickListener(newOnClickListener(){2@Override3publicvoidonClick(Viewv){4intr=Math.abs(getRequestedOrientation());5Log.d("DEBUG",Integer.toString(r));6Log.d("DEBUG","LANDSCAPE="+Integer 阅读全文
posted @ 2010-12-19 22:08 Liren 阅读(294) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2010-12-11 21:16 Liren 阅读(644) 评论(0) 推荐(0)
摘要:体验Android个人所得税计算器 含源码http://files.cnblogs.com/mobile/ptc.rar 阅读全文
posted @ 2007-11-15 11:49 Liren 阅读(971) 评论(2) 推荐(0)