摘要:
基本是这个错误我的根目录文件结构 .. /conn/conn.php /test.test.phptest.php有include("/conn/conn.php") 这句话Warning: include(./conn/conn.php) [function.include]: failed to open stream: No such file or directory inD:\Program Files (x86)\AppServ\www\html4\mobile\setting_skins_mobile.phpon line1Warning: include() 阅读全文
摘要:
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> <shape> <gradient android:startColor="#EB5E0A" android:endColor="#EB5E0A& 阅读全文
摘要:
<?php session_start(); include("conn/conn.php");?>
<?php //Pick out information from database and print out. $type = $_GET['type']; $q_word="select id ,attr_type,pic_url,pic_desc from projectinfo where attr_type='".$type."' order by attr_type"; 阅读全文
摘要:
public static void getImg(String urlPath , String savePath) throws Exception {//获取图片 URL url = new URL(urlPath); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setConnectTimeout(6*1000); // 注意要设置超时,设置时间不要超过10秒,避免被android系统回收 if (conn... 阅读全文
摘要:
httpclient-4.1.1.jarhttpcore-4.2.jarcommons-logging-1.1.jarimport java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map; import org.apache.http.HttpResponse;
im.. 阅读全文
摘要:
Android通过http协议POST传输方式如下:方式一:HttpPost(import org.apache.http.client.methods.HttpPost)代码如下:private Button button1,button2,button3;private TextView textView1;button1.setOnClickListener(new Button.OnClickListener(){ @Override public void onClick(View arg0) { // TODO Auto-generated method stub //URLַ// 阅读全文
摘要:
昨天没有午休,搞了一下午居然没搞明白,今天半个小时搞定了,看来还是早上效率高,看了午休还是必须的进入正题,有注册系统的网站当然必须有安全机制 ,概述如下1.登陆 需要检测用户的合法性<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<?php session_start(); include("conn/conn.php");?>
<?php
function clearSession(){//清楚SESSION方法 se 阅读全文
摘要:
AssetManager assetManager = getAssets();
InputStream inputStream = assetManager.open("1.txt"); 这么做可以支持各种格式的资源文件 阅读全文
摘要:
关键代码一个adapterpackage com.su.houses.utils; import android.content.Context;
import android.content.res.TypedArray;
import android.net.Uri;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Gallery;
import android.widget.ImageView; impor.. 阅读全文
摘要:
gridview布局<?xml version="1.0" encoding="utf-8"?> <GridView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/gridview" android:layout_width="fill_parent" android:layout_height="fill_parent" android:columnW 阅读全文