<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>掌中天际</title>
	<atom:link href="http://palmsky.net/feed" rel="self" type="application/rss+xml" />
	<link>http://palmsky.net</link>
	<description>专注于手持设备的发展</description>
	<lastBuildDate>Wed, 22 Feb 2012 04:55:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>千呼万唤 HTML 5 (2) &#8211; 区块元素</title>
		<link>http://palmsky.net/html5/1400</link>
		<comments>http://palmsky.net/html5/1400#comments</comments>
		<pubDate>Wed, 22 Feb 2012 04:55:39 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1400</guid>
		<description><![CDATA[介绍 HTML 5: 区块元素 区块元素 &#8211; body, article, section, header, footer, h1, h2, h3, h4, h5, h6, hgroup, aside, nav, address 示例 1、body - 用于定义文档的主体 element/section/body.html &#60;!doctype html&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;body&#60;/title&#62; &#60;/head&#62; &#60;!-- body - 用于定义文档的主体。其相关事件处理属性如下 --&#62; &#60;body&#62; &#60;script type="text/javascript" defer&#62; var body = document.body; body.onafterprint = function () { alert("onafterprint"); }; body.onbeforeprint = function () { [...]]]></description>
		<wfw:commentRss>http://palmsky.net/html5/1400/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>千呼万唤 HTML 5 (1) &#8211; 根元素, 元数据元素, 脚本元素</title>
		<link>http://palmsky.net/html5/1398</link>
		<comments>http://palmsky.net/html5/1398#comments</comments>
		<pubDate>Wed, 22 Feb 2012 04:54:46 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1398</guid>
		<description><![CDATA[介绍 HTML 5: 根元素, 元数据元素, 脚本元素 根元素 &#8211; doctype, html 元数据元素 &#8211; head, title, base, link, meta, style 脚本元素 &#8211; script, noscript 示例 1、doctype - 文档类型 element/root/doctype.html &#60;!-- &#60;!doctype html&#62; - 声明文档类型为 HTML5 文档 --&#62; &#60;!doctype html&#62; &#60;html&#62; &#60;head&#62; &#60;title&#62;doctype&#60;/title&#62; &#60;/head&#62; &#60;body&#62; &#60;/body&#62; &#60;/html&#62; 复制代码 &#160; 2、html - 文档的根元素 element/root/html.html &#60;!doctype html&#62; &#60;!-- html - 文档的根元素，如需指定语言，则设置“lang”属性即可 --&#62; [...]]]></description>
		<wfw:commentRss>http://palmsky.net/html5/1398/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(10) &#8211; HTTP 通信, XML 解析, 通过 Hander 实现异步消息处理</title>
		<link>http://palmsky.net/android/1395</link>
		<comments>http://palmsky.net/android/1395#comments</comments>
		<pubDate>Tue, 21 Feb 2012 08:27:11 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1395</guid>
		<description><![CDATA[在 Android 中与服务端做 HTTP 通信，解析 XML，通过 Handler 实现异步消息处理 HTTP 通信 - 与服务端做 HTTP 通信，分别以 GET 方式和 POST 方式做演示 XML 解析 - 可以用两种方式解析 XML，分别是 DOM 方式和 SAX 方式 异步消息处理 - 通过 Handler 实现异步消息处理，以一个自定义的异步下载类来说明 Handler 的用法 1、HTTP 通信和 XML 解析的 Demo MySAXHandler.java 代码 package com.webabcd.communication; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; // 继承 DefaultHandler 以实现指定 XML 的 SAX 解析器 // DOM - W3C 标准，需要把 xml 数据全部加载完成后才能对其做解析，可对树做任意遍历 // SAX - 流式解析，通过事件模型解析 xml，只能顺序解析 public class MySAXHandler extends DefaultHandler { private boolean mIsTitleTag = false; private boolean mIsSalaryTag = false; private boolean mIsBirthTag = false; private String mResult = ”"; // 打开 xml 文档的回调函数 @Override public void startDocument() throws SAXException { // TODO Auto-generated method stub super.startDocument(); } // 关闭 xml 文档的回调函数 @Override public void endDocument() throws SAXException { [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1395/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(9) &#8211; 数据库支持(SQLite), 内容提供器(ContentProvider)</title>
		<link>http://palmsky.net/android/1392</link>
		<comments>http://palmsky.net/android/1392#comments</comments>
		<pubDate>Tue, 21 Feb 2012 08:25:58 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1392</guid>
		<description><![CDATA[在 Android 中使用 SQLite, ContentProvider 数据库支持(SQLite) - Android 开发平台提供了操作 SQLite 数据库的相关 API 内容提供器(ContentProvider) - 当数据需要在应用程序之间共享时，可以在某程序中使用 ContentProvider 定义 URI， 以使其它应用程序可以通过此 URI 访问指定的数据 1、SQLite 的 Demo DatabaseHelper.java 代码 package com.webabcd.SQLite; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.database.sqlite.SQLiteDatabase.CursorFactory; // 数据库操作的 Helper 类 public class DatabaseHelper extends SQLiteOpenHelper { DatabaseHelper(Context context, String name, CursorFactory cursorFactory, int version) { super(context, name, cursorFactory, version); } @Override public void onCreate(SQLiteDatabase db) { // TODO 创建数据库后，对数据库的操作 } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { // TODO 更改数据库版本的操作 } @Override public void onOpen(SQLiteDatabase db) { super.onOpen(db); // TODO 每次成功打开数据库后首先被执行 } } 复制代码 Main.java 代码 package com.webabcd.SQLite; import java.util.Random; import android.app.Activity; import android.content.ContentValues; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.os.Bundle; [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1392/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(8) &#8211; 控件(View)之TextSwitcher, Gallery, ImageSwitcher, GridView, ListView, ExpandableList</title>
		<link>http://palmsky.net/android/1388</link>
		<comments>http://palmsky.net/android/1388#comments</comments>
		<pubDate>Mon, 20 Feb 2012 09:44:16 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1388</guid>
		<description><![CDATA[在 Android 中使用各种控件(View) TextSwitcher - 文字转换器控件（改变文字时增加一些动画效果） Gallery - 缩略图浏览器控件 ImageSwitcher - 图片转换器控件（改变图片时增加一些动画效果） GridView - 网格控件 ListView - 列表控件 ExpandableList - 支持展开/收缩功能的列表控件 1、TextSwitcher 的 Demo textswitcher.xml 代码 &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; &#60;LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”&#62; &#60;Button android:id=”@+id/btnChange” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”改变文字” /&#62; &#60;!&#8211; TextSwitcher - 文字转换器控件（改变文字时增加一些动画效果） &#8211;&#62; &#60;TextSwitcher android:id=”@+id/textSwitcher” android:layout_width=”fill_parent” android:layout_height=”wrap_content” /&#62; &#60;/LinearLayout&#62; 复制代码 _TextSwitcher.java 代码 package com.webabcd.view; import java.util.Random; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.animation.Animation; import android.view.animation.AnimationUtils; import android.widget.Button; import android.widget.TextSwitcher; import android.widget.TextView; import android.widget.ViewSwitcher; public class _TextSwitcher extends Activity implements ViewSwitcher.ViewFactory { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.textswithcer); setTitle(“TextSwithcer”); final TextSwitcher switcher = (TextSwitcher) findViewById(R.id.textSwitcher); // 指定转换器的 ViewSwitcher.ViewFactory [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1388/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(7) &#8211; 控件(View)之ZoomControls, Include, VideoView, WebView, RatingBar, Tab, Spinner, Chronometer, ScrollView</title>
		<link>http://palmsky.net/android/1384</link>
		<comments>http://palmsky.net/android/1384#comments</comments>
		<pubDate>Mon, 20 Feb 2012 09:31:10 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1384</guid>
		<description><![CDATA[在 Android 中使用各种控件(View) ZoomControls - 放大/缩小按钮控件 Include - 整合控件 VideoView - 视频播放控件 WebView - 浏览器控件 RatingBar - 评分控件 Tab - 选项卡控件 Spinner - 下拉框控件 Chronometer - 计时器控件 ScrollView - 滚动条控件 1、ZoomControls 的 Demo zoomcontrols.xml 代码 &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; &#60;LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”&#62; &#60;!&#8211; 放大/缩小按钮控件 &#8211;&#62; &#60;ZoomControls android:id=”@+id/zoomControls” android:layout_width=”wrap_content” android:layout_height=”wrap_content”&#62;&#60;/ZoomControls&#62; &#60;/LinearLayout&#62; 复制代码 _ZoomControls.java 代码 package com.webabcd.view; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Toast; import android.widget.ZoomControls; public class _ZoomControls extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.zoomcontrols); setTitle(“ZoomControls”); ZoomControls zoomControls = (ZoomControls) this.findViewById(R.id.zoomControls); // setOnZoomInClickListener() - 响应单击放大按钮的事件 [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1384/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(6) &#8211; 控件(View)之DatePicker, TimePicker, ToggleButton, EditText, ProgressBar, SeekBar, AutoCompleteTextView, MultiAutoCompleteTextView</title>
		<link>http://palmsky.net/android/1381</link>
		<comments>http://palmsky.net/android/1381#comments</comments>
		<pubDate>Fri, 17 Feb 2012 01:23:35 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1381</guid>
		<description><![CDATA[在 Android 中使用各种控件(View) DatePicker - 日期选择控件 TimePicker - 时间选择控件 ToggleButton - 双状态按钮控件 EditText - 可编辑文本控件 ProgressBar - 进度条控件 SeekBar - 可拖动的进度条控件 AutoCompleteTextView &#8211; 支持自动完成功能的可编辑文本控件 MultiAutoCompleteTextView - 支持自动完成功能的可编辑文本控件，允许输入多值（多值之间会自动地用指定的分隔符分开） 1、DatePicker 的 Demo datepicker.xml 代码 &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; &#60;LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”&#62; &#60;!&#8211; DatePicker - 日期选择控件 &#8211;&#62; &#60;DatePicker android:id=”@+id/datePicker” android:layout_width=”wrap_content” android:layout_height=”wrap_content”&#62; &#60;/DatePicker&#62; &#60;/LinearLayout&#62; 复制代码 _DatePicker.java 代码 package com.webabcd.view; import android.app.Activity; import android.os.Bundle; public class _DatePicker extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.datepicker); // 具体的应用可参见对话框中的示例 setTitle(“DatePicker”); } } 复制代码 2、TimePicker 的 Demo timepicker.xml 代码 [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1381/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(5) &#8211; 控件(View)之TextView, Button, ImageButton, ImageView, CheckBox, RadioButton, AnalogClock, DigitalClock</title>
		<link>http://palmsky.net/android/1378</link>
		<comments>http://palmsky.net/android/1378#comments</comments>
		<pubDate>Fri, 17 Feb 2012 01:22:18 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[开发教程]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1378</guid>
		<description><![CDATA[在 Android 中使用各种控件(View) TextView - 文本显示控件 Button - 按钮控件 ImageButton - 图片按钮控件 ImageView - 图片显示控件 CheckBox - 复选框控件 RadioButton - 单选框控件 AnalogClock - 钟表（带表盘的那种）控件 DigitalClock - 电子表控件 1、TextView 的 Demo textview.xml 代码 &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; &#60;LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent”&#62; &#60;!&#8211; TextView - 文本显示控件 &#8211;&#62; &#60;TextView android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:id=”@+id/textView” /&#62; &#60;/LinearLayout&#62; 复制代码 _TextView.java 代码 package com.webabcd.view; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class _TextView extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); this.setContentView(R.layout.textview); // 设置 Activity 的标题 setTitle(“TextView”); TextView txt = (TextView) this.findViewById(R.id.textView); // 设置文本显示控件的文本内容，需要换行的话就用“n” txt.setText(“我是 TextViewn显示文字用的”); } } 复制代码 2、Button 的 Demo button.xml 代码 &#60;?xml version=”1.0&#8243; encoding=”utf-8&#8243;?&#62; [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1378/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>系出名门Android(4) &#8211; 活动(Activity), 服务(Service), 广播(Broadcast), 广播接收器(BroadcastReceiver)</title>
		<link>http://palmsky.net/android/1375</link>
		<comments>http://palmsky.net/android/1375#comments</comments>
		<pubDate>Fri, 17 Feb 2012 01:20:32 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[activity]]></category>
		<category><![CDATA[broadcast]]></category>
		<category><![CDATA[broadcastReceiver]]></category>
		<category><![CDATA[service]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1375</guid>
		<description><![CDATA[在 Android 中使用 Activity, Service, Broadcast, BroadcastReceiver 活动(Activity) &#8211; 用于表现功能 服务(Service) &#8211; 相当于后台运行的 Activity 广播(Broadcast) - 用于发送广播 广播接收器(BroadcastReceiver) &#8211; 用于接收广播 Intent - 用于连接以上各个组件，并在其间传递消息 1、演示 Activity 的基本用法，一个 Activity 启动另一个 Activity，启动另一个 Activity 时为其传递参数，被启动的 Activity 返回参数给启动者的 Activity Main.java 代码 package com.webabcd.activity; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.TextView; public class Main extends Activity { TextView txt; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); this.setContentView(R.layout.main); txt = (TextView) this.findViewById(R.id.txt); txt.setText(“Activity 1&#8243;); Button btn = (Button) this.findViewById(R.id.btn); btn.setText(“启动另一个Activity”); btn.setOnClickListener(new Button.OnClickListener() { @Override public void onClick(View v) { // 实例化 Intent，指定需要启动的 Activity [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1375/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>调用打电话和发短信及intent一些其他用法</title>
		<link>http://palmsky.net/android/1369</link>
		<comments>http://palmsky.net/android/1369#comments</comments>
		<pubDate>Thu, 16 Feb 2012 02:58:22 +0000</pubDate>
		<dc:creator>放</dc:creator>
				<category><![CDATA[android]]></category>
		<category><![CDATA[intent用法]]></category>

		<guid isPermaLink="false">http://palmsky.net/?p=1369</guid>
		<description><![CDATA[1.打电话 可以自己写界面，在button的单击事件中添加如下代码即可： Intent intent = new Intent(); intent.setAction(“android.intent.action.CALL”); intent.setData(Uri.parse(“tel:”+ mobile));//mobile为你要拨打的电话号码，模拟器中为模拟器编号也可 startActivity(intent); 需要添加打电话权限： &#60;uses-permission android:name=”android.permission.CALL_PHONE” /&#62; 2.发短信 和打电话差不多，在button的单击事件中添加如下代码： SmsManager smsManager = SmsManager.getDefault(); ArrayList&#60;String&#62; texts = smsManager.divideMessage(content);//拆分短信,短信字数太多了的时候要分几次发 for(String text : texts){ smsManager.sendTextMessage(mobile, null, text, null, null);//发送短信,mobile是对方手机号 } 对应发短信权限： &#60;uses-permissionandroid:name=”android.permission.SEND_SMS” /&#62; 下面是转载来的其他的一些Intent用法实例 显示网页 Uri uri = Uri.parse(“http://google.com”); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); 显示地图 Uri uri = [...]]]></description>
		<wfw:commentRss>http://palmsky.net/android/1369/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

