在实体设备上运行您的应用 设置您的设备,如下所示: 使用一根 USB 电缆将您的设备连接到您的开发机器. 如果您是在 Windows 上开发,可能需要为您的设备安装相应的 USB 驱动程序.如需帮助安装驱动程序,请参阅原始设备制造商 (OEM)USB 驱动程序文档. 转到Settings > Developer options,在您的设备上启用 USB debugging. 注:在 Android 4.2 及更新版本的设备上,Developeroptions 默认处于隐藏状态.如需将其显示出来,…
Android is designed to run on many different types of devices, from phones to tablets and televisions. As a developer, the range of devices provides a huge potential audience for your app. In order for your app to be successful on all these devices,…
官方文档地址为:http://cloud.spring.io/spring-cloud-static/Dalston.SR2/#spring-cloud-feign 文中例子我做了一些测试在:http://git.oschina.net/dreamingodd/spring-cloud-preparation II.Spring Cloud Config Dalston.SR2 Spring Cloud Config为分布式系统的外部配置提供客户端的服务端的支持.使用了它,开发人员就可以在一个中…
官方文档地址为:http://cloud.spring.io/spring-cloud-static/Dalston.SR2/#spring-cloud-feign 文中例子我做了一些测试在:http://git.oschina.net/dreamingodd/spring-cloud-preparation 官方项目:https://github.com/spring-cloud-samples/config-repo II.Spring Cloud Config Dalston.SR2 Sp…
应用程序核心组件中的三个Activity,service,还有broadcast receiver都是通过一个叫做intent的消息激活的.Intent消息传送是在相同或不同的应用程序中的组件之间后运行时绑定的一个设施.Intent对象也就是它自己是一个数据结构,这个数据结构持有将要执行操作的抽象描述,或者在broadcast的情况下,是一个已经发生而将要宣布的描述.为传递intent到每个不同类型的组件有单独的机制: 一个Intent对象被传递到Context.startActivity()或…
Android is a privilege-separated operating system, in which each application runs with a distinct system identity (Linux user ID and group ID). Parts of the system are also separated into distinct identities. Linux thereby isolates applications from…
Android apps are written in the java programming language.The Android SDK tools compile your code-along with any data and resource file-into an APK:an Android package,which is an archive file with an .apk suffix.One APK file contains all the contents…
版权声明:本文为HaiyuKing原创文章,转载请注明出处! 概述 在模拟器上运行项目的步骤.不过在实际开发中,一般不采用这种方式,因为影响电脑的运行,所以一般使用真机运行项目. 运行项目 创建模拟器 如果设备列表中不存在模拟器,则需要新建一个模拟器设备. 选择镜像文件(可以理解为操作系统版本)(如果不存在,可以下载) 选择设备,运行项目…
android的多线程在开发中已经有使用过了,想再系统地学习一下,找到了android的官方文档,介绍进程与线程的介绍,试着翻译一下. 原文地址:http://developer.android.com/guide/components/processes-and-threads.html 首先翻译一下GOOGLE的官方文档, Processes and ThreadsWhen an application component starts and the application does no…
事件循环基类 事件循环基类 事件循环是由asyncio提供的核心执行装置.它提供了多种服务,包括: 注册.执行和关闭延时调用(超时) 为各种通信创建客户端和服务端传输 为一个外部程序通信启动子进程和相关的传输 把高成本的函数调用委托到线程池 class asyncio.BaseEventLoop    此类是一个实现细节.此类是AbstractEventLoop的子类,是你在asyncio中找到的具体事件循环类的基类.它不应该被直接使用,而是使用AbstractEventLoop来代替它.Bas…