App Fundamentals摘要

翻译 2015年11月18日 15:10:50

App Components

Activities,Services,Content providers,Broadcast receivers

Activities, services, and content providers that you include in your source but do not declarein the manifest are not visible to the system and, consequently, can never run. However,broadcastreceivers can be either declared in the manifest or created dynamically in code (asBroadcastReceiver objects) and registered with the system by callingregisterReceiver().

An implicit intentsimply describes the type of action to perform (and, optionally, the data upon which you’d like toperform the action) and allows the system to find a component on the device that can perform theaction and start it. If there are multiple components that can perform the action described by theintent, then the user selects which one to use.

Android supports many different qualifiers for your alternative resources. Thequalifier is a short string that you include in the name of your resource directories in order todefine the device configuration for which those resources should be used. As anotherexample, you should often create different layouts for your activities, depending on thedevice's screen orientation and size. For example, when the device screen is in portraitorientation (tall), you might want a layout with buttons to be vertical, but when the screen is inlandscape orientation (wide), the buttons should be aligned horizontally. To change the layoutdepending on the orientation, you can define two different layouts and apply the appropriatequalifier to each layout's directory name. Then, the system automatically applies the appropriatelayout depending on the current device orientation.

App Fundamentals

Android应用使用Java编写,使用Android SDK tools编译
  • ToYueXinShangWan
  • ToYueXinShangWan
  • 2014年07月30日 18:38
  • 567

app 的摘要说明

using System;namespace BLL{ /// /// app 的摘要说明 /// public class App { public ...
  • eee365
  • eee365
  • 2009年09月01日 22:53
  • 637


第一部分:http认证介绍 摘要认证 digest authentication   ← HTTP1.1提出的基本认证的替代方法     服务器端以nonce进行质询,客户端以用户名,密码,...
  • jesse881025
  • jesse881025
  • 2015年02月26日 13:09
  • 851

AndroidApplication Fundamentals(Android应用基础)

AndroidApplication Fundamentals(Android应用基础)   Android应用采用Java编程语言来编写,AndroidSDK工具编译我们的代码,连同任何数据和资...
  • LoongEmbedded
  • LoongEmbedded
  • 2014年06月13日 15:26
  • 1477


Tapestry是一个新的针对Web的应用框架(Application Framework)。今年初它刚从SourceForge转移到ASF(Apache Software Foundation)著名...
  • pekingsoft
  • pekingsoft
  • 2007年04月09日 20:29
  • 417

新书到货 Fundamentals of Music Processing by Meinard Muller

  • crazyjiang
  • crazyjiang
  • 2015年10月29日 18:21
  • 694

Linux Programming by Example:The Fundamentals(Notes One)

                                                 Chapter 3 User-Level Memory Managment 3.1  Linux/Un...
  • gameboytxt
  • gameboytxt
  • 2005年11月29日 20:40
  • 1060

Android app fundamentals

最近学android,不知道怎么学的时候就开始翻译官方文档。渣四级的水平,求不喷。转载请说明出处! 应用基本原理 Android应用是用Java编程语言编写的。Android SDK工具将你的代码...
  • majalis_C
  • majalis_C
  • 2016年11月17日 21:42
  • 101

Cisco LAN Switching Fundamentals

Cisco LAN Switching FundamentalsThe essential guide for understanding Ethernet switched networksCisc...
  • linhanshi
  • linhanshi
  • 2007年03月24日 11:20
  • 688

2 PL/SQL Language Fundamentals(基本原理)

This chapter explains these aspects(方面) of the PL/SQL language: ■ Character Sets ■ Lexical Units(词...
  • jyloldnf
  • jyloldnf
  • 2016年10月13日 11:32
  • 305
您举报文章:App Fundamentals摘要