摘要:
代码下载: 敏捷学院技术资源库1.引用view sourceprint?1// TODO: Use Enterprise Library Data Block 23using Microsoft.Practices.EnterpriseLibrary.Data; 45using Microsoft.Practices.EnterpriseLibrary.Common.Configuration;2.创建访问器view sourceprint?1// TODO: Create private fields for Data accessors 23private DataAccessor<
阅读全文
posted @ 2011-07-08 13:42
敏捷学院
阅读(449)
推荐(0)
摘要:
使用配置工具加密数据库的连接信息代码下载:http://dev.mjxy.cn/a-entlib-Encrypted-connection-information.aspx1. App.Config01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practic
阅读全文
posted @ 2011-07-08 13:40
敏捷学院
阅读(283)
推荐(0)
摘要:
演示代码下载: http://dev.mjxy.cn/a-entlib-Access-the-database-using-stored-procedures.aspx使用存储过程访问数据库1.配置文件view sourceprint?01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings
阅读全文
posted @ 2011-07-08 13:35
敏捷学院
阅读(454)
推荐(0)
摘要:
本演练直接使用SQL语句来访问数据库1.配置文件01<configuration> 02<configSections> 03<section name="dataConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data, Version=5.0.414.0, Culture=neutral, PublicKeyTok
阅读全文
posted @ 2011-07-08 10:35
敏捷学院
阅读(486)
推荐(0)
摘要:
http://dev.mjxy.cn/
阅读全文
posted @ 2011-07-08 10:32
敏捷学院
阅读(135)
推荐(0)
摘要:
使用演练代码可以了解以下内容: ASP.NET MVC2 EntityFramework Castle 邮件验证 图片上传 路由监视 单元测试数据翻页 分层架构 ....... 等 ^_^ 其实都是一些开发常用居家过日子基础功能啊。阅读代码是掌握新技术的就快捷径。由于代码写的时间比较早了,EntityFramework已经经过数次改版,有些概念可能已经发生变化。也许程序执行的时候会发生爆炸!请带好安全帽!功能介绍: 实现了用户根据分类发布房屋信息,系统根据用户的邮箱来判断是否是已经存在的用户。每条信息发送后会给发信人的邮箱发送验证代码。验证过的信息不会显示问号(表示信息未经过验证)。主界面:列
阅读全文
posted @ 2011-03-25 20:19
敏捷学院
阅读(687)
推荐(0)
摘要:
在Android模拟SD卡环境 本演练以 2. 搭建Android开发环境 为前提 (需要预先将你放置android sdk所在目录下的tools设置到环境变量path中) 1. 创建 sd文件 命令行运行: mksdcard -l sdlabel 512M mysd.img 2. 加载sd文件 eclipse IDE 运行 run configurations 在Target的 Additonal Emulator Command Line Options 里填写具体的sd路径,注意路径分割符号,文件夹名称不要有空格。 -sdcard E:/Z/mySDCards/mysd.img 使用命令
阅读全文
posted @ 2011-03-25 17:29
敏捷学院
阅读(285)
推荐(0)
摘要:
<<BroadcastReceiverDemo.zip>> Intnet & Broadcast 示例演示 新建项目BroadcastReceiverDemo项目,编辑AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.tutorial"
阅读全文
posted @ 2011-03-25 17:28
敏捷学院
阅读(289)
推荐(0)
摘要:
<<SQLiteDemo2.zip>> SQLite Demo 2 本演练演示一个日记本程序 新建项目SQLiteDemo2, 编辑res/layout/main.xml 文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk /res/android" android:layout_width="wrap_content" a
阅读全文
posted @ 2011-03-25 17:27
敏捷学院
阅读(409)
推荐(0)
摘要:
<<SQLiteDemo1.zip>> SQLite Demo1 演示 演示操作SQLite数据库 新建项目SQLiteDemo1,编辑res/layout/main.xml 布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" an
阅读全文
posted @ 2011-03-25 17:25
敏捷学院
阅读(544)
推荐(0)
摘要:
<<PrefsDemo_Dialog.zip>> Dialog(使用对话框的Preferences) 新建项目 PrefsDemo_Dialog 编辑res/layout/main.xml文件 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent&qu
阅读全文
posted @ 2011-03-25 17:24
敏捷学院
阅读(700)
推荐(0)
摘要:
<<PrefsDemo_Structured.zip>> Structured(分组的Prefereces) 新建项目 ProfsDemo_Structured. 编辑res/layout/main.xml布局文件 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fil
阅读全文
posted @ 2011-03-25 17:21
敏捷学院
阅读(263)
推荐(0)
摘要:
<<PrefsDemo_Simple.zip>> 使用Xml布局文件描述 Preferences 新建项目 Prefs_Simple 编辑 res/layout/main.xml 配置文件 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
阅读全文
posted @ 2011-03-25 17:20
敏捷学院
阅读(558)
推荐(0)
摘要:
Source codeSharePreferences Demo2 新建项目PreferDemo, 编辑res/layout/main.xml布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill
阅读全文
posted @ 2011-03-25 17:18
敏捷学院
阅读(199)
推荐(0)
摘要:
<<SharedPreferencesDemo.zip>> SharedPreferences 存储方式 SharedPreferences 用来存储一些简单的配置信息。 新建项目SharedPreferencesDemo,编辑res/layout/main.xml文件 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" a
阅读全文
posted @ 2011-03-25 17:17
敏捷学院
阅读(365)
推荐(0)
摘要:
<<ToastNotificationDemo.zip>> Notificaton和Toast演示 新建项目 ToastNotificationDemo,修改res/layout/main.xml布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertica
阅读全文
posted @ 2011-03-25 17:10
敏捷学院
阅读(411)
推荐(0)
摘要:
<<DialogDemo.zip>> Dialog 演示 新建项目DialogDemo. 编辑res/layout/main.xml 布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width=&q
阅读全文
posted @ 2011-03-25 17:07
敏捷学院
阅读(400)
推荐(0)
摘要:
<<ListViewDemo.zip>> ListView演示 新建项目ListViewDemo,编辑res/layout/main.xml 布局文件如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_wi
阅读全文
posted @ 2011-03-25 17:05
敏捷学院
阅读(704)
推荐(1)
摘要:
Download Source Code <<ActivityIntentDemo.zip>> Activity 和 Intent 演示 使用startActivity()方法在Activity之间切换 使用Intent.putExtra()、Intent.putExtras()方法保存需要传递的数据 使用startActivityForResult()方法在Activity之间传递参数 重载onActivityResult()方法处理回传数据 使用Intent.getExtra()、Intent.getExtras()方法获取传递的数据 新建项目ActivityInt
阅读全文
posted @ 2011-03-25 17:02
敏捷学院
阅读(419)
推荐(0)
摘要:
Download Source Code Menu 演示 重载onCreateOptionsMenuMenu创建菜单 重写 onOptionsItemSelected()方法,处理菜单项的选中 新建项目MenuDemo,修改res/layout/main.xml布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orie
阅读全文
posted @ 2011-03-25 16:58
敏捷学院
阅读(343)
推荐(0)
摘要:
WidgetDemo主界面 创建项目WidgetDemo 编辑main.xml <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" > <LinearLayo
阅读全文
posted @ 2011-03-25 16:49
敏捷学院
阅读(570)
推荐(0)
摘要:
UI布局 如何使用FrameLayout布局 如何单独使用LinearLayout布局 如何单独使用RelativeLayout布局 结合LinearLayout和RelativeLayout布局 如何使用TableLayout布局 FrameLayout 创建项目 Layouts,用于布局的演示。 打开res/layout/main.xml 如下编辑 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.andro
阅读全文
posted @ 2011-03-25 16:39
敏捷学院
阅读(855)
推荐(0)
摘要:
QuickStart 代码下载!
阅读全文
posted @ 2011-03-25 16:36
敏捷学院
阅读(185)
推荐(0)
摘要:
Google Map View 本演练演示Google Maps library, 你可以创建自己的google地图。 注意本演练需要使用扩展了Google Maps library的 Android SDK 。 Part1 Create a map Activity 新建项目 HelloGoogleMaps。 Maps library 不是标准的Android library. 必须在 Android Manifest 中声明。打开AndroidManifest.xml 为<application>节增加下面的配置节。 <uses-library android:name=
阅读全文
posted @ 2011-03-25 16:30
敏捷学院
阅读(337)
推荐(0)
摘要:
Gallery Gallery是一个水平滚动项的布局控件。 本演练将创建一个相册走廊,同时显示选中的图片信息。 新建项目HelloGallery。 将使用的图片放入res/drawable目录。 3. 打开res/layout/main.xml文件编辑如下。 <?xml version="1.0" encoding="utf-8"?> <FrameLayout android:id="@+id/FrameLayout01" android:layout_width="fill_parent" an
阅读全文
posted @ 2011-03-25 16:29
敏捷学院
阅读(294)
推荐(0)
摘要:
Web View 本演练创建一个可以访问web页的应用程序,使用WebView控件。 新建项目 HelloWebView 2. 打开res/layout/main.xml替换成以下内容 <?xml version="1.0" encoding="utf-8"?> <WebView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/webview" android:layout_width=&quo
阅读全文
posted @ 2011-03-25 16:29
敏捷学院
阅读(202)
推荐(0)
摘要:
Auto Complete 本演练创建一个自动完成控件,使用AutocompleteTextView控件。 新建项目 HelloAutoComplete。 在res/layout/目录下创建lsit_item.xml,按如下代码编辑。 <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_par
阅读全文
posted @ 2011-03-25 16:28
敏捷学院
阅读(219)
推荐(0)
摘要:
Spinner Spinner是一个下拉选择想的列表。 本演练将创建一个简单的spinner 用于显示一个植物列表,然后显示选中的项。 新建项目HelloSpinner 2. 打开 res/layout/main.xml 使用下面的开发更改xml文件。 <Spinner android:id="@+id/spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" android:prompt="@string/plan
阅读全文
posted @ 2011-03-25 16:26
敏捷学院
阅读(219)
推荐(0)
摘要:
Form Stuff 本演练演示使用多样的控件创建表单,如Image button, text files, checkboxes and radio buttons. 新建项目 HelloFormStuff 打开res/layout/main.xml文件,修改代码如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orie
阅读全文
posted @ 2011-03-25 16:25
敏捷学院
阅读(270)
推荐(0)
摘要:
Date Picker 日期选择控件,允许你选择月,日,年。 在本教程中,将创建DatePickerDialog 对话框。TextView将更新显示选中的日期。 新建项目 HelloDatePicker。 打开res/layout/main.xml文件修改代码如下: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orienta
阅读全文
posted @ 2011-03-25 16:24
敏捷学院
阅读(311)
推荐(0)
摘要:
Time Picker 演练时间选择控件。 在本教程中当用户单击按钮后我们将创建TimePickerDialog。从对话框选择的时间将被更新到TextView中。 新建项目HelloTimePicker。 打开res/layout/main.xml使用下面的代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientat
阅读全文
posted @ 2011-03-25 16:24
敏捷学院
阅读(682)
推荐(0)
摘要:
TabLayout 选项卡布局 创建一个Tab用户界面,你需要使用一个TabHost和TabWidget。这个TabHost必须在根节点布置,包含了TabWidget显示制表符和FrameLayout标签显示的内容。 新建项目 HelloTabWidget。 首先在项目中创建3个Activity类:ArtistsActivity,AlbumsActivity和SongsActivity,使用TextView显示一条简单的信息。 package com.helloview.layout; import android.app.Activity; import android.os.Bundle;
阅读全文
posted @ 2011-03-25 16:19
敏捷学院
阅读(259)
推荐(0)
摘要:
TabLayout 选项卡布局 创建一个Tab用户界面,你需要使用一个TabHost和TabWidget。这个TabHost必须在根节点布置,包含了TabWidget显示制表符和FrameLayout标签显示的内容。 新建项目 HelloTabWidget。 首先在项目中创建3个Activity类:ArtistsActivity,AlbumsActivity和SongsActivity,使用TextView显示一条简单的信息。 package com.helloview.layout; import android.app.Activity; import android.os.Bundle;
阅读全文
posted @ 2011-03-25 16:17
敏捷学院
阅读(490)
推荐(0)
摘要:
GridView Layhout GridView是一个ViewGroup子试图。用于二维、滚动网格。GridView自动添加了一个ListAdapter布局 新建项目HelloGridView 将一些图片放到res/drawable/目录 打开res/layout/main.xml文件,按一下修改。 <?xml version="1.0" encoding="utf-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" a
阅读全文
posted @ 2011-03-25 16:16
敏捷学院
阅读(293)
推荐(0)
摘要:
表格布局 Table Layout TableLayout是一个ViewGroup子视图显示元素的行和列 创建新项目HelloTableLayout。 打开 res/layout/main.xml文件如下编辑 <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"
阅读全文
posted @ 2011-03-25 16:15
敏捷学院
阅读(244)
推荐(0)