手机人人客户端老是代理服务器客户端连接失败

您还未登陆,请登录后操作!
共有 5 位网友向您献上回答啦, 对答案满意?赶快给出你的好评,感谢他们吧!
错误导致,可关闭后重启就解决了!
您的举报已经提交成功,我们将尽快处理,谢谢!
手机重启试试?中国第一军事门户网站 | &>&&>&
LOL进不去 提示LOL连接失败:无法连接服务器
LOL进不去的情况大家都遇到过,LOL本身也不是很稳定,经常在登录时提示连接失败:无法连接服务器
LOL进不去 提示LOL连接失败:无法连接服务器
  问:LOL进不去,LOL英雄联盟下载完也更新完了。可启动游戏输入帐号后会出现几十秒的暂停,然后又自行启动,接着就会显示如图所示的连接网络错误的提示。
  答:LOL进不去的情况大家都遇到过,LOL本身也不是很稳定,经常在登录时提示&连接失败:无法连接服务器&&&。一般出现这种问题,可以是以下几种原因;
  如果你是在网吧,那么有可能是网吧安装密码保护系统必须找网管开启(当然网管不在的时候会设置自动开启)才能正常进入游戏,虽然会带来不便,但是还是为各大玩家提供保护。
  如果在家,或者不是这种情况有可能就是服务器负载,或者网络状况不好。重新启动一次应该就能进去了,当然如果你网络质量特别不稳定,也需要要多启动几次才能进入。但小编推荐如果网络实在不好就别玩了,坑。
  另外,家里机器开了防火墙、防毒软件等,也有可能导致LOL进不去的发生。同时如果系统运行了太多的程序,也很容易造成LOL卡死的情况。总之LOL不是很稳定,对系统要求很高,推荐玩前重启机器,关闭后台无用进程(迅雷等垃圾软件会莫名奇妙在后台驻留进程,玩LOL无论如何要把该死的偷带宽的软件进程XX掉)。
