- 博客(12)
- 资源 (59)
- 问答 (1)
- 收藏
- 关注
原创 Android--操作联系人的ContentProvider
1.main.xml代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="verti
2015-02-13 15:37:21 996
原创 Android--数据库操作辅助类:SQLiteOpenHelper
1.MyDatabaseHelper.java代码如下:package org.lxh.demo;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteDatabase.CursorFactory;import
2015-02-12 20:01:01 1393
原创 FileOutputStream类实例
1.继承结构:java.lang.Object ↳java.io.OutputStream ↳java.io.FileOutputStream.java程序如下:package org.lxh.demo;import java.io.FileNotFoundException;i
2015-02-12 15:54:03 1435 1
原创 LayoutInflater类使用实例
用于构建复杂的Dialog显示界面main.xml代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:o
2015-02-08 11:07:17 1132
原创 ScrollView动态添加组件
main.xml代码如下:<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/myscroll
2015-02-07 10:50:20 3059 1
原创 Android--切换屏幕方向
main.xml代码:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical"
2015-02-06 11:09:11 1436 1
原创 Java--ByteArrayInputStream和ByteArrayOutStream
代码如下:import java.io.ByteArrayInputStream;import java.io.ByteArrayOutputStream;import java.io.IOException;public class ByteArrayDemo01 { public static void main(String args[]){ String str="
2015-02-04 14:31:24 2128
原创 Java 线程启动(实现Runnable接口)
程序如下:class ThreadDemo1 implements Runnable{//实现Runnable接口 private String name; private int time; public ThreadDemo1(String name,int time){ this.name=name; this.time=time; } public void
2015-02-04 14:13:49 1303
原创 Android--网络通信(读取网络图片的示例)
.xml代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" >
2015-02-04 13:08:51 1147
原创 Java--Timer类研究
Timer类是一种线程设施,可以用来实现在某一个时间或者某一段时间后安排某一个任务执行一次或定期重复执行。该功能要与TimerTask 配合使用。TimerTask类用来实现由Timer安排的一次或重复执行的某一个任务。下面通过一个例子演示Timer和TimerTask类的使用。程序的主要功能是定时打印系统的当前时间。1.建立TimerTask的子类:import java.u
2015-02-03 16:26:53 1081 2
原创 Android--声音服务(AudioManager)
main.xml代码如下:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertica
2015-02-03 11:44:17 1042
原创 JAVA--Runtime类研究
RunTime类代表Java程序的运行时环境,每一个Java程序都有一个与之对应的Runtime实例,应用程序通过该对象与运行时环境相连,应用程序不能创建自己的Runtime实例,但可以通过getRuntime()方法获得与之关联的Runtime对象。1.Runtime代表Java程序的运行时环境,可以访问JVM的相关信息,如处理器数量,内存信息。例如如下代码:public class
2015-02-02 18:28:01 1206
android上拉加载,下拉刷新listview
2015-09-05
ripple-effect android eclipse 为控件增加涟漪效果
2015-08-23
android-短信验证码截取自动填入源码
2015-08-16
android 截取短信验证码自动输入Demo
2015-08-16
Android二维码扫描识别-二维码生成实例demo
2015-08-14
Android源码--基于Baas上拉加载、下拉刷新
2015-07-23
Android 百战经典-Android补间动画(Tween)大观园
2016-03-20
android 仿iOS弹出框效果demo
2015-10-29
android 邮箱验证EditText DEMO源码
2015-10-29
Android引导页Demo(第一次进入应用时加载)
2015-10-10
Android 圆形ImageView 源码Demo
2015-09-21
ListView 子控件单击事件混乱
2015-06-13
TA创建的收藏夹 TA关注的收藏夹
TA关注的人