上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 自定义TextView:public class FirstBoldTextView extends TextView{ private boolean firstWordBold = false; private String str; public FirstBoldTextV... 阅读全文
posted @ 2014-10-29 15:16 crane13 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 1、Layout文件添加Facebook的LoginBurtton1 2、 创建MainFragment 类,并且继承Fragment 类,重写onCreateView()方法 ;通过LoginButton设置权限setReadPermissions() 更多权限访问http://develope... 阅读全文
posted @ 2014-10-29 14:40 crane13 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: /** * 转换图片成圆形 * * @param bitmap * 传入Bitmap对象 * @return */ public static Bitmap toRoundBitmap(Bitmap bitmap)... 阅读全文
posted @ 2014-05-09 22:58 crane13 阅读(870) 评论(0) 推荐(1) 编辑
摘要: Intent intent = new Intent();ComponentName cmp = new ComponentName("com.sina.weibo","com.sina.weibo.EditActivity");intent.setAction(Intent.ACTION_MAIN... 阅读全文
posted @ 2014-05-07 23:44 crane13 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 一、获取API Key1、先获取SHA-1 fingerprint数字证书是有两种,一种是debug,还有release。前者只能用于测试;后者才可以用于实际产品。debug:在命令行中输入命令:keytool -list -v -keystore "C:\Users\your_user_name\... 阅读全文
posted @ 2014-05-07 17:30 crane13 阅读(623) 评论(0) 推荐(0) 编辑
摘要: public static String getMD5(String str) { MessageDigest md5 = null; try { md5 = MessageDigest.getInstance("MD5"); } ca... 阅读全文
posted @ 2014-05-02 21:18 crane13 阅读(135) 评论(0) 推荐(0) 编辑
摘要: import java.io.ByteArrayOutputStream;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.i... 阅读全文
posted @ 2014-05-02 21:16 crane13 阅读(236) 评论(0) 推荐(0) 编辑
摘要: import android.app.AlertDialog;import android.content.Context;import android.content.DialogInterface;import android.text.TextUtils;import android.widg... 阅读全文
posted @ 2014-05-02 21:07 crane13 阅读(547) 评论(0) 推荐(0) 编辑
摘要: Base64.javaimport java.io.ByteArrayOutputStream;import java.io.IOException;import java.io.OutputStream;public class Base64 { private static final c... 阅读全文
posted @ 2014-05-02 21:06 crane13 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 调用系统Intent剪裁图片 /** * 调用系统Intent剪裁图片 * @param context * @param uri * @param w * @param h */ public static void startP... 阅读全文
posted @ 2014-05-02 20:55 crane13 阅读(964) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页