- 博客(21)
- 资源 (16)
- 收藏
- 关注
翻译 ContentProvider示例-Calendar Provider
The Calender Provider API can be used by applications and sync adapters.Here are the rules for inserting a new event:You must include CALENDAR_ID and DTSTART.You must include an EVENT_TIMEZO
2015-11-28 22:00:12 629
翻译 android-Creating a Content Provider(2)
For content URIs that point to a row or rows of table data, getType() should return a MIME type in Android's vendor-specific MIME format:Type part: vndSubtype part:If the URI pattern is for
2015-11-28 19:04:30 539
原创 android-Creating a Content Provider
Content Provider是数据存储的一种组件,方式;运行在UI线程中You need to build a content provider if you want to provide one or more of the following features:You want to offer complex data or files to other applicati
2015-11-28 18:20:42 481
转载 Android网络编程之使用HttpClient批量上传文件
Apach HttpClient的使用:android端:1.通过addBinaryBody方法直接可以添加File、InputStream、byte[]类型的数据。2.通过addPart方法只能添加ContentBody类型的数据,在org.apache.http.entity.mime.content包中已经提供了File、InputStream以及String对应的Conte
2015-11-28 15:11:20 1024
翻译 Android-Content Provider Basics
This topic describes the basics of the following:How content providers work.The API you use retrieve data from a content provider.The API you use to insert, update, or delete data in a content pro
2015-11-27 23:46:21 568
转载 android-Content providers
Content providers are the standard interface that connects data in one process with code running in another process.得到ContentResolver实体去访问系统数据或者App数据。Content Provider BasicsHow to access d
2015-11-27 23:38:48 1658
转载 android-App Widget Host
bindAppWidgetIdIfAllowed(), allocateAppWidgetId(). AppWidgetHostView updateAppWidgetOptions() and updateAppWidgetSize()Regardless of the version of Android you are targeting, all hosts have the
2015-11-27 23:05:12 817
转载 用心做点事,写点代码的哲学(编程的基本功)
技术类开源项目和一般的业务型项目不同,更需要对代码和质量的控制,我们总结出以下几点:> 用心写代码,用代码讲故事。代码是项目的唯一核心和产出,任何一行的代码都需要用心思考优雅性,可读性,合理性。> 代码整洁干净到极致。简单点说就是重度代码洁癖患者。只有代码漂亮整洁,其他开源爱好者才愿意阅读代码,进而找出项目中的bug和贡献高质量代码。> 极简代码, 高度复用,无重复代码
2015-11-27 11:24:57 1181
原创 Android-App Widgets
Widgets:App Widget provider and An application component.AppWidgetHost and Widget Design. eg: android:resource="@xml/example_appwidget_info" />
2015-11-27 08:57:59 509
原创 Android-Overview Screen
学会使用Flag对Activity设置,然后可以更好的管理Activity 栈。With the Android 5.0 release (API level 21), multiple instances of the same activity containing different documents may appear as tasks in the overview scre
2015-11-26 23:32:41 499
原创 Android-Tasks and Back Stack
界面焦点和用户焦点When the current activity starts another, the new activity is pushed on the top of the stack and takes focus. Activity栈:"last in, first out"When all activities are removed from the st
2015-11-26 22:26:49 463
原创 Android-loader
Loaders have these characteristics:They are available to every Activity and Fragment.They provide asynchronous loading of data.They monitor the source of their data and deliver new results when th
2015-11-26 22:07:22 626
原创 Fragment、FragmentActivity、Fragment生命周期及Fragment组件穿透
--单Activity+多Fragment 或者 多模块Activity+多Fragment的架构,Fragment管理框架单Activity+多Fragment 或者 多模块Activity+多Fragment的架构,重度使用Fragment或者想使用单Activity+多Fragment的组件架构- https://github.com/YoKeyword/Fragmentation...
2015-11-26 21:11:22 1311
原创 android- activity,Application,activity渲染xml文件
Intent的flag 标志:intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);-- Android四大启动模式:standard、singleTop、singleTask、singleInstance 及应用场景:- Android 生命周期监听- https://github.com/LillteZheng/ZlifeCycleActivit...
2015-11-25 11:03:57 1016
原创 android compatibility and System Permissions
安卓的兼容性有:设备兼容性和App兼容性If necessary, however, you can restrict your app's availability to devices through Google Play Store based on the following device characteristics:Device featuresPlatform
2015-11-24 22:52:22 796
翻译 android-Intents and Intent Filters and Common Intents
You can deliver a broadcast to other apps by passing an Intent to sendBroadcast(), sendOrderedBroadcast(), or sendStickyBroadcast().Without a component name, the intent is implicit and the syste
2015-11-24 11:14:08 548
转载 Android-Creating a Bound Service
When creating a service that provides binding, you must provide an IBinder that provides the programming interface that clients can use to interact with the service. There are three ways you can def
2015-11-24 10:16:55 550
原创 Android AIDL
android IPC: AIDL thread is not blocked.Using AIDL is necessary only if you allow clients from different applications to access your service for IPC and want to handle multithreading in your service
2015-11-23 18:46:34 611
原创 Android Service与IntentService,下载/断点续传
Android的Service组件可以处理的场景有:网络请求(心跳、长连接),文件的I/O操作,ContentProvider数据的CRUD,及所有可运行在后台的动作等。Service:适合并发请求,代码较多,较复杂,更灵活。 Service的各个生命周期函数是运行在主线程,因此它本身并不是一个异步处理技术。为了能够在Service中实现在子线程中处理耗时任务,Android引入了一个S...
2015-11-23 11:13:37 875
翻译 android process and thread
Processes:By default, all components of the same application run in the same process and most applications should not change this. However, if you find that you need to control which process a cer
2015-11-23 09:54:15 694
HttpClient _legacy.jar
2021-02-24
NetEase QA Emmagee
2018-05-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人