public class   HandlerThread extends Thread   Class  Overview Handy class for starting a new thread that has a looper.The looper can than be used to create handler classes.Note that start() mast still not called.   Handy class for starting a new th…
  原文:个人翻译,水平有限,欢迎看官指正.                                                              public class AlarmManager extends Object java.lang.Object    ↳ android.app.AlarmManager Class Overview This class provides access to the system alarm services. 这个类可以提…
public class LocalBroadcastManager extends Object java.lang.Object    ↳ android.support.v4.content.LocalBroadcastManager Class Overview Helper to register for and send broadcasts of Intents to local objects within your process. This is has a number o…
  API14位于android.net.VpnService 类概述|Class OverviewVpnService is a base class for applications to extend and build their own VPN solutions//VpnService一个为应用程序扩展和建立自己的VPN解决方案的基类.In general, it creates a virtual network interface, configures addresses an…
public class PopupWindow extends Object //直接继承至Object java.lang.Object ↳ android.widget.PopupWindow //widget Class Overview//概述 A popup window that can be used to display an arbitrary view. The popup windows is a floating container that appears on to…
  AsyncTask——异步任务   个人认为这是翻译比较好的一次.. Class Overview//类概述 AsyncTask enables proper and easy use of the UI thread. This class allows to perform background operations and publish results on the UI thread without having to manipulate threads and/or handl…
Service是一种能长期在后台运行同一时候不须要与用户进行交互的应用组件.其它组件能够开启service,开启后service能够自行运行及时用户已经切换到其它的应用.此外,组件能够与service进行绑定来进行交互.及时是跨进程的交互(Android的IPC机制).网络操作.播放音乐.运行文件IO操作或是与内容提供者进行交互,这些操作都能够通过service在后台进行. Service的两种形式: Started 通过调用startService().你能够启动一个service.一旦被启动…
多线程一直是初学者最抵触的东西,如果你想进阶的话,那必须闯过这道难关,特别是多线程中Thread.Runnable.Callable.Future.FutureTask这几个类往往是初学者容易搞混的.这里先总结这几个类特点和区别,让大家带着模糊印象来学习这篇文章 Thread.Runnable.Callable:都是线程 Thread特点:提供了线程等待.线程睡眠.线程礼让等操作 Runnable和Callable特点:都是接口,并提供对应的实现方法 Runnable.Callable区别:Ru…
注:本文中的recreate是指当内存不足时,Activity被回收,但再次来到此Activity时,系统重新恢复的过程.例如:当Activity A到Activity B时,如果内存不足,A被回收,但当用户按下Back键返回时,A又会被系统重新创建. 为了便于问题展开,我们首先来看一段最简单的代码 ----------------代码片段1------------------ package com.example.corn.corntest; import android.app.Activ…
学习目的: 1.掌握在Android中如何建立RadioGroup和RadioButton 2.掌握RadioGroup的常用属性 3.理解RadioButton和CheckBox的区别 4.掌握RadioGroup选中状态变换的事件(监听器) RadioButton和CheckBox的区别: 1.单个RadioButton在选中后,通过点击无法变为未选中 单个CheckBox在选中后,通过点击可以变为未选中 2.一组RadioButton,只能同时选中一个 一组CheckBox,能同时选中多个…