基于android平臺的美食分享社區(qū)的設計與實現(xiàn)本科畢業(yè)設計_第1頁
基于android平臺的美食分享社區(qū)的設計與實現(xiàn)本科畢業(yè)設計_第2頁
基于android平臺的美食分享社區(qū)的設計與實現(xiàn)本科畢業(yè)設計_第3頁
基于android平臺的美食分享社區(qū)的設計與實現(xiàn)本科畢業(yè)設計_第4頁
基于android平臺的美食分享社區(qū)的設計與實現(xiàn)本科畢業(yè)設計_第5頁
已閱讀5頁,還剩32頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

湖南農(nóng)業(yè)大學東方科技學院全日制普通本科生畢業(yè)設計基于 平臺的美食分享社區(qū)的設計與實現(xiàn)DESIGNANDIMPLEMENTATIONOFFOODSHARINGCOMMUNITYBASEDONANDROID湖南農(nóng)業(yè)大學全日制普通本科生畢業(yè)設計

誠信聲明本人鄭重聲明: 所呈交的本科畢業(yè)設計是本人在指導老師的指導下, 進行研究工作所取得的成果,成果不存在知識產(chǎn)權(quán)爭議。 除文中已經(jīng)注明引用的內(nèi)容外,本論文不含任何其他個人或集體已經(jīng)發(fā)表或撰寫過的作品成果。 對本文的研究做出重要貢獻的個人和集體在文中均作了明確的說明并表示了謝意。本人完全意識到本聲明的法律結(jié)果由本人承擔。畢業(yè)設計作者簽名:摘要 錯.誤!未定義書簽。關(guān)鍵詞 錯.誤!未定義書簽。TOC\o"1-5"\h\z\o"CurrentDocument".前言 2\o"CurrentDocument".Android的技術(shù)與理論 2\o"CurrentDocument"系統(tǒng)架構(gòu) 2\o"CurrentDocument"Linux內(nèi)核層 3系統(tǒng)運行庫 3\o"CurrentDocument"應用程序框架 4應用程序 5.系統(tǒng)分析 5開發(fā)環(huán)境 5\o"CurrentDocument"需求分析 5\o"CurrentDocument"功能需求 5\o"CurrentDocument"性能需求 5\o"CurrentDocument"界面需求 5可靠性需求 6開發(fā)性及可擴充性需求 6安全性需求 6可行性分析 6\o"CurrentDocument".數(shù)據(jù)庫設計 6\o"CurrentDocument"后臺服務端數(shù)據(jù)庫設計 7\o"CurrentDocument"Android客戶端數(shù)據(jù)存儲 9\o"CurrentDocument"SQLite數(shù)據(jù)庫 9\o"CurrentDocument"SharedPreferences存儲 10\o"CurrentDocument".Android客戶端設計 10\o"CurrentDocument"客戶端工程結(jié)構(gòu)分析 10\o"CurrentDocument"src目錄 11\o"CurrentDocument"gen目錄 11\o"CurrentDocument"Android4.0.3 11\o"CurrentDocument"res目錄 11\o"CurrentDocument"AndroidManifest.xml文件 11\o"CurrentDocument"AndroidUI設計 13\o"CurrentDocument"Android設計目標簡介 13\o"CurrentDocument"Androidxml布局介紹 13客戶端UI特效設計 16\o"CurrentDocument"Android模塊功能詳細設計 17登錄模塊 17今日推薦 19\o"CurrentDocument"導航欄 20\o"CurrentDocument"菜譜詳情 21分類 22\o"CurrentDocument"私信 23\o"CurrentDocument"注冊 24\o"CurrentDocument".后臺數(shù)據(jù)處理端設計 25\o"CurrentDocument"工程結(jié)構(gòu)分析 25與后臺數(shù)據(jù)庫交互 25\o"CurrentDocument"與android客戶端數(shù)據(jù)交互 26\o"CurrentDocument".總結(jié) 27\o"CurrentDocument"考文獻 28\o"CurrentDocument"謝 29#Android□□□□□□□□□□□□□,Android□□□□□□□□□□□□□,完全符合SQLite□□□□□□□□,—SQLite。如果你想要開—SQLite。如果你想要開發(fā)Android□□□□,□□□□□ Android□□□□□,□□ SQLite數(shù)據(jù)庫□□□□□□□□□□SharedPreferences存儲SharedPreferences□□□□□□□□□□□□□□□□□□□□□□, 它□□□□□□□□□□□ □□□□□□□□□□□□□□□□□□□□□, 或者□□□□□□□□□□□,□□□□□□□□□□□□□□□DDMS中的FileSharedPreferencesDDMS中的FileExplorer中的/data/data//shares_prefs下。在所有的AndroidSDK存儲技術(shù)中SharedPreferences□□□□□□□□□□□□,□□SharedPreferences□□□□□□□ key-value對。Android客戶端設計客戶端工程結(jié)構(gòu)分析本系統(tǒng)的Android□□□□□□Android4.0.3□□□□□,□□□□Android應用□□□□□□□□□□□□□□□□□□□□□□□□ 2):?愛ShiShangJia/膽corn.kk.shishangjia■activity>口adapter