更多连接不上服务器的问题请看:LOL英雄联盟登录不了 LOL登陆问题解决方法
标签:问题问答连接不上服务器LOL服务器
本栏目最新文章
圣诞节(Christmas或Cristo Messa ),译名为“基督弥撒...
热门关键词为什么我用手机登人人老是无法连接服务器,登QQ就很正常_莲塘一中吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:14,216贴子:
为什么我用手机登人人老是无法连接服务器,登QQ就很正常收藏
为什么为什么
1楼 13:18&|
相关的贴子72375059相关的图贴
换一个连接方式…你是什么手机?
2楼 13:47&|
Nokia 6500s我的接入点是CMNET
3楼 14:18&|
…建议楼主用UC浏览器&不解释
4楼 20:05&|
贴吧贡献榜 登录百度帐号推荐应用
内&&容:使用签名档&&
为兴趣而生,贴吧更懂你。&或您还未登陆,请登录后操作!
与主服务器连接失败
通,但就连接不上
共有 2 位网友向您献上回答啦, 对答案满意?赶快给出你的好评,感谢他们吧!
我也是一样啊~~~~~~~~~
郁闷~ 野菜还有战车都玩不了了~~~
中把卸载该软件或游戏,然后到该游戏官方网站下载最终新版本,解决网络连接不畅及其它适时及影响文件更新速度的问题,如果下载了最新版本,一般情况下,就不用更新了,更不会出现这种状况了,希望能解决你的问题。
另有几种办法向你推荐:1、有些游戏大厅和其中所有游戏在WINXP系统中必须安装在C盘下,否则不能运行或影响系统反应;2、系统日期(右下角)是否是当前的,如果不是,能进入游戏大厅,但可能影响游戏程序的打开和进入;3、防火墙的开启、开闭与设置有时也将对程序的打开产生影响,特别是瑞星防火墙。
希望能解你的问题,共同畅游游戏世界
您的举报已经提交成功,我们将尽快处理,谢谢!
大家还关注Android連接SQLServer詳細教程(數據庫+服務器+客戶端)
& & & & 本文为原創,如果轉載請注明出處&/blog.csdn.net/zhyl8157121/artic
& & & & 本文为原創,如果轉載請注明出處&
其實之前發過一篇這样的博文,但那個只是簡單記錄了一些自己的想法,並沒有想作为教程來看,後來由於一些朋友想要源代碼,就附上了下載地址,但並沒有做什麼講解,從現在開始,准備做一份詳細的Android如何連接Sqlserver的教程.由於本人才疏學淺,如果有什麼不對的地方歡迎大家批評指正.
&&&&&&&& 教程會拿一個具體的例子來講,一步一步來,也許細節上還可以繼續加工,但大致的流程就是這样的。
&&&&&&&& 本教程有五個部分:
項目說明開發環境部署數據庫設計服務器端程序設計客戶端(android端)程序設計
&&&&&&&& 這個項目意在實現一個簡單的android連接Sqlserver的功能。
&&&&&&&& 就做一個簡單的庫存管理功能,包括對倉庫內現有貨物的查看、貨物信息的增加&刪除。
開發環境的部署
&&&&&&&& 今天主要講解第一個部分,開發環境的部署.
操作系統:Windows764bit 旗艦版
&&&&&&&& 當然這個是什麼基本無所謂,只是我是在這上面開發的,不過家庭普通版的貌似不能配置IIS,就是咱們後面要使用的一個服務.
android端:eclipse + ADT集成開發環境
&&&&&&&& 相信看到這個教程的基本都知道如何做這些了.如果真的是有哪位同學android開發環境沒有配置好而來看這篇教程,請先移步-&
服務器端:VisualStudio 2010
&&&&&&&& 這個是用來寫website/webservice的,開發語言使用C# (即.net)
數據庫:SQLServer2008 R2
&&&&&&&& 其實這個是什麼版本也無所謂吧,教程使用的都是比較基本的東西,所以版本的差異基本可以忽略。
IIS 7.5:正確配置並開启IIS服務
&&&&&&&& 如果想將website/webservice發布出去就要開启這個服務。但是如果僅僅是在本地進行測試就不需要配置,直接在VS中運行就可以。
&&&&&&&& 其實我在開發的時候也只是配置IIS的時候遇到了一些問題,這裏给出IIS的配置方法.
&&&&&&&& 這篇文庫给的還是很詳細的,我當初就是照着這個配置的。
數據庫設計
數據庫名稱:StockManage
主鍵,自增
下圖是設計表的時候的截圖。
向表中輸入內容
吐槽一下:为什麼這裏貓、狗、電話都有,甚至還有Surface?!這只能說當時LZ在想這些……
服務器端程序設計(Webservice)
&&&&&&&& 其實服務端可以寫成webservice也可以寫成website,前者只是提供一種服務,而後者是可以提供用戶界面等具體的頁面,後者也就是咱們平時所說的“網站”。
&&&&&&&& 兩者的區別:
Web Service 只提供程序和接口,不提供用戶界面Web Site 提供程序和接口,也提供用戶界面(網頁)
&&&&&&&& 由於咱們只是需要一個中介來訪問sqlserver,所以寫成webservice足夠了。
&&&&&&&& 目標:寫一個Website訪問Sqlserver,獲取數據並轉換成xml格式,然後傳遞给android客戶端。
1.&&&&&&新建一個Webservice工程
2.&&&&&&視圖 -&&其它窗口 -& 服務器資源管理器
3.&&&&&&右鍵數據連接 -& 添加連接
4.&&&&&&選擇Microsoft Sqlserver
5.&&&&&&如下圖所示選擇(可以點擊測試連接來檢測連接是否成功,然後點擊確定)
6.&&&&&&數據庫的查看和編輯也可以在VS中進行了
7.&&&&&&先查看一下數據庫屬性並記錄下連接屬性
8.&&&&&&新建一個類DBOperation,代碼如下:
using System.D
using System.C
using System.L
using System.W
using System.Web.S
using System.Web.UI;
using System.Web.UI.HtmlC
using System.Web.UI.WebC
using System.Web.UI.WebControls.WebP
using System.Xml.L
using System.Data.SqlC
using System.Text.RegularE
using System.C
using System.Collections.G
namespace StockManageWebservice
/// &summary&
/// 一個操作數據庫的類,所有對SQLServer的操作都寫在這個類中,使用的時候實例化一個然後直接調用就可以
/// &/summary&
public class DBOperation:IDisposable
public static SqlConnection sqlC
//用於連接數據庫
//將下面的引號之間的內容換成上面記錄下的屬性中的連接字符串
private String ConServerStr = @&Data Source=BOTTLE-PC;Initial Catalog=StockMIntegrated Security=True&;
//默認構造函數
public DBOperation()
if (sqlCon == null)
sqlCon = new SqlConnection();
sqlCon.ConnectionString = ConServerS
sqlCon.Open();
//關閉/銷毀函數,相當於Close()
public void Dispose()
if (sqlCon != null)
sqlCon.Close();
/// &summary&
/// 獲取所有貨物的信息
/// &/summary&
/// &returns&所有貨物信息&/returns&
public List&string& selectAllCargoInfor()
List&string& list = new List&string&();
string sql = &select * from C&;
SqlCommand cmd = new SqlCommand(sql,sqlCon);
SqlDataReader reader = cmd.ExecuteReader();
while (reader.Read())
//將結果集信息添加到返回向量中
list.Add(reader[0].ToString());
list.Add(reader[1].ToString());
list.Add(reader[2].ToString());
reader.Close();
cmd.Dispose();
catch(Exception)
/// &summary&
/// 增加一條貨物信息
/// &/summary&
/// &param name=&Cname&&貨物名稱&/param&
/// &param name=&Cnum&&貨物數量&/param&
public bool insertCargoInfo(string Cname, int Cnum)
string sql = &insert into C (Cname,Cnum) values ('& + Cname + &',& + Cnum + &)&;
SqlCommand cmd = new SqlCommand(sql, sqlCon);
cmd.ExecuteNonQuery();
cmd.Dispose();
catch (Exception)
/// &summary&
/// 刪除一條貨物信息
/// &/summary&
/// &param name=&Cno&&貨物編號&/param&
public bool deleteCargoInfo(string Cno)
string sql = &delete from C where Cno=& + C
SqlCommand cmd = new SqlCommand(sql, sqlCon);
cmd.ExecuteNonQuery();
cmd.Dispose();
catch (Exception)
9.& & & 修改Service1.asmx.cs代碼如下:
using System.Collections.G
using System.L
using System.W
using System.Web.S
namespace StockManageWebservice
/// &summary&
/// Service1 的摘要說明
/// &/summary&
[WebService(Namespace = &http://tempuri.org/&)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ponentModel.ToolboxItem(false)]
// 若要允許使用 ASP.NET AJAX 從腳本中調用此 Web 服務,請取消對下行的注釋。
// [System.Web.Script.Services.ScriptService]
public class Service1 : System.Web.Services.WebService
DBOperation dbOperation = new DBOperation();
[WebMethod]
public string HelloWorld()
return &Hello World&;
[WebMethod(Description = &獲取所有貨物的信息&)]
public string[] selectAllCargoInfor()
return dbOperation.selectAllCargoInfor().ToArray();
[WebMethod(Description = &增加一條貨物信息&)]
public bool insertCargoInfo(string Cname, int Cnum)
return dbOperation.insertCargoInfo(Cname, Cnum);
[WebMethod(Description = &刪除一條貨物信息&)]
public bool deleteCargoInfo(string Cno)
return dbOperation.deleteCargoInfo(Cno);
10.&&&&&&運行程序(F5),會自動打開一個瀏覽器,可以看到如下畫面:
11.&&選擇相應的功能並傳遞参數可以實現調試從瀏覽器中調試程序:
下圖選擇的是增加一條貨物信息
12. &程序執行的結果:
13.另,記住這裏的端口名,後面android的程序中添入的端口號就是這個:
客戶端(android端)程序設計
1.MainActivity
package com.bottle.
import java.util.ArrayL
import java.util.HashM
import java.util.L
import android.app.A
import android.app.D
import android.os.B
import android.view.G
import android.view.V
import android.view.View.OnClickL
import android.view.W
import android.view.WindowM
import android.widget.B
import android.widget.EditT
import android.widget.ListV
import android.widget.SimpleA
import android.widget.T
public class MainActivity extends Activity{
private Button btn1;
private Button btn2;
private Button btn3;
private ListView listV
private SimpleA
private DBUtil dbU
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
btn1 = (Button) findViewById(R.id.btn_all);
btn2 = (Button) findViewById(R.id.btn_add);
btn3 = (Button) findViewById(R.id.btn_delete);
listView = (ListView) findViewById(R.id.listView);
dbUtil = new DBUtil();
btn1.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
hideButton(true);
setListView();
btn2.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
hideButton(true);
setAddDialog();
btn3.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
hideButton(true);
setDeleteDialog();
* 設置彈出刪除對話框
private void setDeleteDialog() {
final Dialog dialog = new Dialog(MainActivity.this);
dialog.setContentView(R.layout.dialog_delete);
dialog.setTitle(&輸入想要刪除的貨物的編號&);
Window dialogWindow = dialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
dialogWindow.setGravity(Gravity.CENTER);
dialogWindow.setAttributes(lp);
final EditText cNoEditText = (EditText) dialog.findViewById(R.id.editText1);
Button btnConfirm = (Button) dialog.findViewById(R.id.button1);
Button btnCancel = (Button) dialog.findViewById(R.id.button2);
btnConfirm.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
dbUtil.deleteCargoInfo(cNoEditText.getText().toString());
dialog.dismiss();
hideButton(false);
Toast.makeText(MainActivity.this, &成功刪除數據&, Toast.LENGTH_SHORT).show();
btnCancel.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
dialog.dismiss();
hideButton(false);
dialog.show();
* 設置彈出添加對話框
private void setAddDialog() {
final Dialog dialog = new Dialog(MainActivity.this);
dialog.setContentView(R.layout.dialog_add);
dialog.setTitle(&輸入添加的貨物的信息&);
Window dialogWindow = dialog.getWindow();
WindowManager.LayoutParams lp = dialogWindow.getAttributes();
dialogWindow.setGravity(Gravity.CENTER);
dialogWindow.setAttributes(lp);
final EditText cNameEditText = (EditText) dialog.findViewById(R.id.editText1);
final EditText cNumEditText = (EditText) dialog.findViewById(R.id.editText2);
Button btnConfirm = (Button) dialog.findViewById(R.id.button1);
Button btnCancel = (Button) dialog.findViewById(R.id.button2);
btnConfirm.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
dbUtil.insertCargoInfo(cNameEditText.getText().toString(), cNumEditText.getText().toString());
dialog.dismiss();
hideButton(false);
Toast.makeText(MainActivity.this, &成功添加數據&, Toast.LENGTH_SHORT).show();
btnCancel.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
dialog.dismiss();
hideButton(false);
dialog.show();
* 設置listView
private void setListView() {
listView.setVisibility(View.VISIBLE);
List&HashMap&String, String&& list = new ArrayList&HashMap&String, String&&();
list = dbUtil.getAllInfo();
adapter = new SimpleAdapter(
MainActivity.this,
R.layout.adapter_item,
new String[] { &Cno&, &Cname&, &Cnum& },
new int[] { R.id.txt_Cno, R.id.txt_Cname, R.id.txt_Cnum });
listView.setAdapter(adapter);
* 設置button的可見性
private void hideButton(boolean result) {
if (result) {
btn1.setVisibility(View.GONE);
btn2.setVisibility(View.GONE);
btn3.setVisibility(View.GONE);
btn1.setVisibility(View.VISIBLE);
btn2.setVisibility(View.VISIBLE);
btn3.setVisibility(View.VISIBLE);
* 返回按鈕的重寫
public void onBackPressed()
if (listView.getVisibility() == View.VISIBLE) {
listView.setVisibility(View.GONE);
hideButton(false);
MainActivity.this.finish();
2.HttpConnSoap
package com.bottle.
import java.io.IOE
import java.io.InputS
import java.io.OutputS
import java.net.HttpURLC
import java.net.URL;
import java.util.ArrayL
public class HttpConnSoap {
public ArrayList&String& GetWebServre(String methodName, ArrayList&String& Parameters, ArrayList&String& ParValues) {
ArrayList&String& Values = new ArrayList&String&();
//ServerUrl是指webservice的url
//10.0.2.2是讓android模擬器訪問本地(PC)服務器,不能寫成127.0.0.1
//11125是指端口號,即掛載到IIS上的時候開启的端口
//Service1.asmx是指提供服務的頁面
String ServerUrl = &http://10.0.2.2:11125/Service1.asmx&;
//String soapAction=&http://tempuri.org/LongUserId1&;
String soapAction = &http://tempuri.org/& + methodN
//String data = &&;
String soap = &&?xml version=\&1.0\& encoding=\&utf-8\&?&&
+ &&soap:Envelope xmlns:xsi=\&http://www.w3.org/2001/XMLSchema-instance\& xmlns:xsd=\&http://www.w3.org/2001/XMLSchema\& xmlns:soap=\&http://schemas.xmlsoap.org/soap/envelope/\&&&
+ &&soap:Body /&&;
String tps, vps,
String mreakString = &&;
mreakString = &&& + methodName + & xmlns=\&http://tempuri.org/\&&&;
for (int i = 0; i & Parameters.size(); i++) {
tps = Parameters.get(i).toString();
//設置該方法的参數为.net webService中的参數名稱
vps = ParValues.get(i).toString();
ts = &&& + tps + &&& + vps + &&/& + tps + &&&;
mreakString = mreakString +
mreakString = mreakString + &&/& + methodName + &&&;
+&&HelloWorld xmlns=\&http://tempuri.org/\&&&
+&&x&string11661&/x&&
+&&SF1&string111&/SF1&&
+ &&/HelloWorld&&
String soap2 = &&/soap:Envelope&&;
String requestData = soap + mreakString + soap2;
//System.out.println(requestData);
URL url = new URL(ServerUrl);
HttpURLConnection con = (HttpURLConnection) url.openConnection();
byte[] bytes = requestData.getBytes(&utf-8&);
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setConnectTimeout(6000);// 設置超時時間
con.setRequestMethod(&POST&);
con.setRequestProperty(&Content-Type&, &text/charset=utf-8&);
con.setRequestProperty(&SOAPAction&, soapAction);
con.setRequestProperty(&Content-Length&, && + bytes.length);
OutputStream outStream = con.getOutputStream();
outStream.write(bytes);
outStream.flush();
outStream.close();
InputStream inStream = con.getInputStream();
//data=parser(inStream);
//System.out.print(&11&);
Values = inputStreamtovaluelist(inStream, methodName);
//System.out.println(Values.size());
} catch (Exception e) {
System.out.print(&2221&);
public ArrayList&String& inputStreamtovaluelist(InputStream in, String MonthsName) throws IOException {
StringBuffer out = new StringBuffer();
String s1 = &&;
byte[] b = new byte[4096];
ArrayList&String& Values = new ArrayList&String&();
Values.clear();
for ( (n = in.read(b)) != -1;) {
s1 = new String(b, 0, n);
out.append(s1);
System.out.println(out);
String[] s13 = s1.split(&&&&);
String ifString = MonthsName + &Result&;
String TS = &&;
String vs = &&;
Boolean getValueBoolean =
for (int i = 0; i & s13. i++) {
TS = s13[i];
System.out.println(TS);
j = TS.indexOf(ifString);
k = TS.lastIndexOf(ifString);
if (j &= 0) {
System.out.println(j);
if (getValueBoolean == false) {
getValueBoolean =
if ((j &= 0) && (k & j)) {
System.out.println(&FFF& + TS.lastIndexOf(&/& + ifString));
//System.out.println(TS);
l = ifString.length() + 1;
vs = TS.substring(j + l, k - 2);
//System.out.println(&fff&+vs);
Values.add(vs);
System.out.println(&退出& + vs);
getValueBoolean =
if (TS.lastIndexOf(&/& + ifString) &= 0) {
getValueBoolean =
if ((getValueBoolean) && (TS.lastIndexOf(&/& + ifString) & 0) && (j & 0)) {
k = TS.length();
//System.out.println(TS);
vs = TS.substring(7, k - 8);
//System.out.println(&f&+vs);
Values.add(vs);
package com.bottle.
import java.sql.C
import java.util.ArrayL
import java.util.HashM
import java.util.L
public class DBUtil {
private ArrayList&String& arrayList = new ArrayList&String&();
private ArrayList&String& brrayList = new ArrayList&String&();
private ArrayList&String& crrayList = new ArrayList&String&();
private HttpConnSoap Soap = new HttpConnSoap();
public static Connection getConnection() {
Connection con =
//Class.forName(&org.gjt.mm.mysql.Driver&);
//con=DriverManager.getConnection(&jdbc:mysql://192.168.0.106:3306/test?useUnicode=true&characterEncoding=UTF-8&,&root&,&initial&);
} catch (Exception e) {
//e.printStackTrace();
* 獲取所有貨物的信息
public List&HashMap&String, String&& getAllInfo() {
List&HashMap&String, String&& list = new ArrayList&HashMap&String, String&&();
arrayList.clear();
brrayList.clear();
crrayList.clear();
crrayList = Soap.GetWebServre(&selectAllCargoInfor&, arrayList, brrayList);
HashMap&String, String& tempHash = new HashMap&String, String&();
tempHash.put(&Cno&, &Cno&);
tempHash.put(&Cname&, &Cname&);
tempHash.put(&Cnum&, &Cnum&);
list.add(tempHash);
for (int j = 0; j & crrayList.size(); j += 3) {
HashMap&String, String& hashMap = new HashMap&String, String&();
hashMap.put(&Cno&, crrayList.get(j));
hashMap.put(&Cname&, crrayList.get(j + 1));
hashMap.put(&Cnum&, crrayList.get(j + 2));
list.add(hashMap);
* 增加一條貨物信息
public void insertCargoInfo(String Cname, String Cnum) {
arrayList.clear();
brrayList.clear();
arrayList.add(&Cname&);
arrayList.add(&Cnum&);
brrayList.add(Cname);
brrayList.add(Cnum);
Soap.GetWebServre(&insertCargoInfo&, arrayList, brrayList);
* 刪除一條貨物信息
public void deleteCargoInfo(String Cno) {
arrayList.clear();
brrayList.clear();
arrayList.add(&Cno&);
brrayList.add(Cno);
Soap.GetWebServre(&deleteCargoInfo&, arrayList, brrayList);
4.activity_main.xml
&RelativeLayout xmlns:android=&/apk/res/android&
xmlns:tools=&/tools&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent& &
android:id=&@+id/listView&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:visibility=&gone& &
&/ListView&
android:id=&@+id/btn_all&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_above=&@+id/btn_add&
android:layout_alignLeft=&@+id/btn_add&
android:layout_marginBottom=&10dip&
android:text=&@string/btn1& /&
android:id=&@+id/btn_add&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_centerHorizontal=&true&
android:layout_centerVertical=&true&
android:text=&@string/btn2& /&
android:id=&@+id/btn_delete&
android:layout_width=&wrap_content&
android:layout_height=&wrap_content&
android:layout_alignLeft=&@+id/btn_add&
android:layout_below=&@+id/btn_add&
android:layout_marginTop=&10dip&
android:text=&@string/btn3& /&
&/RelativeLayout&
5.adapter_item.xml
&?xml version=&1.0& encoding=&utf-8&?&
&TableLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:descendantFocusability=&blocksDescendants&
android:gravity=&center& &
android:id=&@+id/classroom_detail_item_tableRow&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:gravity=&center& &
android:id=&@+id/txt_Cno&
android:layout_width=&80dp&
android:layout_height=&wrap_content&
android:gravity=&center&
android:height=&40dp&
android:textSize=&14sp& &
&/TextView&
android:id=&@+id/txt_Cname&
android:layout_width=&80dp&
android:layout_height=&wrap_content&
android:gravity=&center&
android:height=&40dp&
android:textSize=&14sp& &
&/TextView&
android:id=&@+id/txt_Cnum&
android:layout_width=&80dp&
android:layout_height=&wrap_content&
android:gravity=&center&
android:height=&40dp&
android:textSize=&14sp& &
&/TextView&
&/TableRow&
&/TableLayout&
6.dialog_add.xml
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:orientation=&vertical& &
android:id=&@+id/editText1&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:ems=&10&
android:hint=&@string/add_hint1& &
&requestFocus /&
&/EditText&
android:id=&@+id/editText2&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:ems=&10&
android:hint=&@string/add_hint2&
android:inputType=&number& /&
&LinearLayout
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:orientation=&horizontal& &
android:id=&@+id/button1&
android:layout_width=&100dip&
android:layout_height=&wrap_content&
android:layout_marginLeft=&20dip&
android:text=&@string/confirm& /&
android:id=&@+id/button2&
android:layout_width=&100dip&
android:layout_height=&wrap_content&
android:layout_marginLeft=&40dip&
android:text=&@string/cancel& /&
&/LinearLayout&
&/LinearLayout&
7.dialog_delete.xml
&?xml version=&1.0& encoding=&utf-8&?&
&LinearLayout xmlns:android=&/apk/res/android&
android:layout_width=&fill_parent&
android:layout_height=&fill_parent&
android:orientation=&vertical& &
android:id=&@+id/editText1&
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:ems=&10&
android:hint=&@string/delete_hint& &
&requestFocus /&
&/EditText&
&LinearLayout
android:layout_width=&fill_parent&
android:layout_height=&wrap_content&
android:orientation=&horizontal& &
android:id=&@+id/button1&
android:layout_width=&100dip&
android:layout_height=&wrap_content&
android:layout_marginLeft=&20dip&
android:text=&@string/confirm& /&
android:id=&@+id/button2&
android:layout_width=&100dip&
android:layout_height=&wrap_content&
android:layout_marginLeft=&40dip&
android:text=&@string/cancel& /&
&/LinearLayout&
&/LinearLayout&
8.strings.xml
&resources&
&string name=&app_name&&StockManagement&/string&
&string name=&menu_settings&&Settings&/string&
&string name=&title_activity_main&&MainActivity&/string&
&string name=&btn1&&查看所有貨物信息&/string&
&string name=&btn2&&增加一條貨物信息&/string&
&string name=&btn3&&刪除一條貨物信息&/string&
&string name=&add_hint1&&輸入添加的貨物的名稱&/string&
&string name=&add_hint2&&輸入貨物的數量&/string&
&string name=&confirm&&確定&/string&
&string name=&cancel&&取消&/string&
&string name=&delete_hint&&輸入刪除的貨物的編號&/string&
&/resources&
9.Manifest.xml
&manifest xmlns:android=&/apk/res/android&
package=&com.bottle.stockmanage&
android:versionCode=&1&
android:versionName=&1.0& &
android:minSdkVersion=&7&
android:targetSdkVersion=&15& /&
&uses-permission android:name=&android.permission.INTERNET& /&
&application
android:icon=&@drawable/ic_launcher&
android:label=&@string/app_name&
android:theme=&@android:style/Theme.NoTitleBar& &
android:name=&.MainActivity&
android:label=&@string/title_activity_main&
android:screenOrientation=&portrait& &
&intent-filter&
&action android:name=&android.intent.action.MAIN& /&
&category android:name=&android.intent.category.LAUNCHER& /&
&/intent-filter&
&/activity&
&/application&
&/manifest&
運行程序的效果如下圖所示:
再說一下IIS,如果只是在本地進行測試等操作,是不需要使用到IIS的,但是如果想發布出去,就要配置一下IIS。
好啦,基本就是這样了。程序不是完善的,但大概的思路就是這样,用到的技術也大概就是這幾样,但是每一样拿出來都夠學一陣的了。
先這样,有什麼問題可以给我發郵件 bottle.
過兩天也許還會做一個講到其中用到的具體技術的教程,有興趣的可以期待一下,哈哈。
謝謝您的支持,歡迎大家批評指正。
------分隔線----------------------------
大家一直說做seo優化,應該如何如何做,其實要做好seo優化的根...
機房收費系統——數據庫表中隱藏字段的設計
--1 更新特定表中記錄的存儲過程並在WEBpage中使用ADO調用。
COUNT(*)計算元組個數
COUNT(列名)對一列中的值計算...
linux下MySQL使用方法
=======================================================...
自上一篇《從0開始自己做ORM(開篇)&&日志模塊》寫完,...

我要回帖

更多关于 人人客户端 的文章

 

随机推荐