Android移動(dòng)應(yīng)用開(kāi)發(fā)中數(shù)據(jù)流量控制技術(shù)的研究應(yīng)用
本文選題:數(shù)據(jù)交換格式 切入點(diǎn):JPEG算法 出處:《內(nèi)蒙古師范大學(xué)》2014年碩士論文
【摘要】:由于Android手機(jī)市場(chǎng)的迅速發(fā)展,在Android下的移動(dòng)應(yīng)用開(kāi)發(fā)具有巨大的商業(yè)前景與發(fā)展空間,越來(lái)越多軟件開(kāi)發(fā)者開(kāi)始轉(zhuǎn)向Android移動(dòng)應(yīng)用開(kāi)發(fā)。在移動(dòng)應(yīng)用開(kāi)發(fā)時(shí),如何能有效地通過(guò)對(duì)數(shù)據(jù)的處理來(lái)盡量降低移動(dòng)應(yīng)用對(duì)用戶造成的手機(jī)流量消耗成為移動(dòng)應(yīng)用開(kāi)發(fā)的關(guān)注點(diǎn)。本文主要從減少Android移動(dòng)應(yīng)用對(duì)用戶手機(jī)流量消耗的角度,對(duì)Android移動(dòng)應(yīng)用開(kāi)發(fā)中數(shù)據(jù)處理技術(shù)進(jìn)行了研究。 從文本數(shù)據(jù)的角度出發(fā),對(duì)結(jié)構(gòu)化、存儲(chǔ)、傳輸數(shù)據(jù)的XML、JSON兩種數(shù)據(jù)交換格式進(jìn)行了分析對(duì)比。研究了兩種數(shù)據(jù)交換格式的語(yǔ)法結(jié)構(gòu)、解析原理、解析效率以及Android下解析這兩種數(shù)據(jù)交換格式的方法。實(shí)驗(yàn)表明,在Android應(yīng)用開(kāi)發(fā)中對(duì)于節(jié)點(diǎn)元素多的文本數(shù)據(jù),使用JSON格式進(jìn)行組織傳輸在數(shù)據(jù)占用空間,解析效率上比使用XML格式具有優(yōu)勢(shì);在節(jié)點(diǎn)數(shù)據(jù)少時(shí),XML格式的數(shù)據(jù)在Android下解析效率優(yōu)于JSON數(shù)據(jù)的解析。實(shí)驗(yàn)分析可以得出移動(dòng)應(yīng)用開(kāi)發(fā)時(shí)如果采用合適的數(shù)據(jù)格式組織文本內(nèi)容能夠降低數(shù)據(jù)冗余,不僅能夠提高移動(dòng)應(yīng)用的反應(yīng)效率,并且能夠達(dá)到減少移動(dòng)應(yīng)用對(duì)用戶造成的手機(jī)流量消耗的目的。 從圖像數(shù)據(jù)角度出發(fā),對(duì)Android API中處理圖像的類以及國(guó)際上通用的JPEG算法進(jìn)行了研究。采用Android API對(duì)圖片進(jìn)行壓縮預(yù)處理,并對(duì)預(yù)處理圖片進(jìn)行顏色轉(zhuǎn)換、FDCT變換、量化、編碼等操作,實(shí)現(xiàn)了在Android平臺(tái)下的JPEG圖像壓縮編碼過(guò)程,達(dá)到了在Android移動(dòng)應(yīng)用開(kāi)發(fā)中對(duì)圖片快速高效地壓縮處理的目的。同時(shí),研究實(shí)現(xiàn)了移動(dòng)應(yīng)用開(kāi)發(fā)中使用的網(wǎng)絡(luò)圖片磁盤與內(nèi)存的雙緩存技術(shù),將用戶通過(guò)網(wǎng)絡(luò)訪問(wèn)到的圖片文件保存至緩存中。并通過(guò)搭建實(shí)驗(yàn)平臺(tái)對(duì)以上兩種方法進(jìn)行了測(cè)試。實(shí)驗(yàn)結(jié)果表明,通過(guò)對(duì)圖像的JPEG壓縮處理,大大減小了圖像文件的占用空間,從而很大程度上降低了用戶上傳圖片文件所造成的手機(jī)流量消耗;圖片緩存能夠緩存用戶下載的圖片,避免了用戶操作移動(dòng)應(yīng)用對(duì)網(wǎng)絡(luò)圖片的重復(fù)下載。在Android移動(dòng)應(yīng)用開(kāi)發(fā)中,若采用以上方法能在很大程度上控制手機(jī)數(shù)據(jù)流量消耗。
[Abstract]:Due to the rapid development of Android mobile phone market , mobile application development under Android has huge business prospect and development space , and more and more software developers have begun to turn to Android mobile application development . How to reduce mobile application ' s mobile phone flow consumption to users can be reduced as much as possible in mobile application development .
In this paper , the XML and JSON data formats of structured , stored and transmitted data are analyzed and compared from the point of view of text data . The syntax structure , analytical principle , analytic efficiency and the method of resolving these two data interchange formats are studied in this paper .
When the node data is small , the parsing efficiency of XML - formatted data is better than that of JSON data under Android . The experimental analysis can conclude that when the mobile application development is adopted , the data redundancy can be reduced if a suitable data format organization text content is adopted , so that the reaction efficiency of the mobile application can be improved , and the purpose of reducing the mobile phone flow consumption caused by the mobile application to the user can be achieved .
This paper studies the processing of image in Android API and the general JPEG algorithm in the world from image data angle . The image compression and encoding process is carried out by using the Android API , and the image file accessed by the user is stored in the buffer . The results show that the image file can be compressed by JPEG compression , which greatly reduces the space occupied by the image file , thus greatly reducing the consumption of the mobile phone caused by the image file uploading by the user .
In the Android mobile application development , if the above method is adopted , the data flow consumption of the mobile phone can be controlled to a great extent .
【學(xué)位授予單位】:內(nèi)蒙古師范大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:TP393.06
【參考文獻(xiàn)】
相關(guān)期刊論文 前8條
1 張?jiān)獋?劉彥隆;;基于JPEG標(biāo)準(zhǔn)的靜態(tài)圖像壓縮算法研究[J];電子設(shè)計(jì)工程;2010年02期
2 馮進(jìn);丁博;史殿習(xí);張矚熹;許凱;;XML解析技術(shù)研究[J];計(jì)算機(jī)工程與科學(xué);2009年02期
3 萬(wàn)智萍;;基于小波變換與視覺(jué)敏感特性的圖像壓縮算法研究[J];紅外技術(shù);2013年03期
4 劉山;李憲彬;;運(yùn)營(yíng)商移動(dòng)互聯(lián)網(wǎng)業(yè)務(wù)發(fā)展分析[J];信息通信技術(shù);2011年04期
5 欒詠紅;;基于Android的XML解析器的分析與比較[J];南京曉莊學(xué)院學(xué)報(bào);2011年06期
6 李世軍;;JPEG圖像壓縮編碼算法的DSP優(yōu)化實(shí)現(xiàn)[J];微計(jì)算機(jī)信息;2012年09期
7 張敏海;吳新開(kāi);張婷婷;;基于JPEG壓縮編碼算法的數(shù)字圖像處理系統(tǒng)[J];計(jì)算機(jī)系統(tǒng)應(yīng)用;2012年10期
8 余磊;李磊;崔建明;陳新華;;基于FPGA的JPEG壓縮編碼設(shè)計(jì)與實(shí)現(xiàn)[J];微型機(jī)與應(yīng)用;2012年21期
,本文編號(hào):1668342
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1668342.html