03 2014 档案

摘要:访问http://www.push-notification.org/ 下载中下载apns.zip文件导入java 服务器 和Android客户端在开发者中申请api id 阅读全文
posted @ 2014-03-31 10:32 风语9 阅读(151) 评论(0) 推荐(0) 编辑
摘要:web.xml dwr-invoke uk.ltd.getahead.dwr.DWRServlet debug true classes java.lang.Object dwr-invoke /dwr/* 在Web-INF下创建dwr.xml ChatService 服务端public class Cha... 阅读全文
posted @ 2014-03-28 14:07 风语9 阅读(353) 评论(0) 推荐(0) 编辑
摘要:一:下载插件JAD : http://www.kpdus.com/jad.html#download(选择与操作系统对应的版本)JadClipse:http://sourceforge.net/project/showfiles.php?group_id=40205(选择Eclipse支持的版本)1,将下载到的JAD反编译工具解压,将得到的jad.exe放置到java目录下(%java_HOME%/bin)2.1:将jadeclipse插件net.sf.jadclipse_3.3.0.jar 拷贝到myeclipse安装目录/Common/plugins/目录下。(我测试的版本不需要)2.2: 阅读全文
posted @ 2014-03-25 11:31 风语9 阅读(348) 评论(0) 推荐(0) 编辑
摘要:ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");ArticleService service = (ArticleServicel) context.getBean("articleService"); 阅读全文
posted @ 2014-03-25 10:48 风语9 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1.如果使用的是javaEE5 请修改成javaEE62.有可能hibernate-jpa-2.0-api-1.0.0.Final.jar会和ejb3-persistence.jar里很多重复,需要删除ejb3-persistence.jar 阅读全文
posted @ 2014-03-25 10:41 风语9 阅读(209) 评论(0) 推荐(0) 编辑
摘要:漂浮广告 阅读全文
posted @ 2014-03-24 17:04 风语9 阅读(103) 评论(0) 推荐(0) 编辑
摘要:usemap 是为了给图像加热点,所谓图像热点就是定义图像上的一小块区域使其变成一个独立的超链接具体demo如下 阅读全文
posted @ 2014-03-24 16:34 风语9 阅读(175) 评论(0) 推荐(0) 编辑
摘要:其实是表的主键设为GenerationType.AUTO 为自动写入只要手动填写其他字段的值就可以,不需要写主键值(否则不能添加数据)也可以尝试set IDENTITY_INSERT 表名 on 阅读全文
posted @ 2014-03-24 15:14 风语9 阅读(1331) 评论(0) 推荐(0) 编辑
摘要:可以使用广播监听网络的改变AndroidManifest.xml ConnectionChangeReceiver.javapackage com.relonger.oufengliyuan.receiver;import android.content.BroadcastReceiver;import android.content.Context;import android.content.Intent;import android.net.Connec... 阅读全文
posted @ 2014-03-19 13:05 风语9 阅读(366) 评论(0) 推荐(0) 编辑
摘要:web.xml cxf org.apache.cxf.transport.servlet.CXFServlet cxf /ofly/* rest-service.xml 在Spring的application.xml中添加 阅读全文
posted @ 2014-03-18 08:54 风语9 阅读(253) 评论(0) 推荐(0) 编辑
摘要:查看http://wiki.connect.qq.com/中的Android应用接入API下载jar包(open_sdk.jar,mta-sdk-1.0.0.jar)在Android项目中 AndroidManifest.xml 在主程序中MainActivity.java private QQAuth mQQAuth; public static Context appContext; private Button mNewLoginButton; private String mAppid="22222"; private UserInfo mInfo; private 阅读全文
posted @ 2014-03-13 13:51 风语9 阅读(725) 评论(0) 推荐(0) 编辑
摘要:HelloWorld接口public interface HelloWorld extends Remote { String sayHi(String name)throws RemoteException;}HelloWorldImpl.javapublic class HelloWorldImpl extends UnicastRemoteObject implements HelloWorld{ private static final long serialVersionUID = 1L; public HelloWorldImpl()throws RemoteException{. 阅读全文
posted @ 2014-03-12 09:50 风语9 阅读(185) 评论(0) 推荐(0) 编辑
摘要:在单引号中只认识2个转义字符\' ==> ' \\ ==>\在双引号中认识的转义字符多一些 \"==>" \n==>(换行) \t ==>制表符字符串相加$str1 . $str2声明数组$arr = array ('001'==>'张三','002'==>'李四','003'==>'王五');print_r($arr);echo $arr['003'];print_r($_GET); == s输入网 阅读全文
posted @ 2014-03-11 14:49 风语9 阅读(94) 评论(0) 推荐(0) 编辑
摘要:web.xml--contextConfigLocation /WEB-INF/applicationContext*.xml - org.springframework.web.context.ContextLoaderListener -cxforg.apache.cxf.transport.servlet.CXFServlet-cxf/app5r/*applicationContext.xmlWEB-INF/classes目录 2>WEB-INF/lib目录 --> UserService.java@WebService@SOAPBinding(style = Style.R 阅读全文
posted @ 2014-03-11 13:55 风语9 阅读(332) 评论(0) 推荐(0) 编辑
摘要:WebService是一种基于SOAP协议的远程调用标准,通过webservice可以将不同操作系统平台、不同语言、不同技术整合到一块。在Android SDK中并没有提供调用WebService的库,因此,需要使用第三方的SDK来调用WebService。PC版本的WEbservice客户端库非常丰富,例如Axis2,CXF等,但这些开发包对于Android系统过于庞大,也未必很容易移植到Android系统中。因此,这些开发包并不是在我们的考虑范围内。适合手机的WebService客户端的SDK有一些,比较常用的有Ksoap2,可以从http://code.google.com/p/ksoa 阅读全文
posted @ 2014-03-11 13:42 风语9 阅读(204) 评论(0) 推荐(0) 编辑
摘要://透明度渐变 AlphaAnimation a = new AlphaAnimation(0.1f, 1.0f); //设置动画时间 a.setDuration(5000); content.setAnimation(a); //content为定义的view a.setAnimationListener(new AnimationListener() { @Override public void onAnimationStart(Animation animation) { // TODO Auto-generated method stub ... 阅读全文
posted @ 2014-03-10 16:31 风语9 阅读(356) 评论(0) 推荐(0) 编辑