自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

翻译 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 FileAPIs. A 

2014-05-28 22:15:15 917

翻译 Managing the Activity Lifecycle

As a user navigates through, out of, and back to your app, theActivity instances in your app transition between different states in their lifecycle. For instance, when your activity starts for the f

2014-05-28 21:04:37 717

原创 Android实现多线程断点下载

本案例在于实现文件的多线程断点下载,即文件在下载一部分中断后,可继续接着已有进度下载,并通过进度条显示进度。也就是说在文件开始下载的同时,自动创建每个线程的下载进度的本地文件,下载中断后,重新进入应用点击下载,程序检查有没有本地文件的存在,若存在,获取本地文件中的下载进度,继续进行下载,当下载完成后,自动删除本地文件。 1. 定义布局文件需要用到的属性名及内容 2. 设置用户的Inte

2014-05-27 21:33:35 6436 3

原创 android-async-http开源项目对服务器端返回JSON数据的处理

一、在JavaEE项目中搭建环境 1. 导入相关jar包 2. 搭建相关的包和类 3.类中的方法简单实现 User: 声明以下属性,并实现无参构造器和有参构造器,以及各自的get和set方法 UserDao: UserDaoImpl: JsonServlet: protected void doGet(HttpServletReque

2014-05-26 21:01:23 13457 2

翻译 Android Asynchronous Http Client

Overview An asynchronous callback-based Http client for Android built on top of Apache’s HttpClient libraries. All requests are made outside of your app’s main UI thread, but any callback logic w

2014-05-22 21:53:13 1199

翻译 MessageQueue

Class Overview Low-level class holding the list of messages to be dispatched by a Looper. Messages are not added directly to a MessageQueue, but rather throughMessageQueue.IdleHandler objects

2014-05-21 21:26:47 546

翻译 Message

Class Overview Defines a message containing a description and arbitrary data object that can be sent to a Handler. This object contains two extra int fields and an extra object field that allow

2014-05-21 21:22:57 607

翻译 Looper

Class Overview Class used to run a message loop for a thread. Threads by default do not have a message loop associated with them; to create one, call prepare() in the thread that is to run the

2014-05-21 21:17:50 790

翻译 Handler

Class Overview A Handler allows you to send and process Message and Runnable objects associated with a thread's MessageQueue. Each Handler instance is associated with a single thread and that

2014-05-21 21:11:43 561

原创 Dalvik VM 和 JVM 的比较

Dalvik VM编辑后的文件格式 JVM

2014-05-19 21:39:14 632

翻译 Create a Project with Eclipse

Click New  in the toolbar.In the window that appears, open the Android folder, select Android Application Project, and click Next. Figure 1. The New Android App Project wizard in Eclipse. Fi

2014-05-19 21:23:08 602

翻译 Get the Android SDK

Get the Android SDK The Android SDK provides you the API libraries and developer tools necessary to build, test, and debug apps for Android. If you're a new Android developer, we recommend you downl

2014-05-19 20:26:48 1372

空空如也

空空如也

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

TA关注的人

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