2013年9月23日

android打电话、发短信实现

摘要: 打电话: Intent intent = newIntent(Intent.ACTION_CALL,Uri.parse("tel:"+"156666666666")); this.startActivity(intent); 加上打电话的权限: texts =smsM 阅读全文

posted @ 2013-09-23 22:58 qgc 阅读(305) 评论(0) 推荐(0)

J2EE项目相对路径、绝对路径获取

摘要: String path = getServletContext()。getRealPath("/");   这将获取web项目的全路径.   this.getClass()。getClassLoader()。getResource("/")。getPath();   这将获取 到classes目录的全路径   request.getContextPath();   获得web根的上下文环境      jsp 获取文件路径   当前WEB应用的物理路径:   当前你求请的JSP文件的物理路径: %   String path=application.getRealPath(request.getRequestURI());   String dir=new File(path)。getParent();   out.println("当前J 阅读全文

posted @ 2013-09-23 12:43 qgc 阅读(656) 评论(0) 推荐(1)

导航