08 2011 档案

摘要:function split(src,dec : string):TStringList;var i : integer; str : string;begin result := TStringList.Create; repeat i := pos(dec,src); str := copy(src,1,i-1); if (str='') and (i>0) then begin delete(src,1,length(dec)); continue; end; if i>0th... 阅读全文
posted @ 2011-08-24 17:11 还是你最好 阅读(1384) 评论(0) 推荐(0) 编辑
摘要:本实例实现了android上传手机图片至服务器,服务器进行保存服务器servlet代码publicvoid doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String temp=request.getSession().getServletContext().getRealPath("/")+"temp"; //临时目录 System.ou... 阅读全文
posted @ 2011-08-02 17:01 还是你最好 阅读(174021) 评论(35) 推荐(4) 编辑
该文被密码保护。
posted @ 2011-08-01 15:37 还是你最好 阅读(1) 评论(0) 推荐(0) 编辑
摘要:代码与范例:首先需要在Manifest文件中添加以下内容:以使程序获取摄像头使用以及自动对焦功能的使用权限。CameraTestActivity.javaimport android.app.Activity;import android.os.Bundle;import android.view.Window;import android.view.WindowManager; public class CameraTestActivity extends Activity { @Override public void onCreate(Bundle bundle) { ... 阅读全文
posted @ 2011-08-01 15:35 还是你最好 阅读(28327) 评论(0) 推荐(1) 编辑
摘要:编写xml文件放到res/drawable-*/下面最基本的写法如下<?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <gradient android:startColor="#3A3C39" android:endColor="#181818" android:angle="270" 阅读全文
posted @ 2011-08-01 10:51 还是你最好 阅读(14177) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示