版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、A n d r o id應(yīng)用程序開(kāi)發(fā)實(shí)驗(yàn)報(bào)告號(hào):131006105學(xué)生姓名:馮會(huì)會(huì)指導(dǎo)教師:齊兵輝提交時(shí)間:2015、1 1、10錯(cuò)誤!未定義書(shū)簽。目錄第一章系統(tǒng)分析與設(shè)計(jì)1、1系統(tǒng)得可行性分析 ?錯(cuò)誤!未定義書(shū)簽。1、2系統(tǒng)得需求分析?錯(cuò)誤!未定義書(shū)簽。第.章系統(tǒng)詳細(xì)設(shè)計(jì)錯(cuò)誤!未定義書(shū)簽。2、1 ACT IVITY得詳細(xì)設(shè)計(jì) ?錯(cuò)誤!未定義書(shū)簽。2、2 XML文件得詳細(xì)設(shè)計(jì) 錯(cuò)誤!未定義書(shū)簽。第三章測(cè)試運(yùn)行及總結(jié)錯(cuò)誤!未定義書(shū)簽。3、1界面截圖錯(cuò)誤!未定義書(shū)簽。3、2運(yùn)行界面截圖?錯(cuò)誤!未定義書(shū)簽。3、3運(yùn)行結(jié)果截圖錯(cuò)誤!未定義書(shū)簽。3、4總結(jié)?錯(cuò)誤!未定義書(shū)簽。第一章系統(tǒng)分析與設(shè)計(jì)1系統(tǒng)得
2、可行性分析所以,進(jìn)經(jīng)過(guò)最初得設(shè)計(jì)目標(biāo)與進(jìn)可行性研究就是為了弄清楚系統(tǒng)開(kāi)發(fā)得項(xiàng)目就是不就是可以實(shí)現(xiàn)與值得進(jìn) 行研究得過(guò)程,實(shí)際上就是一次大大簡(jiǎn)化系統(tǒng)分析與系統(tǒng)設(shè)計(jì)得過(guò)程, 行可執(zhí)行性得分析就是非常必要得, 也就是很重要得, 行得實(shí)時(shí)調(diào)查得出以下四點(diǎn)得可行性分析:得技術(shù)已經(jīng)較為成熟,通 動(dòng)態(tài)得 JAVA語(yǔ)言進(jìn)行(1)技術(shù)可行性:Eclipse + A n droi d ADT 過(guò)S UN公司(現(xiàn)被O RCEL公司收購(gòu))推出得跨平臺(tái)、開(kāi)發(fā)。(2) 運(yùn)行可行性:該系統(tǒng)需要Andr o i d虛擬機(jī)環(huán)境,Ec l ip se中安裝AD T, DDMS等Google An droid相關(guān)插件.其運(yùn)行環(huán)境已
3、經(jīng)相當(dāng)穩(wěn)定,它功能豐富, 包括了完備得A ndroid程序得編碼、調(diào)試、測(cè)試與發(fā)布功能,其中支持所有A n droid應(yīng)用開(kāi)發(fā)相關(guān)技術(shù),包括SQLit e ,Sk i a ,3D制作,A n droid XML,能夠很好 得發(fā)布A ndro id得應(yīng)用程序A PK包。(3) 法律可行性: 因?yàn)榫褪亲灾鏖_(kāi)發(fā)設(shè)計(jì) ,所以不會(huì)構(gòu)成侵權(quán) ,在法律上就是 可行得。通過(guò)以上得可行性分析 將采用Ecl 1 pse+ A n dro l d A DT + D DMS技 術(shù),運(yùn)用JAV A語(yǔ)言進(jìn)行系統(tǒng)得開(kāi)發(fā)。2 系統(tǒng)得需求分析根據(jù)分析需求 ,這個(gè)系統(tǒng)必須實(shí)現(xiàn)以下得功能 : (1)實(shí)現(xiàn)簡(jiǎn)單得數(shù)字計(jì)算功能.作為計(jì)算
4、器,其核心就就是加減乘除。( 2) 能夠在手機(jī)里面以良好得界面。系統(tǒng)詳細(xì)設(shè)計(jì)2、1 a cti vlt y得詳細(xì)設(shè)計(jì)p ac k a ge 、e xampi e、cou nt er ;i m port an dr o id、os、Eu nd 1 e;i mp o r t androi d、a pp、Ac t ivity1 mp o r t a n dro id、 vi e w、Men u ;i m port a nd r o1 d、 v1 ew、 V1e w;imp ort and r o id、 vie w、View、On Clic kL iste n e r ;i mpo rtand r
5、oid 、w 1 d g et、 Butt on;i m por ta ndr o1 d、w idget 、T ext View ;pu b1 ic class M ainAct 1 vit y e x t e nd s Activit y pr iv at e T ex t V i e w textV 1 ew 1 = null ;pr 1 vate B u tton buttonzon e = nul 1 ;pri vate B u tt o n butto n 1 = n ull ; ?pr 1 va te Bu t to n but ton2 = nu1 l ;privat e Bu
6、t t o n but t o n3 = nu1 l ; ?private Butto n butto n 4 = null ;p r ivate B ut to n b u tton 5= null?privateButto n button6 = nul 1 ;?pr1 vate B ut to n bu t t o n7 = null ; ?p riv a te Butto n but t on8 = nu11 ;priv a te?pr iva t e ButButt onb utton 9t on buttonadd= null= null ;pr i vat e ?privat e
7、 But ? p rivateBut ton buttonrednul l;t on b ut t o n div= nul l ;bu t to n mul = null ;Bu tt on?p r iv a teBu t t onbut tonpin t = null ;pr i va ?pri va t ?p riv ate ?prit e Butto n butto n babuttong e n = butt o ne qualV ate String x =""e But t onButto ni = nul l ; n ul l ;= n ull ;priv
8、a te?priVa t eS tr in g y ="" double r1 =0;private?private i nOverridedou bl e r2 = 0;= 0;p rotectedvois u p er 、on C reaonCrea te ( B t e( s avedI nundle sa vedIt anceState);?set Co nten t?textVi ew 1 =butt on?but t on2 = (But? but to n 3 =ew( R、 layou Text V iew )f 1 = (B u tton) t on )
9、findVi(Butt on)fVit、 ac t i v it?but?button?buttonn s t anceS t ate ) y_ma、 id 、n) ;t extView 1 );b ut to n1 );indVie wB yld(Rnd View B yId(R 、 id 、e wByld(R 、 id 、 bu tt on2) ;indVi e wBy Id(R、id、b u tt o n 3 );B utton ) fi5= ( Bu t to n)f indV ibu t t on 6 = (Bu tt on)find7=( B utt o n) findbut t
10、on8 =( But t ot t o n9 = ( B utt o n)fon4 =n dViewByI d( R、 id 、 button4 ) ;V ien) findVewB yId (R、 i d、 but ton5 ) ;V ie wB y I d(R、id、b utton6 ); wB yI d (R 、 id 、 button7 ) ;?b ut t onzone = (B utton)f=( Bu tto n )=( Button)f= (Bu t t o n)butt o naddb utt o nr ed?but t onmulindVie w ById(R 、 id 、
11、 b ut t on8);i ew ByI d( R、 id 、 button9 );i ndVi e wByI d(R、 id、butt o n0);fi ndV i e wBy I d( R、 id 、 bu tt o nadindViewById(R、 id、 butto nred);indVie wB yId(R 、 id 、 b uttonmul ) ;d) ;n )f in dVi e wB yId (R 、 id 、 bu tto ndi n) f indVie w ByI d(R、 i d、 bu ttonba i )find V i e wB yId(R 、 id 、 b u
12、t tongen );?b ut to n e q ua l =( Butt o n )fi n d V iewById( R、i d、buttonpint =( But ton )find V iewById(R 、 id 、 button?butt on 1、se tOnCl i ck L iste ner( n ew On Cli c kListe ner(but tondi?bu t tonb aibut ton gen? OV err ide(ButtoButto(B uttonV) ;);b utt one qu al );point );)?pu blic voi d o n C
13、lick(?/ TODO Au to ge?x=x+”1”;View ar g0) neratedmet h o d stub?y=y ”1”;? textView 1、s et T ext?);?button 2、s et On Cl i ck L is t ener( n ew O nC1ic kList?Ove rrid e?public v oi d o nClick ( Vi ew a rg0)? /TOD O A ut o -g e neratedme thodstub? X =x+" 2"?y=y+” 2"? ?teX tView1 、 setTex
14、t ( y) ;?);?b u tton3、s e t On Click L i st en e r( n ew On C lic kLi?Ov errid e?pu blicv oi d on C l ic k (Vie war gO )?/ / T OD O A ut o g en erated metho d s tub?X=x+"3 ”;?y=y"3 " ;?tex tVi ew1、 set T ext( y);?);?button4、se t OnC lickListener( new OnC lickL iste?Ove rri d e?publicv
15、 oid on C li ck( Vi ewar gO) ?/ TODOAu t og ener at edme th o d stu b?x = X +" 4";?y=y+"4";?textV i ew 1、 setT eX t ( y);?) ;?button5、 se t On ClickL i stene r(new OnCli ckListee ne r()tenerne r()n e r()Overridei(V iew argO )d onC 1 ick?p u blic vo?/ TO DOA utogen e rated m et h
16、o duby = y +"6 "?x=x+" 5 "?teX tV i ew1、setT ext(y);?);but to n6 、setOnCli ckListener(n ew O n Cl?Overr id e?p ub 1icvoid onCli c k (Vi ew arg O)?/TOD O Aut ogenerat ed method stub?X=X +” 6”;5”;i c k Li s tener?y= y +"()?text V iew 1、set T ext? );? bu t t on 7、se tO nCI ickL
17、is t ene r(n C li ck L istener ()?Override?Pu bIicV oi d onCIck (View ag0)/TO DOAu t oge ne rat ed met hod st u b? tex?x = x+ ”7"y =y +" 7 "t Vi ew1 、setText ( y)?but t o n8、setOnCIickL is te nerne wO nClick Lis te ner() ?OV err i de?pu b licvoido n Click(Vi e wa rg 0)?/ TODO Aut o-g
18、en era ted met h od stub? x=x+8?y =y+"8" ;? t e X tView 1、setT e xt ( y);? ) ;?button9 、 setO n Cli c kListener ( n ew OnC lic kListe ne r()?OV er r ide?pu bli c v o i d onClic k( View ar g 0)?bu?publ?/ TODO Au t o g e ne ry=y+"9 ”?tonzo?OVerrc vo iTOD Oate dm ethod stubte Xt View1 、
19、setText(e、 set On Cl ickListeded o nCli c k(V i ew ay) ;ne r(Aut o- g en e rated method st?X=x+"0”;? y =y +"0 ?teX tView 1 、s e t Te X t( y);new OnCubi c kL i stene r( );?bu ttonpnt 、s etOnC lickLi s tenerneOnClc kLi s t en er()?/ TO DO Au to -gen e ratedmethod stubif ( x= = " )?OV er
20、ride?Pub lic vo i do n Click(Vi ewarg0)? x=0+ 、 " +""?y=0 +、 "+”els e x=x+、 ”? ?y =y+"text V iew1 、 setTe X t ( y) ;? );buttonequal、s etOn C lickListe ner( new OnC 1 i ck L i s te ne r ( ) ?Overri?pub 1 icV o i d on ClickView a rg0) /TODO Au to-g en e rated met hod st u b? i
21、fx!="”) ? r 2=Dou b le、pare Doub1e(X);?x=”swi tch (i )? ca s e0:textVew1、ex t( 0+ ”") ;? bre ak;?case?tex t Vie wl 、setT ex t( r1 +r2 )+);?ca se2:?bre ak ;?t eX tView l 、 set?c a se 3:b reak ;?tex t Vi ew1、 set T eX t?cas e?br e?ca se 5 :?br eak ;4:?t e xt View1 、ak ;teX t V i ew 1、? b rek
22、;e1 se ?t eX tx="Text ( r(r1 r2 )- r2 )+ "" );+”set TeXt(r1/r2) ;setText ( r1 % r2 )+"");Vi ew1 、 setT e x t( 0+" );? y =""?r1 =0 ;? r2 =0 ;i=0;?x=y=?);?butt o n a d d、se tO nCli c kLi s tener(n e wO nCli c kL i sten)?Ov errid e?/?pub l ic voi d TODO Auto-geno
23、n C lick(V i ewe rate d m ethodrg 0)st u b?i?( X != "" )r 1 = Do uble、 pareDoube(x) ;x=”"y=y+" ;te X t V i e w1、setText(y);=1;e Is e ?t extVi e w1 、 se tText0+"”);) ;b utt on red 、 se t OnCl ickLis t enernew On C lickLis tener(?Overri d e?public vo i d onClick(Vie?/ T OD O A
24、u t o-generate?if( x!=?textV?i =2;?e?textV?w argd method s1=Do uble、 parx=”y=yew1II.+”- se ew1 、eDoubl、 se tT e xt (setTe X t (0y );+" ”);0) ube( x ) ;? )?butt onmul 、 setO nCl ickLisen e rne w OnCick Ls ten e rOv eride? ?/p u bTOli cvoidonClic k( VieDOo-gen erat e dw arg0)method stu?ifx!="
25、;)?r1=Dou b l e、 parseDouble?X =""?bu ttongen 、 setO n ClickLstene r ( new On C lickL i stene r () ?b?t extVi ei = 3;w1、s e t T ex t( y);?e lse? t extVie w 1、setT eX t(0 +?utton div、set On C li c kList en er ( ne w OnCl ick Li st en e r ()?i?Ove rridpubli c?/?V oid onC 1 ick (ViewTODO Aut
26、o- gen eratedm)r1 =Dou b 1? y =y+”te X t V iew1/;=4;?e1sa rg0 )ethod stube 、 parseDou blet Text( y );e(textVie w 1 、 setT e xt(0 + ”?buttonaiset O nCli c kLis tener(n ew OnC1 ick L i s t e n er ()?Over r id e?void onC 1 ickpubl?/ TOD O A uto genera tedViewarg 0 )met h od st?if (x! ="" )? r
27、 1 = D ou b le、 pa rse Doublx);y = y +” %;"? t e xtView1 、 setTexti =5;? e1s e ?t e xtView 1、se tTe xt(0 +”");? );? Override0)? ifpublic void? / TODO (x!="”) ? y=” 1/+? textView1onClick(View argA uto- g ene r a t ed me t ho d、setT e x t( y );st u b” 0"?r1 = 1/(Doub 1 e、 pa rse D
28、o u ble (x);X =r 1 +"?e 1 se ?text V iew1、s e t T e xt ( 0+"");?);?Overridepublb ooleano n C re a te O ptio n sM e n u(M enumenu ) / Inflatet he me nu ; t his addsitemso th e ac tion bar ifi t is pes e nt 、?g e tMenI n f1 a ter() 、in f late(Rmene nu) ;tur n true ;2、2ml文件得詳細(xì)設(shè)計(jì)<G r i
29、 dL ay o utxmln s :a nd roid =xm1ns:too 1s=an droi d:l a yout_w 1dt h = ” w rap_cont ent”andr oi d :and roid:orientayout_he a ti o1 ght ="wrap_c on n="horizont a1”tent ”andr o i d: layo u t_gra vity =” center ”androi d : co lum n Count ="5"a ndroi d : r owC ou nt ="5 ”t o o
30、1s : c on text= " 、Mai nActivi tyTeX tViewand r oid: id = id/textVew1an dro 1 d :androidla y out_ w idt hl a you t _hei g ht= "230dp"="3 0 d p"androi d :la yo ut_c o lu m n =a ndro 1 d: 1 ayout_colum n Span = ” 5andr o id : la y out_ro w =”0an d roi d: grav 1t y="right&
31、quot;and roi d :t e xt = ” string/res u l t”andr o id :textSize ="25s p "/>< Buttonand r oid: i d=" i dbu t ton7"st yle =”?and roid:att/butt onStyleSm al 1androandid: layout_column = ” r oid :l a you t _gr a vi0t y="left |t op "and ro idan dr oid: layou t _row = &
32、quot;1" t ext =” string seleven"< B Utt o nandroidid =” +id/bu t ton 8s ty 1= "?and roi d: at tr/bu tt on StyleSmal 1r oi d: l a y o u t _ col umn="1"androidy ou t _gr av i t y = "l e ft|top"a ndroid:lan d roid:texa yout_r ow ="t = ”string/eight1"” /?&
33、lt;But tonan d r oi d:i d =" + id/ b Uttn9style =?androi d:a ttr/buttoS tyleSma 1 l"andro i d:lay android:layouo ut_column2"t _gr avity ="left|top"an droid:lay out_ r ow=1"? Butt o nan dro i d:text = "string/nine"/>andr o i d: i d =+id/b uttond iv”st y le =
34、”?android : attr/buttonStyle an droid : layo ut co 1 umn= ” 3Smal 1”an dr oid:laandr oid:layoy out_gr a vityt row ="left|to p"a ndr oi d:text="stri ng/div/><Bu ttona nd roid: i d= ”+id/b ut t onbaist y1e ="?android :a ttr buttonS t y leS m al 1 "andr oid:l a yout_c o l
35、 u mn=4"andr oid :laandr oid:layy o ut _gravity =" left | ou t_r o w= ”to p "1"androd:t ex t = "st rng/bai" B uttonndoid:id”+i d/buton4"? Bu ttons ty 1e”?andro id: att/butto nSt y1 eSmall”andro id: laya nd roid:layouan dr o id:layouo ut_ c olu mt _ g ra V i t y =&q
36、uot;l e ft_row = "2"an droi d: i d=" + i d/ bu t ton 5"top"and ro i d: text = ”stri ng/four"/style =”? andro id:at t r/bu t t onSt y leSm al 1 "and r oid:l a yout c olumn = ”1an droid : 1 a yo ut gravtop andr oi d: l a you t _ro w= "2" a ndr oid:text”s tr
37、ing/five ”/? < But t onandroid : id ="+idbuttons t yle =" ?aid :at trbuttonStyleSmala nd r o i d: layutco lumnan d roid: lay ot_ gravity ="left I topan d roid :row ="2 ”a ndroidlayout:t ex t = "str i ng / sx" / ? <But to nan dr oi d :id ="+ i d/butt onmustyl
38、e =" ?andr oi d:att r/ b utt onStyleSm all android : la y out_column =" 3”an dr oi d:1 ayo ut _grav i ty=Te ft|t op”andro i d: layou t _r o w="2"an d roid: tex t=”string/mulBut tonandr oid:id =” +id/ b uttoen ”styl e? andr o i d:attr/butto n S t y leS mal 1”a ndrod :1ay o ut _co
39、1umn="4IIan droiandr od :layo u t_g r av i t y =" le row = ” 2”d :layoutand ro id : text =”stri ng g en? <Butto nandroid:id ="+ i d/button 1styleandroid :att r/buton S tan doi d :1 ayout_columand roid :1ay o ut_gr a vitandr oid:layout row =3"a ndroi d:text< But tonandroi: i
40、d ="+id/bstyle” ?android:androidy out_ndoidayouandoi d:anoid:t<Buttondroi d:t|t o” /n = ” 0"p”y leSma 1 l ”y = ” 1 eft I top ” s tring/oneu tt on2 "" />at t r/ bu tto nSt yleSma 1 l"co1 umn=" 1"t _gravi t y="left | t o p "ayo utro w = " 3 "
41、;e xt ="str i ng/t w o" / >id =" id/but t on3"t yle ="?and r oid :andro i d:a t tr/b utto nSt yleSma11" layou t _c ol u mn="2 "androiandroid:android: l a yo u t gravity l ayo u t_ r ow= 3” d : te xt = str= let|top"< But to nand r oid :id ="+id/
42、buttonresty l e = " ? a n dro i d:attg/three"d”but toand r oi d: l ayo u t _colum n”3/>n St yle Smal l”android:la yout_gr avityleft|top"a ndr oi d: layoutrow =” 3androi= "str i ng/red"? But tonandroidid ="+id/bu ttonequalIIs t yle?and r oid:attr/a ndro id:1 ayou t _w
43、 i dt h ="5ttonStydpS m all"a ndro i d:ay o ut_cou m n= "4a n droid : layout_gravty =”f il_verticaa nd ro id : layo ut_row= 3"andr oi d: l ayout_row Span =2an d roid:te X t = ” st ri ng/e q ual /Buttonandroi d: id = id/butt on 0style ="? an droid :attr/ b utt o n Style S mall"androiandro ia ndroid :la y o u t col u mn="d:layo ut gr a vi ty =d: l a yout_ r ow=" 4 ”0 ”fi ll ”a ndroid :l a yout_columnSpan =”2Butstan d roid:te X t ="strng/z one ” / >ond r oi
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 二零二五年度高校特設(shè)教授崗位聘任標(biāo)準(zhǔn)合同4篇
- 二零二五年度廚房設(shè)備維修保養(yǎng)合作協(xié)議2篇
- 23年-24年員工三級(jí)安全培訓(xùn)考試題附參考答案AB卷
- 2023年-2024年員工三級(jí)安全培訓(xùn)考試題及參考答案(突破訓(xùn)練)
- 旅游業(yè)務(wù)居間服務(wù)傭金協(xié)議
- 美術(shù)館裝修合同終止
- 2025年單組份PVC扣板膠行業(yè)深度研究分析報(bào)告
- 2024河南塑料加工專用設(shè)備制造市場(chǎng)前景及投資研究報(bào)告
- 2022-2027年中國(guó)退燒藥行業(yè)市場(chǎng)深度分析及投資戰(zhàn)略規(guī)劃研究報(bào)告
- 2020-2025年中國(guó)高端白酒行業(yè)發(fā)展趨勢(shì)預(yù)測(cè)及投資戰(zhàn)略咨詢報(bào)告
- 專題2-2十三種高考補(bǔ)充函數(shù)歸類(lèi)(講練)
- 理光投影機(jī)pj k360功能介紹
- 六年級(jí)數(shù)學(xué)上冊(cè)100道口算題(全冊(cè)完整版)
- 八年級(jí)數(shù)學(xué)下冊(cè)《第十九章 一次函數(shù)》單元檢測(cè)卷帶答案-人教版
- 帕薩特B5維修手冊(cè)及帕薩特B5全車(chē)電路圖
- 系統(tǒng)解剖學(xué)考試重點(diǎn)筆記
- 小學(xué)五年級(jí)解方程應(yīng)用題6
- 云南省地圖含市縣地圖矢量分層地圖行政區(qū)劃市縣概況ppt模板
- 年月江西省南昌市某綜合樓工程造價(jià)指標(biāo)及
- 暖通空調(diào)基礎(chǔ)知識(shí)及識(shí)圖課件
- 作物栽培學(xué)課件棉花
評(píng)論
0/150
提交評(píng)論