自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(23)
  • 收藏
  • 关注

原创 《将博客搬至CSDN》

搬家到csdn

2015-08-06 14:39:14 211

原创 Android NFC简单流程

记录一下,方便自己学习带有NFC的手机会自带一个SmartcardService的服务,基于此服务和提供的jar,我们可以开发一些NFC的小程序简单流程如下:1.初始化SEService2.获取Reader3.使用Reader打开Session(需要AID)4.使用Session打开Channel5.使用Channel下发APDU命令(如查询话费余额等等)

2015-08-06 14:39:10 401

原创 Android开发中常用的命令

最近项目中用到了一些Android的命令,现在给大家分享一下,算是抛砖引玉吧1.adb install xxx.apk或adb install -r xxx.apk,后一种是覆盖安装2.adb uninstall 卸载3.adb push 从PC导入文件到手机4.adb pull 从手机导出文件到PC5.adb shell 进入手机内核(adb shell ls xxx此命令可

2015-08-06 14:39:07 242

原创 18个人生潜规则,你必须知道

1.朋友请你吃饭,不要觉得理所当然,请礼尚往来,否则你的名声会越来越臭。   2.给自己定目标,一年,两年,五年,也许你出生不如别人好,通过努力,往往可以改变70%的命运。破罐子破摔只能和懦弱做朋友。   3.这是个现实的社会,感情不能当饭吃,贫穷夫妻百事哀。不要相信电影,那只是个供许多陌生人喧嚣情感的场所。   4.好朋友里面,一定要培养出一个知己,不要以为你有多么八面玲

2015-08-06 14:39:03 271

原创 SmartCard-3 API Description(API 描述)

该文档定义了原始的开放移动API使用根据描述。这个API提供一个接口定义,该定义可以在不同的编程语言实现。以下类型被用来描述返回值,参数和错误:Value types:boolean: a primitive type, can be true or falseint: a primitive type, contains a 4 byte integer valuebyte[]: an ar

2015-08-06 14:38:58 250

原创 SmartCard-2 Architecture(架构)

SmartCard架构分为以下三层:(传输层、服务层、应用层)>The Transport Layer is the foundation for the Service Layer APIs. It provides general access to Secure Elements when an application is accessing it via the generic Tr

2015-08-06 14:38:56 230

原创 SmartCard-1 Terminology(术语)

1.Abbreviations and Notations(符号和缩写) AbbreviatioinDescription(英文)Description(中文)SESecure Element安全元素APIApplication   Programming Interface应用程序接口ATRAnswer to Re

2015-08-06 14:38:53 238

原创 最全的编码总结笔记

本文转至:http://blog.csdn.net/yiyaaixuexi/article/details/61721821. ASCII码 我们知道,在计算机内部,所有的信息最终都表示为一个二进制的字符串。每一个二进制位(bit)有0和1两种状态,因此八个二进制位就可以组合出256种状态,这被称为一个字节(byte)。也就是说,一个字节一共可以用来表示256种不同的状态,每一个状态对应一个符

2015-08-06 14:38:49 237

原创 Android图片操作-加水印

/** * 水印 * * @param bitmap * @return */ public static Bitmap createBitmapForWatermark(Bitmap src, Bitmap watermark) { if (src == null) { retur

2015-08-06 14:38:46 256

原创 Android图片操作-保存图片格式

/** * 保存图片为PNG * * @param bitmap * @param name */ public static void savePNG_After(Bitmap bitmap, String name) { File file = new File(name); try {

2015-08-06 14:38:44 328

原创 Android图片操作-获得倒影图片

// 获得带倒影的图片方法 public static Bitmap createReflectionImageWithOrigin(Bitmap bitmap) { final int reflectionGap = 4; int width = bitmap.getWidth(); int height = bitmap.getH

2015-08-06 14:38:42 247

原创 Android图片操作-将Drawable转化为Bitmap

// 将Drawable转化为Bitmap public static Bitmap drawableToBitmap(Drawable drawable) { int width = drawable.getIntrinsicWidth(); int height = drawable.getIntrinsicHeight(); B

2015-08-06 14:38:39 415

原创 Android图片操作-获得圆角图片

// 获得圆角图片的方法 public static Bitmap getRoundedCornerBitmap(Bitmap bitmap, float roundPx) { Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Con

2015-08-06 14:38:37 217

原创 Android图片操作-放大缩小

// 放大缩小图片 public static Bitmap zoomBitmap(Bitmap bitmap, int w, int h) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); Matrix matrix = new Matrix();

2015-08-06 14:38:34 255

原创 Android图片操作-剪切

// 图片剪切 public static Bitmap cutBitmap(Bitmap mBitmap, Rect r, Bitmap.Config config) { int width = r.width(); int height = r.height(); Bitmap croppedImage = Bitmap.cr

2015-08-06 14:38:31 334

原创 Android图片操作-保存图片到SD卡

/** * Save Bitmap to a file.保存图片到SD卡。 * * @param bitmap * @param file * @return error message if the saving is failed. null if the saving is * successful.

2015-08-06 14:38:28 369

原创 Android图片操作-生成缩略图

// 可用于生成缩略图。 /** * Creates a centered bitmap of the desired size. Recycles the input. * * @param source */ public static Bitmap extractMiniThumb(Bitmap source, int w

2015-08-06 14:38:26 340

原创 Android图片操作-合并图片

/** * 将多个Bitmap合并成一个图片。 * @param columns 将多个图合成多少列 * @param bitmaps 要合成的图片 * @return */ public static Bitmap combineBitmaps(int columns, Bitmap... bitmaps) {

2015-08-06 14:38:23 327

原创 Android图片操作-截屏

// 截屏 public static Bitmap getScreenshotsForCurrentWindow(Activity activity) { View cv = activity.getWindow().getDecorView(); Bitmap bmp = Bitmap.createBitmap(cv.getWidth(), cv.

2015-08-06 14:38:21 216

原创 Android图片操作-切割

/** * 图片切割方法 * @param bitmap 图片 * @param xPiece 行 * @param yPiece 列 * @return */ public static List split(Bitmap bitmap, int xPiece, int yPiece) { L

2015-08-06 14:38:18 278

原创 Android 命令行常用命令

1.android list target   该命令显示已安装的android平台,每个平台有自己的ID号2.android create avd -n skwwt -p ~/test/ -t 11 -f   该命令创建一个新的模拟器,-n后面接创建模拟器的名字,-p后面接的是模拟器存放路径,-t后面接平台的id,即(1)中显示的id号,   如果-p后面的路径存在,需要加-f覆盖,如果不存

2015-08-06 14:38:16 390

原创 痛了,自然就会放下

一个苦者对和尚说:“我放不下一些事,放不下一些人。” 和尚说:“没有什么东西是放不下的。”他说:“可我就偏偏放不下。”和尚让他拿着一个茶杯,然后就往里面倒热水,一直倒到水溢出来。苦者被烫到马上松开了手。和尚说:“这个世界上没有什么事是放不下的,痛了,你自然就会放下”

2015-08-06 14:38:11 276

原创 Intent四个重要属性

Intent作为联系各Activity之间的纽带,其作用并不仅仅只限于简单的数据传递。通过其自带的属性,其实可以方便的完成很多较为复杂的操作。例如直接调用拨号功能、直接自动调用合适的程序打开不同类型的文件等等。诸如此类,都可以通过设置Intent属性来完成。Intent主要有以下四个重要属性,它们分别为:Action:Action属性的值为一个字符串,它代表了系统中已经定义了一系列常用的动

2015-08-06 14:38:06 278

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除