自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 资源 (2)
  • 收藏
  • 关注

原创 ios developer tiny share-20161019

今天讲Objective-C的Collection的Array。Arrays Are Ordered CollectionsAn NSArray is used to represent an ordered collection of objects. The only requirement is that each item is an Objective-C objec

2016-10-27 15:45:20 171

原创 android developer tiny share-20161019

今天讲新的一节,android的概览屏幕,即显示最近打开的程序的页面。概览屏幕概览屏幕(也称为最新动态屏幕、最近任务列表或最近使用的应用)是一个系统级别 UI,其中列出了最近访问过的Activity和任务。 用户可以浏览该列表并选择要恢复的任务,也可以通过滑动清除任务将其从列表中删除。 对于 Android 5.0 版本(API 级别 21),包含多个文档的同一 Activit

2016-10-27 15:45:11 214

原创 ios developer tiny share-20161018

今天开始讲Objective-C的集合,今天先大概看下Overview。Most Collections Are ObjectsAlthough it’s possible to use a C array to hold a collection of scalar values, or even object pointers, most collections in Ob

2016-10-27 10:30:10 189

原创 android developer tiny share-20161018

今天讲android的启动任务。启动任务通过为 Activity 提供一个以 "android.intent.action.MAIN" 为指定操作、以"android.intent.category.LAUNCHER" 为指定类别的 Intent 过滤器,您可以将活动设置为任务的入口点。 例如: ...

2016-10-26 19:16:57 217

原创 ios developer tiny share-20161017

今天讲Objective-C的NSValue,它可以代表更复杂的Objective-C的类型,比如NSRange,结构体类型。Represent Other Values Using Instances of the NSValue ClassThe NSNumber class is itself a subclass of the basic NSValue class,

2016-10-25 18:36:44 172

原创 android developer tiny share-20161017

今天讲Activity涉及Task的几个属性,分别是alwaysRetainTaskState、clearTaskOnLaunch、finishOnTaskLaunch,都是关于系统清理返回栈时对Activity的控制。清理返回栈如果用户长时间离开任务,则系统会清除所有 Activity 的任务,根任务除外。 当用户再次返回到任务时,仅恢复根 Activity。系统这样做的原因是,

2016-10-25 15:48:09 199

原创 ios developer tiny share-20161014

今天讲ios的NSNumber,以及NSUIntegerNumbers Are Represented by Instances of the NSNumber ClassThe NSNumber class is used to represent any of the basic C scalar types, including char, double, float, in

2016-10-24 19:06:33 165

原创 android developer tiny share-20161014

今天讲android的Task的taskAffinity属性含义处理关联“关联”指示 Activity 优先属于哪个任务。默认情况下,同一应用中的所有 Activity 彼此关联。 因此,默认情况下,同一应用中的所有 Activity 优先位于相同任务中。 不过,您可以修改 Activity 的默认关联。 在不同应用中定义的 Activity 可以共享关联,或者可为在同一应用中定义

2016-10-24 18:53:53 152

原创 ios developer tiny share-20161013

今天讲Objective-C的基本类型对应的对象封装类型Objects Can Represent Primitive ValuesIf you need to represent a scalar value as an object, such as when working with the collection classes described in the next

2016-10-20 18:40:15 185

原创 android developer tiny share-20161013

今天继续讲android的启动模式,讲使用intent方式设置启动模式。使用 Intent 标志启动 Activity 时,您可以通过在传递给 startActivity() 的 Intent 中加入相应的标志,修改 Activity 与其任务的默认关联方式。可用于修改默认行为的标志包括:FLAG_ACTIVITY_NEW_TASK在新任务中启动 Activit

2016-10-20 18:39:45 184

原创 ios developer tiny share-20161012

今天讲Objective-C可以使用C语言的结构体C Structures Can Hold Primitive ValuesSome Cocoa and Cocoa Touch API use C structures to hold their values. As an example, it’s possible to ask a string object for the

2016-10-19 11:21:57 239

原创 android developer tiny share-20161012

本节继续讲android的启动模式,会举一个例子讲singleTask模式的一个知识点。我们再来看另一示例,Android 浏览器 应用声明 Web 浏览器 Activity 应始终在其自己的任务中打开(通过在 <activity> 元素中指定 singleTask 启动模式)。这意味着,如果您的应用发出打开 Android 浏览器的 Intent,则其 Activity

2016-10-19 11:11:07 152

原创 ios developer tiny share-20161011

