自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (2)
  • 收藏
  • 关注

翻译 Android Training--Display Bitmaps Efficiently

Loading Large Bitmaps EfficientlyImages come in all shapes and sizes. In many cases they are larger than required for a typical application user interface (UI). For example, the system Gallery applicat

2016-08-29 15:38:49 360

翻译 Android Training--Capture Photos

Taking Photos SimplyThis lesson explains how to capture photos using an existing camera application.Suppose you are implementing a crowd-sourced weather service that makes a global weather map by blend

2016-08-17 22:22:15 1250

翻译 Android Training--Allowing Other Apps to Start Your Activity

The previous two lessons focused on one side of the story: starting another app’s activity from your app. But if your app can perform an action that might be useful to another app, your app should be p

2016-08-17 14:27:29 358

翻译 Android Training--Saving Files

Android uses a file system that’s similar to disk-based file systems on other platforms. This lesson describes how to work with the Android file system to read and write files with the File APIs.A File

2016-08-16 23:35:30 272

转载 管理android线程池

public class ThreadManager { private ThreadManager() { } private static ThreadManager instance = new ThreadManager(); private ThreadPoolProxy longPool; private ThreadPoolProxy shortPo

2016-08-11 11:24:25 772

转载 多线程

如何解决线程安全问题呢?要想解决问题,就要知道哪些原因会导致出问题:(而且这些原因也是以后我们判断一个程序是否会有线程安全问题的标准) A:是否是多线程环境 B:是否有共享数据 C:是否有多条语句操作共享数据我们来回想一下我们的程序有没有上面的问题呢? A:是否是多线程环境 是 B:是否有共享数据 是 C:是否有多条语句操作共享数据 是由此可见我们的程序

2016-08-06 16:33:09 231

原创 IO

复制文本文件 private static void method5(String srcString, String destString) throws IOException { BufferedReader br = new BufferedReader(new FileReader(srcString)); BufferedWr

2016-08-05 16:03:00 238

原创 Java 基础零散知识点

形式参数: 基本类型:形式参数的改变不影响实际参数 引用类型:形式参数的改变直接影响实际参数 注意:String作为参数传递,效果和基本类型作为参数传递是一样的

2016-08-05 10:56:05 229

转载 Android development: What I wish I had known earlier

详情: http://balpha.de/2013/07/android-development-what-i-wish-i-had-known-earlier/ At the beginning of the year, I jumped from web development to Android development because of this. Both Java in gener

2016-08-01 21:41:16 450

原创 算法--冒泡,选择,二分

//数组排序之冒泡排序://相邻元素两两比较,大的往后放,第一次完毕,最大值出现在了最大索引处 //冒泡排序代码 public static void bubbleSort(int[] arr){ for (int x = 0; x < arr.length - 1; x++) { for (int y = 0; y < arr.length

2016-08-01 18:38:58 197

原创 内部类

内部类概述:把类定义在其他类的内部,这个类就被称为内部类。 举例:在类A中定义了一个类B,类B就是内部类。内部的访问特点:A:内部类可以直接访问外部类的成员,包括私有。 B:外部类要访问内部类的成员,必须创建对象。class Outer { private int num = 10; class Inner { public void show() {

2016-08-01 15:01:15 299

转载 接口

接口的特点: A:接口用关键字interface表示 interface 接口名 {} B:类实现接口用implements表示 class 类名 implements 接口名 {} C:接口不能实例化 那么,接口如何实例化呢? 按照多态的方式来实例化。 D:接口的子类 a:可以是抽象类。

2016-08-01 11:47:24 213

转载 抽象类

抽象类的概述:动物不应该定义为具体的东西,而且动物中的吃,睡等也不应该是具体的。 我们把一个不是具体的功能称为抽象的功能,而一个类中如果有抽象的功能,该类必须是抽象类。抽象类的特点:A:抽象类和抽象方法必须用abstract关键字修饰 B:抽象类中不一定有抽象方法,但是有抽象方法的类必须定义为抽象类 C:抽象类不能实例化 因为它不是具体的。

2016-08-01 11:31:26 228

转载 多态

多态:同一个对象(事物),在不同时刻体现出来的不同状态。举例: 猫是猫,猫是动物。 水(液体,固体,气态)。多态的前提: A:要有继承关系。 B:要有方法重写。 其实没有也是可以的,但是如果没有这个就没有意义。 动物 d = new 猫(); d.show(); 动物 d = ne

2016-08-01 11:05:06 247

SourceCodePro 代码字体下载

SourceCodePro 代码字体下载, adobe推出, 适合任何代码编写

2015-09-19

空空如也

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

TA关注的人

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