由bitE叩>田db>田form?田modle:bnet?田utils>康view落gen[GeneratedJavaFiles]>Android4.0,3bAAndroidPrivateLibrariesb期AndroidDependencies宓?bin>為libs也AndroidManrfestjfml跑lint.xmljpro'guard-project.txt

國perties圖2android工程結(jié)構(gòu)圖Fig2androidstructurechart□□□□□,□□□□□□□□□□□,□□□□□□□□□□□src目錄src□□□□□□□□□□□□□□, □□□□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□,□□□□□□□□□□□ Activity和□□□□□□□□□gen目錄□□□□□□□□ ADT□□□□□, □□□□□□□□□□ □□□□□□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□ID,當項目中使用這些資源時,會通過該類得到資源的引用。Android4.0.3□□□□□□□□□□□□□□ JAR□,□□□□□□□□□□□□□META-INF目錄。res目錄□□□□□□□□□□□□□□□□□□□, □□□□□ □□□□□□□□□□□□□,□□□□□□,□ drawable□□□□□□□□□□□□□□□□□□□□□□ Layout□□□□□□□□□□□□□□□□ Values是用來□□□□□□□□□□□□□□□□□□□□□□AndroidManifest.xml文件□□□□□□□□□□□□□□□, □□□□□□□□□□□□□, 讓外界知道該應用程序包含哪些組件、 資源、□□□□□□□□□□□□□□□□□□□□□□□□,□□□□□□□□□□:<!--□□□□□□□□□□ --><uses-permissionandroid:name="android.permission.ACCESS_NETWORK_STATE"></uses-permission><uses-permissionandroid:name="android.permission.INTERNET"></uses-permission><uses-permissionandroid:name="android.permission.ACCESS_WIFI_STATE"></uses-permission><uses-permissionandroid:name="android.permission.CHANGE_WIFI_STATE"></uses-permission><!--SDK離線地圖和cache功能需要讀寫外部存儲器--><uses-permissionandroid:name="android.permission.WRITE_EXTERNAL_STORAGE"></uses-permission><uses-permissionandroid:name="android.permission.WRITE_SETTINGS"></uses-permission><!--獲取設置信息和詳情頁直接撥打電話需要以下權(quán)限--><uses-permissionandroid:name="android.permission.READ_PHONE_STATE"></uses-permission><uses-permissionandroid:name="android.permission.CALL_PHONE"></uses-permission><!--使用定位功能所需權(quán)限--><uses-permissionandroid:name="android.permission.ACCESS_FINE_LOCATION"></uses-permission>〈permissionandroid:name="android.permission.BAIDU_LOCATION_SERVICE">〈/permission〉<uses-permissionandroid:name="android.permission.BAIDU_LOCATION_SERVICE"></uses-permission><uses-permissionandroid:name="android.permission.ACCESS_COARSE_LOCATION"></uses-permission><uses-permissionandroid:name="android.permission.ACCESS_MOCK_LOCATION"></uses-permission><uses-permissionandroid:name="android.permission.ACCESS_GPS"/>5.2.AndroidUI設計Android設計目標簡介□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□Android□□□,□□□□□□□□□ :魅力:Android□□□□□□□□□□□□□□□□□□□□□□□□□□;□□□□□□□□□□□□ □□□□□□□□□□□□□ □□□□□□□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□簡化:Android□□□□□□□□□□□□□□□□□□□□□□□□□應用時,□□□□□□□□□□□□□□□□□□ □□□□□□□□□□□□□使用。Android□□□□□□□□□□□, □□□□□□□□□□ □□□□□□□□□□□□□, □□□□□□□□□□□□□□□□□, □□□□□□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□驚奇:Android□□□□□□□□□□□□□□□□,□□□□□□□□□Android□□□□□ □□□□□□□□□□□, □□□□□□□□□□□□□□□□□□□,□□□□□□□□□□,□□□□□□□□□□□□□□□□□Androidxml布局介紹Android□□□□□□□□□□□□□□□□ res文件夾中的layout文件在□□□□□□□□ xml格式的。Android應用在activity□□□□□□xml布□□□□□□□□□□□Android五大布局Android對用五大布局對象,它們分別是FrameLayout(框架布局),LinearLayout(線性布局),AbsoluteLayout(絕對布局),RelativeLayout(相對布局),TableLayout(表格布局)。FrameLayout:FrameLayout□□□□□□□□□□□□□□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□ —□□,□□□□□□□□□□□□□□□□□□□□□□□□□□; 你不能為FrameLayout□□□□□□□□□□□□□ □□□□□□□□□□□□□□□□□□□□□□□□□, 把它□□□□□□□□□□□□□□□□□□□□□ □LinearLayout

