<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_p...
分类:
移动开发 时间:
2015-01-16 19:10:00
阅读次数:
147
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-16 16:43:49
阅读次数:
138
(1)
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="ma...
分类:
移动开发 时间:
2015-01-16 14:43:14
阅读次数:
182
(1)该文件下载主要演示异步任务下载图片
(2)布局代码如下:一个ImageView用于存放下载的图片,Button用于开始异步任务下载
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
...
分类:
移动开发 时间:
2015-01-16 10:05:20
阅读次数:
211
(1)布局文件layout
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_...
分类:
移动开发 时间:
2015-01-15 22:12:06
阅读次数:
204
一、概念。 ListView是以垂直列表的形式显示所有列表项。二、使用 假设数据库中有50个数据信息(persons,包括name、number、money),通过ListView显示出来。 1、向数据库中50个person信息。具体添加方式可参考数据库章节介绍,采用数据库例子中的dao2的a...
分类:
移动开发 时间:
2015-01-14 21:18:07
阅读次数:
313
Android系统本身提供了大量的ContentProvider,例如联系人信息、系统的多媒体信息等,我们开发的应用程序主要是通过ContentResolver来调用系统的ContentProvider提供的query()、insert()、update()和delete()方法来获取Android内部的数据。
一、如何使用ContentResolver操作系统ContentProvider暴露...
分类:
移动开发 时间:
2015-01-14 20:04:10
阅读次数:
228
一、使用ContentProvider管理多媒体内容
Android提供了Camera程序来支持拍照、拍摄视频,用户拍摄的相片、视频都将存放在固定的位置。Android同样为这些多媒体内容提供了ContentProvider,所以我们可以通过使用ContentProvider实现其他应用直接访问Camera所拍摄的照片、视频等。
1.多媒体ContentProvider的Uri
(1...
分类:
移动开发 时间:
2015-01-14 20:02:27
阅读次数:
236
(1)布局文件
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height...
分类:
移动开发 时间:
2015-01-14 15:33:34
阅读次数:
316
(1)布局文件:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_heigh...
分类:
移动开发 时间:
2015-01-14 12:46:33
阅读次数:
219