随笔分类 - 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
阅读全文
摘要:代码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
阅读全文
摘要:调用系统联系人列表[代码]获取返回代码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();
阅读全文
摘要: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
阅读全文
摘要:代码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
阅读全文
摘要:体验Android个人所得税计算器 含源码http://files.cnblogs.com/mobile/ptc.rar
阅读全文