1、权限2、代码public void setPhoneMusic() {
//设置当前文件存放音乐为手机铃声 Intent intent = new
Intent(RingtoneManager.ACTION_RINGTONE_PICKER); //打开系统...
分类:
其他好文 时间:
2014-05-06 00:27:49
阅读次数:
305
public static String getMD5(String str) {
MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } ca...
分类:
移动开发 时间:
2014-05-06 00:24:23
阅读次数:
430
题目链接很简单的递推,但是写代码的过程中,犯了一个严重的错误,就是我用unsigned
int型变量>= 0 作为循环条件(而且是降序)的时候,出现了问题。附上代码: 1 class Solution { 2 public: 3 int
minimumTotal(vector > &tria...
分类:
其他好文 时间:
2014-05-06 00:10:57
阅读次数:
335
Base64.javaimport
java.io.ByteArrayOutputStream;import java.io.IOException;import
java.io.OutputStream;public class Base64 { private static final c...
分类:
移动开发 时间:
2014-05-06 00:08:02
阅读次数:
415
本实验采用Spring中配置Action,Spring代理生成Struts的类-->Dept.javapackage
cn.itcast.domain;public class Dept { private Integer id; private String deptno;
private Str...
分类:
其他好文 时间:
2014-05-06 00:00:14
阅读次数:
333
#region 判断图片是否一致/// /// 判断图片是否一致/// /// 图片一///
图片二/// 是否一致public bool IsSameImg(Bitmap img, Bitmap bmp){//大小一致if (img.Width ==
bmp.Width && img.Height...
分类:
其他好文 时间:
2014-05-05 23:40:03
阅读次数:
472
1 Arrays.sort(points, new comparator());2 3
public static class comparator implements Comparator {4 public int compare(Point
p1, Point p2) {5 ...
分类:
编程语言 时间:
2014-05-05 23:32:10
阅读次数:
444
1、One To One 单相背景: 古代一个老婆
只能关联一个老公husband.javapackage com.rhythmk.model;public class husband { public
Integer getHusbandId() { return husbandId; }...
分类:
系统相关 时间:
2014-05-05 23:06:28
阅读次数:
516
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:44:13
阅读次数:
328
1 /** 2 * Definition for binary tree 3 * public
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 *
TreeNo...
分类:
其他好文 时间:
2014-05-05 22:43:14
阅读次数:
313