LinearLayout□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□LinearLayout□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□LinearLayout□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□LinearLayout還LinearLayout還□□□□□□□□□□□weight□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□weight□□□□□□□□□□□默認的weight值為0。□□□□□□□□□□weight□□□□□□□□□□□默認的weight值為0。weight值為1,那么,這兩個文本(0,0)為左上角,口向下或向右移動時,坐標值將變大。AbsoluteLayout沒有□□□,□□□□□□□□重疊□口我們通常不推薦AbsoluteLayout,□□□□□□□□□□□□,□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□RelativeLayout(0,0)為左上角,口向下或向右移動時,坐標值將變大。AbsoluteLayout沒有□□□,□□□□□□□□重疊□口我們通常不推薦AbsoluteLayout,□□□□□□□□□□□□,□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□RelativeLayoutRelativeLayout□□□□□□□□□□□□□□□□□□□□□□□□□過ID□□□□□□,□□□□□□□,□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□layout,□□□□□□□,□□□□□□□□□□□TableLayoutTableLayout□□□□□□□□□□□□□□□TableRow□□,□□TableRow□□□□□□XML□□□□□一個TableLayout由許多的row□□□□,□□□□□□□□□□□,□□□□□□□□□cell□□□□□□□ row擁有對象。□□□□□□□□□□□□□□□TableLayout□□□□□□0個或多個的cell;□□□□□□□□□□□□row□cloumns或cell擁有一個View□□□□□□□,□□□□□□□□,□□□□□□□□,□□□□□□□□□□□□AbsoluteLayout□□□□□□,□□□□□x/yAbsoluteLayout□□□□□□□□□□□x/y這與HTML□□□□□□□□□□□□□□

