08 2014 档案

摘要:一、读取联系人(1).从raw_contact表读 contact_id(2).从data表中读取data1(3).从mimetypes读取mimetype1.AndroidManifest.xml 添加content权限 ... 阅读全文
posted @ 2014-08-31 23:12 大空白纸 阅读(369) 评论(0) 推荐(0) 编辑
摘要:package com.example.observertest; import android.content.ContentResolver; import android.database.ContentObserver; import android.net.Uri; import andr 阅读全文
posted @ 2014-08-31 20:36 大空白纸 阅读(331) 评论(0) 推荐(0) 编辑
摘要:content provider内容提供者:让其他app可以访问私有数据库(文件) 1.AndroidManifest.xml 配置provider <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://sche 阅读全文
posted @ 2014-08-31 09:57 大空白纸 阅读(289) 评论(0) 推荐(0) 编辑
摘要:1.DbOpenHelperpackage dbOpenHelper;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database.sqlite.SQLiteO... 阅读全文
posted @ 2014-08-25 17:29 大空白纸 阅读(201) 评论(0) 推荐(0) 编辑
摘要:1.DbOpenHelperpackage com.example.dbtest.dbHelper;import android.content.Context;import android.database.sqlite.SQLiteDatabase;import android.database... 阅读全文
posted @ 2014-08-24 23:10 大空白纸 阅读(267) 评论(0) 推荐(0) 编辑
摘要:/>package com.example.generatexml;import java.io.File;import java.io.FileOutputStream;import java.util.ArrayList;im... 阅读全文
posted @ 2014-08-22 21:52 大空白纸 阅读(234) 评论(0) 推荐(0) 编辑
摘要:1.布局 2.MainActivity.javapackage com.example.logindemo;import java.util.Map;import android.os.Bundle;import and... 阅读全文
posted @ 2014-08-21 22:46 大空白纸 阅读(257) 评论(0) 推荐(0) 编辑
摘要:相信不少同学和我一样遇到这个问题,有时候搞的还要重启电脑,那究竟是什么原因导致的呢,很明显,你的端口被占用了,那下面给出终极解决方案一、首先描述症状,如下图二、出现问题了,首先确定你的sdk目录是不是真的在Console输出的那个位置,如果是的话。接下来现在就要看看到底是谁占用了端口。打开命令编辑器... 阅读全文
posted @ 2014-08-21 21:06 大空白纸 阅读(186) 评论(0) 推荐(0) 编辑
摘要:@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.la... 阅读全文
posted @ 2014-08-19 22:52 大空白纸 阅读(822) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace WebApplication1.MyHtmlHelper{ publi... 阅读全文
posted @ 2014-08-18 17:17 大空白纸 阅读(179) 评论(0) 推荐(0) 编辑
摘要:@{ ViewBag.Title = "Index";}@{ int pageIndex = (int)ViewBag.CurrentPage; int pageCount = (int)ViewBag.Pages;}Index cateId ... 阅读全文
posted @ 2014-08-18 17:08 大空白纸 阅读(285) 评论(0) 推荐(0) 编辑
摘要:AspNetPager分页控件解决了分页中的很多问题,直接采用该控件进行分页处理,会将繁琐的分页工作变得简单化,效果如下:下面是我如何使用AspNetPager控件进行分页处理的详细代码:1.首先到www.webdiyer.com下载最新的AspNetPager.dll,直接在vs2005中添加引用... 阅读全文
posted @ 2014-08-08 23:46 大空白纸 阅读(241) 评论(0) 推荐(0) 编辑
摘要:1、开始数据结构如下:2、转为如下图:使用如下SQL语句:---横向转丛向select name '姓名', max(case when course='语文' then score end) as '语文', max(case when course='数学' then sco... 阅读全文
posted @ 2014-08-08 11:05 大空白纸 阅读(1593) 评论(0) 推荐(0) 编辑
摘要:js中apply方法的使用1、对象的继承,一般的做法是复制:Object.extendprototype.js的实现方式是:Object.extend = function(destination, source) { for (property in source) { destination[p... 阅读全文
posted @ 2014-08-03 10:01 大空白纸 阅读(212) 评论(0) 推荐(0) 编辑
摘要:call 方法 请参阅 应用于:Function 对象 要求 版本 5.5 调用一个对象的一个方法,以另一个对象替换当前对象。 call([thisObj[,arg1[, arg2[, [,.argN]]]]]) 参数 thisObj 可选项。将被用作当前对象的对象。 arg1... 阅读全文
posted @ 2014-08-03 09:15 大空白纸 阅读(309) 评论(0) 推荐(0) 编辑
摘要://测试对象集合序列化 public void jsonTest() { List list = new List(); for (int i = 1; i < 5;i++) { moduleEntity entity = new moduleE... 阅读全文
posted @ 2014-08-01 16:25 大空白纸 阅读(657) 评论(0) 推荐(0) 编辑