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…
  原文:个人翻译,水平有限,欢迎看官指正.                                                              public class AlarmManager extends Object java.lang.Object    ↳ android.app.AlarmManager Class Overview This class provides access to the system alarm services. 这个类可以提…
  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…
  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…
多线程一直是初学者最抵触的东西,如果你想进阶的话,那必须闯过这道难关,特别是多线程中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,能同时选中多个…
在学习和使用Android网路编程时,我们接触的仅仅是上层协议和接口如Apache的httpclient或者Android自带的httpURlconnection等等.对于这些接口的底层实现我们也有必要进一步的了解,这就要我们了解网络通信层了,提到网络通信层不得不说起ISO-OSI的七层协议经典架构,如图所示: 上图的左边部分就是osi架构模型了, ISO/OSI模型,即开放式通信系统互联参考模型(Open System Interconnection Reference Model),是国际标…