2013年5月2日

Android网络编程工具类:HttpUtil

摘要: import java.io.IOException;import org.apache.http.HttpResponse;import org.apache.http.client.ClientProtocolException;import org.apache.http.client.methods.HttpGet;import org.apache.http.client.methods.HttpPost;import org.apache.http.impl.client.DefaultHttpClient;import org.apache.http.util.EntityUti 阅读全文

posted @ 2013-05-02 23:59 may小张 阅读(907) 评论(0) 推荐(0) 编辑

2013年4月30日

JSP/Servlet设置编码格式的问题(Android)

摘要: 刚刚做了一个Android前台与后台Java的通信,查询回来到客户端的数据,中文出现乱码,没有什么概念,因为这两年来一直做swing,把web的东西给忘记了,现在备忘一下!此文章借签于:http://blog.csdn.net/w627782664/article/details/7064442新建一个Filter:import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servle 阅读全文

posted @ 2013-04-30 15:41 may小张 阅读(237) 评论(0) 推荐(0) 编辑

2013年4月24日

java.net.SocketException: Permission denied解决

摘要: 该文引自:http://hi.baidu.com/sunfengwei/item/6c4c8b68d015ea2569105bc2在Android项目开发时,在获取IP地址时出现java.net.SocketException:Permissiondenied异常,这是一个典型的异常。解决方法:在AndroidManifest.xml配置:<uses-permissionandroid:name="android.permission.INTERNET"/>如:<manifestxmlns:android="http://schemas.andr 阅读全文

posted @ 2013-04-24 00:58 may小张 阅读(660) 评论(0) 推荐(0) 编辑

2013年4月8日

在项目中,什么是NDA?我懂了!血的教训

摘要: 今天,这一个比中六合彩还神的东西,砸中了!想不到的是,一个无心的技术分享贴子,既然触犯了NDA(保密协议);怎么会这样的事,其它这种技术,在国内很难查找相关的资料,既然是国内很少找到的技术,当然要和同行的兄弟们分享了!在提交代码时,我已经把类名进行改名了,忽略的是,区然还有一个包级的名称没有改,其中还包括一些内容的注释,都有客户方的包级关键字。给客户方的搜索引擎给找出来了,就是因为自己提交的代码中,有客户方的包名关键字,老总发飙,拍起桌子说话!没话说,认了,因为个人资料中,还显示自己的头像,想逃也逃不了!而且客户还搞成一个PDF文档出来!在此,希望有想分享技术经验的同行,不要犯我这样子的低级错 阅读全文

posted @ 2013-04-08 23:17 may小张 阅读(942) 评论(0) 推荐(0) 编辑

2013年3月27日

Android学习历程-TableLayout布局

摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TableLayo 阅读全文

posted @ 2013-03-27 00:57 may小张 阅读(347) 评论(0) 推荐(0) 编辑

Android学习历程-FrameLayout帧布局

摘要: <?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <FrameLayout android:id="@+id/FrameLayout01&quo 阅读全文

posted @ 2013-03-27 00:28 may小张 阅读(219) 评论(0) 推荐(0) 编辑

Android学习历程-LinearLayout布局

摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <LinearLay 阅读全文

posted @ 2013-03-27 00:05 may小张 阅读(184) 评论(0) 推荐(0) 编辑

2013年3月25日

Android学习历程-事件处理流程

摘要: <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <TableLayo 阅读全文

posted @ 2013-03-25 23:34 may小张 阅读(207) 评论(0) 推荐(0) 编辑

Android学习历程-Toast

摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".MainActivity" > <TextView andr 阅读全文

posted @ 2013-03-25 22:28 may小张 阅读(124) 评论(0) 推荐(0) 编辑

Android学习历程-AlerDialog(接收数组)

摘要: package com.example.testcontextmenu;import android.app.Activity;import android.app.AlertDialog;import android.content.DialogInterface;import android.os.Bundle;import android.view.View;import android.view.View.OnClickListener;import android.widget.Button;import android.widget.TextView;public class Te 阅读全文

posted @ 2013-03-25 22:12 may小张 阅读(186) 评论(0) 推荐(0) 编辑

导航