摘要: GetWeather.asmx 代码 using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Web;using System.Web.Services;using System.Web.Services.Protocols;using System.Text;... 阅读全文
posted @ 2011-03-17 17:37 四渡冰点 阅读(245) 评论(0) 推荐(0) 编辑
摘要: A RemoteViews object (and, consequently, an App Widget) can support the following layout classes: FrameLayoutLinearLayoutRelativeLayoutAnd the following widget classes: AnalogClockButtonChronometerIma... 阅读全文
posted @ 2011-03-14 18:06 四渡冰点 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 用JAVA访问共享文件系统 前言 在Microsoft 网 络 系 统 中,SMB(Server Message Block, 服 务 信 息 块) 协 议 是Windows for Workgroup(WfWg)、Windows 95、Windows NT 和LanManager 用 来 实 现 共 享 局 域 网 上 文 件 和 打 印 机 的 协 议。 对 于 利 用Linux 和Windo... 阅读全文
posted @ 2011-03-09 15:59 四渡冰点 阅读(1552) 评论(0) 推荐(0) 编辑
摘要: Home键(小房子键)在键盘上映射的就是home键,这倒是很好记。Menu键用于打开菜单的按键,在键盘上映射的是F2键,PgUp键同样可以。另外,看英文原文的意思,貌似这个键在某些机型上会被设计为左软件(left softkey)Start键这个键在模拟器和G1真机上我都没有找到到底是哪个键。映射的是Shift+F2或PgDn,某些机型会被设计为右软键(right softkey)。Back键返回... 阅读全文
posted @ 2011-03-02 09:40 四渡冰点 阅读(801) 评论(0) 推荐(0) 编辑
摘要: 学习范围: 本教程将讲解如何使用SAXParser恰当地解析(自网络中获取的)XML. 难度: 1/5 应用效果: 描述: 0.) 本教程中我们将解析的XML文档来自如下URL: http://www.anddev.org/images/tut/basic/parsingxml/example.xml : XML: <?xml version="1.0"?><outertag><innertag... 阅读全文
posted @ 2011-03-01 14:32 四渡冰点 阅读(3907) 评论(0) 推荐(0) 编辑
摘要: android在处理一写图片资源的时候,会进行一些类型的转换,现在有空整理一下: 1、Drawable → Bitmap Java代码 public static Bitmap drawableToBitmap(Drawable drawable) { Bitmap bitmap = Bitmap .createBitmap( drawable.getIntrinsicWidth(), dr... 阅读全文
posted @ 2010-12-24 11:44 四渡冰点 阅读(1164) 评论(0) 推荐(0) 编辑
摘要: kSOAP的运用 1.概述 对于J2ME访问远端的web Service,除了官方标准JSR 172,我们还有两种选择: l kSOAP l Wingfoot Wingfoot是由Wingfoot Software(www.wingfoot.com)出品的一款J2ME(CLDC/CDC) SOAP1.1的轻量级实现方案。 kSOAP是Enhydra.org的一个开源作品,是EnhydraME项目的... 阅读全文
posted @ 2010-12-17 14:29 四渡冰点 阅读(928) 评论(0) 推荐(0) 编辑
摘要: 1.((BitmapDrawable)res.getDrawable(R.drawable.youricon)).getBitmap();2.Bitmap drawableToBitmap(Drawable drawable) { Bitmap bitmap = Bitmap .createBitmap( drawable.getIntrinsicWidth(), drawable.getIntr... 阅读全文
posted @ 2010-12-06 15:57 四渡冰点 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 常量Values String ADD_SHORTCUT_ACTION 动作:在系统中添加一个快捷方式。. "android.intent.action.ADD_SHORTCUT" String ALL_APPS_ACTION 动作:列举所有可用的应用。输入:无。 "android.intent.action.ALL_APPS" String ALTERNATIVE_CATEGORY 类别:说明 ... 阅读全文
posted @ 2010-10-29 11:47 四渡冰点 阅读(1866) 评论(0) 推荐(0) 编辑
摘要: 转自eoe社区 每一个Tab对应了一个布局,这个就有点好玩了。一个Activity,对应了多个功能布局。①新建一个Tab项目,注意,不要生成main Activity这里不要选②在包里面新建一个类MyTab,继承于TabActivity其实,TabActivity是Activity的子类 ③从父类继承OnCreate()入口方法④在Manifest.xml文件中注册一下MyTab类(Activi... 阅读全文
posted @ 2010-10-19 17:16 四渡冰点 阅读(349) 评论(0) 推荐(0) 编辑