□□□:□□□□ true可falseandroid:layout_centerHrizontal 水平居中android:layout_centerVertical 垂直居中android:layout_centerInparent □□□□□□□□□□android:layout_alignParentBottom □□□□□□□□□android:layout_alignParentLeft □□□□□□□□□android:layout_alignParentRight □□□□□□□□□android:layout_alignParentTop □□□□□□□□□android:layout_alignWithParentlfMissing□□□□□□□□□□□□□□□,□□□□□□□□□□□□□:□□□□□□ id的引用名android:layout_belowandroid:layout_aboveandroid:layout_toLeftOfAndroid:layout_toRightOfandroid:layout_alignTopandroid:layout_alignLeftandroid:layout_alignBottomandroid:layout_alignRight□□□:□□□□□□□□□□□,□android:layout_marginBottomAndroid:layout_marginLeftAndroid:layout_marginRightAndroid:layout_marginTopAndroid:textSize文字大小Android:width控件寬度□□□□□□□□□□□□□□□□□□□□□□□□□□□□本元素的上邊緣和某元素的上邊緣對齊本元素的左邊緣和某元素的左邊緣對齊本元素的下邊緣和某元素下邊緣對齊□□□□□□□□□□□□□□□□□□□□□□□□□□□□本元素的上邊緣和某元素的上邊緣對齊本元素的左邊緣和某元素的左邊緣對齊本元素的下邊緣和某元素下邊緣對齊本元素的右邊緣和某元素右邊緣對齊30dip□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□Android:layout_width指定Container□□□□□Android:layout_height指定Container□□□□□5.2.3.客戶端UI特效設計1)在androidUI設計中shape和selector是AndroidUI□□□□□□□□,□□□□□□□□□□□□ Button,點擊 Button□□□□□□□,□□□到shape和selector??梢赃@樣說, shape和selector□□□□□□□□□□□□□□□□2)Animations□□□□□androidUI□□□□□□□ API,Animations□□□□□□□□□□□,□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□ xml□□□□□,□□□□res□□□□□ anim□,□□□□□□□□□□,□□□□□□□□□□□□□□ activity□□□□□□□□□□□□□□□□□□□□□□況:A)進入新的 activity口中情況的兩中動畫文件分別為 anim_go_inter.xml和anim_go_exit.xmH□□□□□,□□ anim_go_inter.xml]□□□□□□到新的activity時候此activity□□□□□□□□,□□□□□□:<?xmlversion="1.0"encoding="utf-8"?><setxmlns:android="/apk/res/android">〈translateandroid:fromXDelta="100%pandroid:toXDelta="0%p"android:duration="500"/>〈alphaandroid:fromAlpha="0.6"android:toAlpha="1.0"android:duration="500"android:startOffset="0"/></set>□□□□□□□□□□□□□□□□□□□□□□, □□□□□□□□□ x方向的100%移動到 0%處,移動時間為 500□□,□□□□□□□□□,□□□□□□□□□□□□,□□□□ 500□□□□□□□□□□□□□□□ activity時候,原始activity□□□□□□□□□□□□□候,原始動,滑入的activity□□□□□□□□,□□□ activity□□□□□□□□□B)返回至上一個activity:□□□□□□□□□□□□□anim_back_exit.xml和anim_back_inter.xml。anim_back_exit.xml定義了當前activity□□□□□□□□□, anim_back_inter.xml□□□□□□□□□activity□□□□□□□□Android模塊功能詳細設計登錄模塊□□□□□□□□□□□□□, □□□□□□Relativelayout,□□□□□□□□□□□□□□□□ selector,讓其具有圓角樣式,并在點擊給于顏色變□□□□,□□□ selector□□□□□□:<?xmlversion="1.0"encoding="utf-8"?>〈selectorxmlns:android="http:〃/apk/res/android"><itemandroid:state_focused="false"android:state_pressed="true"><shape>〈solidandroid:color="#0b9eda"/>〈cornersandroid:radius="6dp"/></shape></item>〈itemandroid:state_focused="false"android:state_pressed="false"><shape>〈solidandroid:color="#05A9E3"/>〈cornersandroid:radius="6dp"/>〈/shape>〈/item>

