
Android
DYZA
人无信而不立,事乏诚则难行
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
32-listview分批加载
/datapageload/res/layout/main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:原创 2014-08-20 22:17:12 · 425 阅读 · 0 评论 -
18-音乐视频播放
1、音乐播放package cn.itcast.mp3;import java.io.File;import android.app.Activity;import android.content.Context;import android.media.MediaPlayer;import android.media.MediaPlayer.OnPreparedListener原创 2014-08-08 22:40:48 · 383 阅读 · 0 评论 -
23-编码实现软件界面与通知
构建新的xmpackage cn.itcast.codeui;import android.app.Activity;import android.content.Context;import android.os.Bundle;import android.view.LayoutInflater;import android.view.View;import android.v原创 2014-08-10 14:22:57 · 517 阅读 · 0 评论 -
33-Android标签页
/tabhost/res/layout/main.xml原创 2014-08-21 20:08:51 · 551 阅读 · 0 评论 -
22-软件国际化、屏幕适配、样式与主题
软件国际化layout.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ver原创 2014-08-10 13:56:32 · 499 阅读 · 0 评论 -
21-手势识别
推荐用自带范例中GestureBuilder 生成手势文件,放入res原创 2014-08-10 13:00:50 · 911 阅读 · 0 评论 -
19-拍照与视频刻录
尺寸原创 2014-08-10 12:52:13 · 384 阅读 · 0 评论 -
20-网页设计Android界面
MainActivitypackage cn.itcast.html;import java.util.List;import org.json.JSONArray;import org.json.JSONException;import org.json.JSONObject;import cn.itcast.domain.Contact;import cn.itcast.原创 2014-08-11 23:50:56 · 407 阅读 · 0 评论 -
24-tween动画、frame动画与动画运用
tween动画通过对 View 的内容进行一系列的图形变换(包括平移、缩放、旋转、改变透明度)来实现动画效果。动画效果的定义可以采用XML来做也可以采用编码来做。Tween动画有4种类型:原创 2014-08-13 23:47:25 · 579 阅读 · 0 评论 -
25-方向传感器实现指南针
传感器:手机常用传感器有方向传感器、原创 2014-08-14 22:22:18 · 1035 阅读 · 1 评论 -
Android分辨率与尺寸
nexus:原创 2014-08-28 21:44:32 · 503 阅读 · 0 评论 -
26-拖拉功能和多点触摸
拖拉功能<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >原创 2014-08-15 22:03:47 · 479 阅读 · 0 评论 -
27-图形
API位置 Dev Guide/Framework Topics原创 2014-08-15 23:29:39 · 455 阅读 · 0 评论 -
03 - android布局
http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical" > android:la原创 2014-06-10 22:51:00 · 413 阅读 · 0 评论 -
28-meta-data widgets
Framework Topics/The AndroidManifest.xml File原创 2014-08-17 22:51:36 · 479 阅读 · 0 评论 -
29-自定义窗口和标题
screen_custom_title.xml 文件内容影响标题原创 2014-08-17 23:15:51 · 445 阅读 · 0 评论 -
31-异步获取数据
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <ListV原创 2014-08-18 23:40:17 · 962 阅读 · 0 评论 -
14-显示Intent,隐式Intent
1.显式intent1.显式intent转载 2014-07-30 22:22:41 · 393 阅读 · 0 评论 -
04 - Android单元测试
manifest中:。。。 android:label="test my app" android:name="android.test.InstrumentationTestRunner" android:targetPackage="cn.itcast.app" />原创 2014-06-12 20:01:13 · 404 阅读 · 0 评论 -
06 - 数据操作二:sqlite数据库与listview显示
直接附上代码public class DBhelper extends SQLiteOpenHelper { public DBhelper(Context context ) { super(context, "yzadb", null, 3); //null 默认的系统游标工厂 版本号1不建议0 创建数据库 } //数据库第一次被创建的时候调用 @Override原创 2014-06-24 21:08:18 · 841 阅读 · 0 评论 -
08 - Android访问网络图片和网页源码
1、读取网络图片原创 2014-06-27 23:43:58 · 453 阅读 · 0 评论 -
02 - Android入门程序 电话与短信
电话程序:MainActivity.java原创 2014-06-10 21:43:23 · 452 阅读 · 0 评论 -
01 - Android开发环境搭建
原创 2014-06-10 20:33:57 · 510 阅读 · 0 评论 -
05 - 数据操作一:文件读写与XML解析、SharedPreferences
private final class SaveButtonClickListener implements View.OnClickListener { @Override public void onClick(View v) { EditText fileName = (EditText) findViewById(R.id.fileName); EditText fi原创 2014-06-14 00:29:13 · 852 阅读 · 1 评论 -
09 - get请求、post请求、httpclient、文件上传
activity类public class NewsmanagerActivity extends Activity { private EditText titleText; private EditText timelengthText; private EditText filenameText; @Override public void onCreate(Bundle s原创 2014-07-03 22:15:38 · 636 阅读 · 0 评论 -
15-activity生命周期 组件1 activity
http://kb.cnblogs.com/page/70125/Activity其实是继承了ApplicationContext这个类,我们可以重写以下方法,如下代码:public class Activity extends ApplicationContext { protected void onCreate(Bundle savedInstanceState); prote转载 2014-07-30 22:52:50 · 389 阅读 · 0 评论 -
07 - 数据操作三:ContentProvider内容提供者以及通讯录操作 组件2 ContentProvider
1、定义内容提供者ContentProvider原创 2014-06-26 23:53:13 · 831 阅读 · 0 评论 -
10 - 多线程上传与断点上传
暂时空转载 2014-07-23 23:49:36 · 683 阅读 · 0 评论 -
17-使用服务监听通话 组件4 service
public class PhoneService extends Service { @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { super.onCre原创 2014-08-03 01:30:34 · 524 阅读 · 0 评论 -
12- 多个Activity与参数传递
主界面package cn.yza.other;import android.app.Activity;import android.content.ComponentName;import android.content.Intent;import android.database.ContentObserver;import android.database.Cursor;i原创 2014-07-28 22:30:28 · 428 阅读 · 0 评论 -
11- Android中Socket大文件断点上传
环境转载 2014-07-24 00:10:53 · 548 阅读 · 0 评论 -
13- Android中Activity启动模式详解
在Android中每个界面都是一个Activity,切换界面操作其实是多个不同Activity之间的实例化操作。在Android中Activity的启动模式决定了Activity的启动运行方式。 Android总Activity的启动模式分为四种:转载 2014-07-30 14:33:13 · 416 阅读 · 0 评论 -
30-popwindow
/PopupWindow/res/layout/popwindow.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" an原创 2014-08-18 22:43:37 · 645 阅读 · 0 评论