摘要:
SpringMVC3中关于url-pattern设成"/"后,CSS等资源的访问会报错:No mapping found for HTTP request with URI。解决办法是将资源类文件夹放到resources目录中,然后在 servlet-context.xml中 添加 xmlns:mvc="http://www.springframework.org/schema/mvc"<!-- Handles HTTP GET requests for /resources/** by efficiently serving up static 阅读全文
摘要:
代码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(); 阅读全文
摘要:
代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--/**Copyright(C)2008TheAndroidOpenSourceProject**LicensedundertheApacheLicense,Version2.0(the"License");*youmaynotusethisfileexceptincompliancewiththeLicense.*YoumayobtainacopyoftheLicenseat**http://ww 阅读全文