〈/selector〉整個selector□□□□□item組成,分別表示□□□□□□□□□□□□□的屬性,每個〈/selector〉整個selector□□□□□item組成,分別表示□□□□□□□□□□□□□的屬性,每個item□□□□□solid屬性□□□□□□□□和corners屬性□□□□ .□□□□□□□□□□ 3。圖3登錄界面效果圖Fig3loginscreen□□□,□□□□□□□□□,□□□□□□□□□□□□,□□□□□□□□□,□□□□□□□□:/**□□□□□□□□□@paramuName@paramuPwd@return/privatebooleancheckLoginInfo(StringuName,StringuPwd){booleanisOK=false;if(uName==nullIIuPwd==nullIIuName.trim().length()==0IIuPwd.trim().length()==0){Toast.makeText(this,"□□□□□□□□□□ ",Toast.LENGTH_SHORT).show();}else{isOK=true;}returnisOK;}5.3.2.今日推薦□□□□□□□□□□□□ listview顯示,listview是android應用?!酢酢酢?□□□ listview通過繼承原始listview并添加□□□□□□□□□□□□, 在activity□□□□□□□□□□□□□□□□□□□□□□□□,□□□□□□:/**下拉刷新/publicvoidonRefresh(){mHandler.post(newRunnable(){publicvoidrun(){page=0;onLoad();xListView.setAdapter(mAdapter);}});}/**加載更多/publicvoidonLoadMore(){mHandler.post(newRunnable(){publicvoidrun(){onLoad();xListView.setSelection(dataList.size());}});}□□□□□□□□□□□ android的ui□□,□□□□□□,□□□□□handler□□□□□□□□□□ ui。運行效果如下(圖 4)圖4今日推薦Fig4Today'sRecommendation導航欄□□□□□□□□ android□□□□□□□□□□□□□□□□□□□□□

開和關(guān)閉導航抽屜,通過手指從屏幕左側(cè)的邊緣滑動,但如果你使用工具欄,你應該也能允許用戶打開和關(guān)閉它,通過觸摸應用程序圖標.應用程序圖標也可以顯示一個特殊的圖標關(guān)于導航抽屜的狀態(tài),如圖5。圖5導航欄Fig5navigationbar菜譜詳情在此模塊用戶可以清楚的查看到對應菜品的制作步驟及制作關(guān)鍵技巧,運行效果如圖6

圖6菜譜詳情Fig6fooddetails分類分類模塊以一個GridView控件呈現(xiàn),明了,清晰。GridView是網(wǎng)格視圖的首選來顯示內(nèi)容的。我們可以繼承BaseAdapter重寫getview方法得到我們自己想要的網(wǎng)格樣式。具體實現(xiàn)如下:publicViewgetView(intposition,ViewconvertView,ViewGroupparent){Viewview=layoutInflater.inflate(R.layout.sortgridview_list_item,null);ImageViewimgv=(ImageView)view.findViewById(R.id.st_img);TextViewtv=(TextView)view.findViewById(R.id.st_tv);imgv.setBackgroundResource((Integer)(dataList.get(position).get("img")));tv.setText(dataList.get(position).get("tv").toString());returnview;

}□□□□□□ 7圖7菜譜分類Fig7foodclassify私信□□□□□□,□□□□□□□□□□□□□□□□□□□,□□□□□□□□□,□□□□□□□□□□ 8,

17:43]福貴演員:葛優(yōu)顯赫有錢家庭的長子,天性懶惰,嗜好賭博,把家產(chǎn)全輸了,被迫沿街賣線。17:43]福貴演員:葛優(yōu) Ml角色印象:懶惰豪賭財主

承。]的兒子貪婪悔改家珍家珍鞏俐福貴的妻子,與福貴風雨同舟相濡以沫,是福貴”活著”的一條重大精神支柱圖8私信溝通Fig8letterexchange注冊進入注冊頁面后,用戶填寫相應的資料選項,其中個人資料為選填信息。注冊頁面運行效果如圖9:

用戶名0密碼通郵箱個人資料頁 可選ET昵稱□電話只有你才能看到自己的電話號碼點擊繼續(xù),即表示你已經(jīng)閱讀并同意相關(guān)服務條款及隱私政策。注冊服務條款及隱私政策。圖9注冊Fig9regist.后臺數(shù)據(jù)處理端設計工程結(jié)構(gòu)分析后臺的工程結(jié)果如圖8:一爛寫「匚施>>用0

NrNKNrNr一施>>用0

NrNKNrNrobjectservletutilsMainTeit.javaBJRESystemLibrary[jdkl.7.u_45]■邑;JavaEE6Libraries■凰ReferencedLibrariesi>&libsl>■WebRoot圖10后臺工程結(jié)構(gòu)圖Fig10daemonprojectstructure與后臺數(shù)據(jù)庫交互后臺web端由java編寫,數(shù)據(jù)庫鏈接采用的JDBC的方式,JDBC(JavaDataBaseConnectivity,java數(shù)據(jù)庫連接)是一種用于執(zhí)行SQL語句的JavaAPI,可以為多種關(guān)系數(shù)據(jù)庫提供統(tǒng)一訪問,它由一組用Java語言編寫的類和接口組成。JDBC提供了一種基準,據(jù)此可以構(gòu)建更高級的工具和接口,使數(shù)據(jù)庫開發(fā)人員能夠編寫數(shù)據(jù)庫應用程序。所有與數(shù)據(jù)庫相關(guān)的操作都在dao包下面。用jdbc獲取數(shù)據(jù)庫鏈接方法:publicConnectiongetConnection(){if(myConnection==null){try{Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");Stringuri="jdbc:sqlserver://localhost:1433;DatabaseName=Myhaodou";myConnection=DriverManager.getConnection(uri,"sa","1234");}catch(ClassNotFoundExceptione){e.printStackTrace();}catch(SQLExceptione){e.printStackTrace();}}returnmyConnection;}第一步,加載鏈接驅(qū)動,鏈接驅(qū)動就是一個java類,由數(shù)據(jù)庫方提供。第二步,獲取鏈接,通過鏈接url和數(shù)據(jù)庫登錄的用戶名和密碼調(diào)用DriverManager.getConnection(uri,"sa","1234")獲得。與android客戶端數(shù)據(jù)交互與android客戶端數(shù)據(jù)交互主要用了servlet和json技術(shù),servlet是在服務器上運行的小程序。這個詞是在Javaapplet的環(huán)境中創(chuàng)造的,Javaapplet是一種當作單獨文件跟網(wǎng)頁一起發(fā)送的小程序,它通常用于在客戶端運行,結(jié)果得到為用戶進行運算或者根據(jù)用戶互作用定位圖形等服務。Android客戶端同httpclite訪問后臺的servlet,在servlet中的dopost或者doget方法中調(diào)用dao層獲取數(shù)據(jù)庫數(shù)據(jù)然后用阿里巴巴的fastjson框架將數(shù)據(jù)轉(zhuǎn)換為json字符串寫入到HttpServletRespons中PrintWriter流中。如客戶端登錄通過訪問LoginServlet,調(diào)用dopost方法,方法的具體實現(xiàn)如下:protectedvoiddoPost(HttpServletRequestreq,HttpServletResponseresp)throwsServletException,lOException{resp.setContentType("text/html;charset=utf-8");resp.setCharacterEncoding("utf-8");req.setCharacterEncoding("utf-8");PrintWriterout=resp.getWriter();Stringuname=req.getParameter("username");Stringpwd=req.getParameter("userpwd");UserInfoDBuserInfoDB=newUserInfoDB();UserInfoDatauserInfoData=newUserInfoData();intuid=userInfoDB.loginSuccess(uname,pwd);if(uid==-1)out.print("-1");else{userInfoData=userInfoDB.getUserInfoData();StringjStr=JSON.toJSONString(userInfoData);out.print(jStr);}}服務端接受到請求,統(tǒng)一編碼,獲取由android客戶端輸入的用戶名和密碼調(diào)用dao層userInfoDB.loginSuccess(uname,pwd)驗證用戶名和密碼是否與數(shù)據(jù)庫匹配,匹配錯誤就在PrintWriter輸入-1,同時android客戶端判斷從后臺取到的字符串并進行相應的判斷,如果匹配正確則調(diào)用userInfoDB.getUserInfoData()獲取此用戶相關(guān)信息。.總結(jié)通過對android系統(tǒng)的幾大層的分析以及android的幾大組件的了解和掌握增進了對于android應用開發(fā)的熟悉和整個android架構(gòu)的了解。經(jīng)過幾個月對本系統(tǒng)的設計與編碼,我學到了很多知識。在開始設計之前我對此無從下手,然后通過幾周的時間的對系統(tǒng)所要的技術(shù)學習和老師的耐心指導,開始對此有了一些模糊的概念,隨著設計一步步繼續(xù),逐漸對mdroid開發(fā)了解,□□□□□□□□□了解,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□很熟悉?!酢酢酢酢酢酢酢酢酢酢酢酢酢酢酢酢?□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□□□,□□□□□□□□□□□□□□□,□□,□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□□參考文獻[1]林信良.JSP&Servlet學習筆記 [M].北京:清華大學出版社 ,2012(4):200-210[2]李剛.瘋狂Android講義(第二版) [M].北京:電子工業(yè)出版社 .2013(3):120-130[3]劉京華.JavaWeb整合開發(fā)王者歸來 [M].北京:清華大學出版社 ,2010(8)[4]趙俊峰.JavaWeb應用開發(fā)案例教程:基于 MVC模式的JSP+Servlet+JDBC和AJA

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
  • 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論