今天讲Objective-C中定义的除了C语言定义的以外的基本类型。Objective-C Defines Additional Primitive TypesThe BOOL scalar type is defined in Objective-C to hold a Boolean value, which is either YES or NO. As you might

2016-10-18 18:59:26 206

原创 android developer tiny share-20161011

今天讲android的Activity的启动模式。定义启动模式启动模式允许您定义 Activity 的新实例如何与当前任务关联。 您可以通过两种方法定义不同的启动模式:使用清单文件在清单文件中声明 Activity 时,您可以指定 Activity 在启动时应该如何与任务关联。使用 Intent 标志调用 startActivity() 时,可以在 Inte

2016-10-18 18:54:54 151

原创 ios developer tiny share-20161010

今天讲Objective-C的整型类和集合类。Values and CollectionsAlthough Objective-C is an object-oriented programming language, it is a superset of C, which means you can use any of the standard C scalar (non-o

2016-10-14 13:46:53 250

原创 android developer tiny share-20161010

今天继续讲Task,涉及“保存Activity状态”和“管理任务”两个小话题。保存 Activity 状态正如上文所述,当 Activity 停止时,系统的默认行为会保留其状态。 这样一来,当用户导航回到上一个 Activity 时,其用户界面与用户离开时一样。 但是,在 Activity 被销毁且必须重建时,您可以而且应当主动使用回调方法保留 Activity 的状态。系

2016-10-14 13:19:59 234

原创 ios developer tiny share-20161009

今天讲Objective-C使用protocol隐藏实现。Protocols Are Used for AnonymityProtocols are also useful in situations where the class of an object isn’t known, or needs to stay hidden.As an example, the

2016-10-13 16:15:01 94

原创 android developer tiny share-20161009

今天继续讲android中的任务Task。任务是一个有机整体,当用户开始新任务或通过“主页”按钮转到主屏幕时,可以移动到“后台”。 尽管在后台时,该任务中的所有 Activity 全部停止,但是任务的返回栈仍旧不变,也就是说,当另一个任务发生时,该任务仅仅失去焦点而已,如图 2 中所示。 然后,任务可以返回到“前台”,用户就能够回到离开时的状态。 例如,假设当前任务(任务 A)的堆栈中

2016-10-13 16:00:28 157

原创 ios developer tiny share-20161008

今天讲Cocoa and Cocoa Touch Define a Large Number of Protocols。Cocoa and Cocoa Touch Define a Large Number of ProtocolsProtocols are used by Cocoa and Cocoa Touch objects for a variety of diffe

2016-10-12 14:04:59 203

原创 android developer tiny share-20161008

今天讲android的任务和返回栈。任务和返回栈应用通常包含多个Activity。每个 Activity 均应围绕用户可以执行的特定操作设计,并且能够启动其他 Activity。 例如,电子邮件应用可能有一个 Activity 显示新邮件的列表。用户选择某邮件时,会打开一个新 Activity 以查看该邮件。一个 Activity 甚至可以启动设备上其他应用中存在的 Act

2016-10-12 13:51:50 157

原创 ios developer tiny share-20160930

今天讲Objective-C的“Conforming to Protocols”话题。Conforming to ProtocolsThe syntax to indicate that a class adopts a protocol again uses angle brackets, like this@interface MyClass : NSObject

2016-10-11 15:53:09 215

原创 android developer tiny share-20160930

今天会以一个例子来结束Loader的学习,请看下面的Loader demo。示例以下是一个 Fragment 完整实现示例。它展示了一个 ListView,其中包含针对联系人内容提供程序的查询结果。它使用 CursorLoader 管理提供程序的查询。应用如需访问用户联系人(正如此示例中所示),其清单文件必须包括权限 READ_CONTACTS。public sta

2016-10-11 15:36:23 179

原创 ios developer tiny share-20160929

今天讲Objective-C的protocol的继承。Protocols Inherit from Other ProtocolsIn the same way that an Objective-C class can inherit from a superclass, you can also specify that one protocol conforms to ano

2016-10-11 10:45:52 164

原创 android developer tiny share-20160929

今天讲Loader的回调。使用 LoaderManager 回调LoaderManager.LoaderCallbacks 是一个支持客户端与 LoaderManager 交互的回调接口。加载器(特别是 CursorLoader)在停止运行后,仍需保留其数据。这样,应用即可保留 Activity 或片段的 onStop() 和 onStart() 方法中的数据。当用户返回应

2016-10-11 10:33:18 231

原创 ios developer tiny share-20160928

今天讲Objective-C的protocol的两个知识点,分别是带可选方法的协议,以及在运行时时检查可选方法是否实现。Protocols Can Have Optional MethodsBy default, all methods declared in a protocol are required methods. This means that any class th

2016-10-10 15:18:52 256

原创 android developer tiny share-20160928

今天继续讲Loader,讲如何启动Loader,重启Loader。在应用中使用加载器此部分描述如何在 Android 应用中使用加载器。使用加载器的应用通常包括:Activity 或 Fragment。LoaderManager 的实例。一个 CursorLoader,用于加载由 ContentProvider 支持的数据。您也可以实现自己的 Loader 或 As

2016-10-10 14:58:02 156

原创 ios developer tiny share-20160927

今天继续讲Objective-C的protocol,讲“Protocols Define Messaging Contracts”。Protocols Define Messaging ContractsA class interface declares the methods and properties associated with that class. A prot

2016-10-09 16:56:21 181

原创 android developer tiny share-20160927

今天开始新的一章,fragment讲完了,开始讲Loader,加载器,用于异步加载数据的api。加载器Android 3.0 中引入了加载器,支持轻松在 Activity 或片段中异步加载数据。 加载器具有以下特征:可用于每个 Activity 和 Fragment。支持异步加载数据。监控其数据源并在内容变化时传递新结果。在某一配置更改后重建加载器时,会自动重新

2016-10-09 16:31:06 157

原创 ios developer tiny share-20160926

本节开始,我们将讲Objective-C的面向接口编程,先看下本章的OverView。Working with ProtocolsIn the real world, people on official business are often required to follow strict procedures when dealing with certain situa

2016-10-09 13:51:27 183

原创 android developer tiny share-20160926

今天会讲Master-Detail模式的一个demo,涉及前几节讲的fragment和Activity知识。这个例子也是api demo上的一个example。示例为了将本文阐述的所有内容融会贯通,以下提供了一个示例,其中的 Activity 使用两个片段来创建一个双窗格布局。 下面的 Activity 包括两个片段:一个用于显示莎士比亚戏剧标题列表,另一个用于从列表中选定戏剧时显

2016-10-09 13:39:12 171

原创 ios developer tiny share-20160923

今天讲Objective-C除了继承,还有什么好的办法实现类的定制化Consider Other Alternatives for Class CustomizationCategories and class extensions make it easy to add behavior directly to an existing class, but sometimes

2016-10-08 15:50:58 185

原创 android developer tiny share-20160923

今天讲fragment和Activity的生命周期的相互协调关系与 Activity 生命周期协调一致片段所在的 Activity 的生命周期会影响片段的生命周期,其表现为,Activity 的每次生命周期回调都会引发每个片段的类似回调。 例如,当 Activity 收到 onPause() 时,Activity 中的每个片段也会收到 onPause()。不过,片段还有几个

2016-10-08 15:32:59 171

原创 ios developer tiny share-20160922

今天讲Objective-C中使用类的继承来隐藏private信息Use Class Extensions to Hide Private InformationThe primary interface for a class is used to define the way that other classes are expected to interact with it

2016-10-08 13:41:53 163

原创 android developer tiny share-20160922

今天讲两个知识点,fragment向Activity添加菜单,处理fragment的生命周期。向操作栏添加项目您的片段可以通过实现 onCreateOptionsMenu() 向 Activity 的选项菜单(并因此向操作栏)贡献菜单项。不过,为了使此方法能够收到调用,您必须在 onCreate() 期间调用 setHasOptionsMenu(),以指示片段想要向选项菜单添加

2016-10-08 12:41:44 169

Genymotion-ARM-Translation_v1.1.zip

使用Genymotion模拟器运行apk时,提示INSTALL_FAILED_CPU_ABI_INCOMPATIBLE。折是因为你的项目里有native的so库,安装这个支持ARM的so库就搞定了。

2016-10-14

SAMSUNG_USB_Driver_for_Mobile_Phones.zip

三星Galaxy S4(I9508,android系统为4.3),在连接电脑的时候,反复提示安装驱动,不能成功连接电脑,当时开着360手机助手,也不行。后来,从三星的开发官网上下载了这个安装包,安装到电脑上,再打开360手机助手,就可以成功连接电脑了。希望能帮助大家。

2016-10-13

空空如也

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

TA关注的人

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