Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 84 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
84
Dung lượng
1 MB
Nội dung
CHUDNG GIOI THICU DV AN 1.1 VII net vi smartphone tai Viet Nam Cac chuyen gia cola Google cho rang smartphone da trey mOt plan Icheong the thieu cuOc song vi hien tai ding dam mOt "cuOc cach mpg smartphone" Theo khao sat cola Google, so ngubi dimg smartphone di chiem den 20% din s6 COB Viet Nam thbi diem Ichio sat, tic quf I nam 2013 Nghien dm cola Google cho they 70% s6 ngubi duqc hOi tra lbi h9 si dung smartphone de truy cop Internet, 50% se kung bao gib reri khOi nhi mi khong ceo smartphone tay Dieu thy cho thay neu cac doanh nghiep hitt cic sir dung smartphone thich mOt phan cot lOi chi& Itrqc cis minh thi sa ket n6i vi tiep cAn duqc vii ngubi tieu ding mei Simon Kahn, Tting giam d6c Marketing Google chau A Thii Binh Ducmg (Chief Marketing Officer, Asia Pacific) cho bi& smartphone di thay d6i hanh vi ngubi tieu dung Theo khao sat cis Google, ceo den 92% ngubi dimg smartphone ce the lim nhieu viec cling lice Tai Dien din nap thi Truyen thong CMO Viet Nam nam 2013, doanh nhan cong nghe Bryan Pelz di khimg djnh, sox djch chuyen cia deri sting xi hOi vio Internet vi Mobile II tat yen Nam 2014, ngubi Viet Nam bit du e6 nhing buoy tien hon cong nghe tS, , le din se sir dung smartphone toi Viet Nam di lesirdungmatpho &gIce.TS tang len Iron 36%, gin gap dei so yea 20% cilia nam 2013, de gi6i tre to 16-24 tu6i chiem hon phan nth (58%), nhOm tu6i trung nien 35-44 tang 14% so v6i nam ngoitili 17% Trong tSr le ding may tinh bin (desktop PC) chi tang gin 5%, (fat 44% din so Una theo bing khao sat, Viet Nam dimg thit tong khu Arc Thing Nam A ve t6c dO dip tilling cong nghe mOi theo thj truing, chi sau Philippines Trong do, 59% ngubi Viet Nam chi ring cong nghe mOi mang den nhieu co hOi cho h9 hon rui ro Nhing so tang throng lac quan den to nhieu yeu t6, d6 chi yeu li thai dO lac quan, thich nghi nhanh vii cong nghe mai vi dO phi rung cola smartphone Ben earth de gia thrInh smartphone new cang re Phan khuc smartphone binh din hien rat da clang, gii 2-3 trieu &gig, um cc hOi cho m9i ngubi, bao gem h9c sinh sinh vier, ser hitu mOt chiec dien thotti thong minh tang mang t4i Viet Nam cG dO phi rOng [dip ngubi ding len inimg de ding a Dien Din Hiep HOi Mobile Marketing toi Viet Nam 2014 ngiy 30 thing 10 nam 2014 di dua nhUng s6 thong k8 An urgng vi smartphone tai Viet Nam Trong do: Viet Nam li thi truing smartphone c6 tec go phat thin I6n thir Chau A vi deng thbi ding la thj truing cry mirc dO ph6 bien smartphone I6n thin khu we Bong Nam A; Hinh 1.1: Mc phat trien thi Irwin smartphone tai Viet Nam Vietnam is the second most populated smartphone market in SA 34.3 tam a alb sae' n e Afikvst Hinh 1.2: 7:9 le sti dung smartphone plan theo khu virc thi vet ?Ong then tai Viet Nam 48.6% smartphone dimg hg dieu hi nh Android vi 19.7% dung hg dieu hanh IOS Hinh 1.3: Ty 1e smartphone phiin he cli& hanh tai Viet Nam O mOi lira tu6i, tS/ I sir dung smartphone co str khac biet Ian Trong cao nhAt la nh6m tu6i tir 15 den 29 tu6i Co 56,5% ngtrai dO Mei 20 — 24 tu6i dang so hftu smartphone Ty 'e se hut Smartphone moi Kra to Viet Nam tad 60.0 50.0 40.0 30.0 20.0 10.0 6.9 0.0 15-19 20-24 25-29 30-34 35-39 40-44 45-49 50-54 Hinh 1.4: TS, le so hail Smartphone o mai hia tudi tai Viet Nam Dan vi: Qua nhcmg s6 va th6ng ke tren day, co the thAy thi traang smartphone tai Viet Nam dang co stir tang truemg an Ming Nh(tng ngutri tre tu6i chiem cao nhat s6 nhOng ngtrai se hau smartphone Day cOng la Whom dal ttrqng c6 nhu c.Au 16n nhat lie hqc t#p va tich lily Icien that phoc vo cho cong viec, cho cic nhu au a nhan Doa tren nhttng ca se d6, hoan toan c,6 tient &Mg de phit then de ling dung hqc top tren smartphone 1.2 Tim quan cost TOEIC Trong nOi dung Inc tieng Anh ce the tom chia lim hai loci• Anh ngft hqc thu$t (dung de xin hoc bang, du hqc ) va Anh net giao tikp (sir dung thtrimg ngay, phoc vo cho nhu au tong viec ) NM ming hqc thutt la din truing cim hai loci chimg chi TOEFL (colt Vien Kiem djnh giio doc Hoa Kjr) va IELTS (cart DH Cambridge — Anh), thi ming giao tiep chimg chi TOEIC dang dOc chiem so cOng thin cim tin throng sir (long lao dung the gi6i TOEIC (cOng cart Vien Kiem djnh giio doc Hoa K5' cep) kh8ng yeu ciu qui cao lie cic kien thin, ma chi can ngutri hqc dat duce muc dick sir dung tiling Anh TOEIC da tra *it nhttng chuong trinh kiem tra Anh net quick to duqc nhieu nguai biet din n Han 70 tong cOng ty, c8ng ty, cic to chirc nuOc va nuOc ngoiti hoot &Ong t i Viet Nam di sir clung TOEIC nhu mOt lieu chart bat buOc cOng tic lieu chain hea vi tuyen dung cin 1)0 nhu: Samsung, LG, FPT, Nein hang Sii Gen Thuong tin, Vietnam Airlines Rieng linh voc cloy nghe, TOEIC Viet Nam phai hqp vai Ttmg coc Dor nghe )(ay dtmg thi diem lieu chain ye trinh dO sfr dung tieng Anh cho sinh vien nit nghiep hai nginh tin hoc va then dr twang cao ding Icy thurit Ngorli ra, mOt an turn to gifts TOEIC Viet Nam phei hqp voi BO GD-DT vi Tang clic Du ljch nhim dinh gii vi xly thing tieu chuin trinh dO sir dung tieng Anh thong qua chuong trinh chuttn TOEIC cling ducat trien khai Diem TOEIC duqc tit ca cic ca quan nhi nuac, t6 chin queic te, doanh nghiep nuOc ngoai va cic Sp doin kinh to curt Viet Nam Gang nh#n nhim &nit gii trinh ding Anh cim than so vai to cich la mOt thtrac chain va ding tin coy nhat 1.3 GM thiln ling dung luyin thi TOEIC train smartphone 1.3.1 Gidi Mien an dyng "Luyen thi TOEIC tren smartphone" II ling dung luyen thi ding Anh tren dies thooi c6 bao g6m day dit cic bai on tip vi de thi theo ciu trac mOt de thi TOEIC tieu chat Ong cluing duqc thiet Ice veri lieu chi nho gcm, sir dung a Ng clung duqc 18p trinh bang engine Cocos2d-X, li engine trq lip trinh Game da nen tang: Mobile (I05, ANDROID, Blackberry, TIZEN, WP) Window, MacOS, HTML5 la engine duqc dinh gii moth, da phit triers nhieu Game nam TOP cart Appstore, CHPlay Uu diem chi tiet ciut Cocos2d-X duqc trinh bay tai chuung tea Ithea 14n Cocos2d-X la m0 engine mien phi, von Cocos2d-X tic gia c6 the )(ay dyng mOt img dyng luyen thi TOEIC WA uu diem vuqt trOi: —Dung lucmg thip (thip nhit c6 the la 1.5MB), khong drai hOi phien ban phin mem di dOng qua cao Dieu se giep ngubi sir dyng c6 the cii at ung dyng ma thong can qua lo ling ve hi) nhe hay du hinh cea dien thoai —Ong dung chay da nen tang, vier code mOt lin, chay duqc cho nhieu h'e thin khic NM de, tac gia till kiem &gm thin gian, chi phi va tang hien qua sir dyng vi twang thich von nhieu he dieu hanh khic nhau, c6 the chay tren nhieu ding smartphone Tir d6, tac gia mong muOn se dui sin phim luyen thi TOEIC tat nhit tren smartphone v6i chi phi va nguOn lyc thip nhit L3.2 Lai tech cda sing dyng luyen thi TOEIC trim smartphone Huang dao to thyc dyng nhu TOEIC c6 thin gian tnmg birth de c6 the thi lay chimg chi la khoitng 18 twin cho den nilm, phi thuOc vac fling lyc ngubi lye, mac diem muc tieu vi 300400 diem di duqc xem la "pass — dat" cho den 990 diem Ong dung luyen thi TOEIC tren smartphone se la Ong cu hem fch cho ngubi hoc vi nheng uu diem sau day: —De se' dung, tiet kiem then gian va chi phi Vi qua tranh luyen thi duqc thyc hien qua dien thoai, nen tiet kiem duqc nhUng khans; thin gian ma ngubi hqc phii lieu ten di chuyen den trung Ulm va di vi Nhiiu ngubi can mat nhieu thin gian de di den cac trtmg tam nim xa Nguiri sir dung c6 the chit dOng sip xep hoc tranh the thing khoang thei gian ninh n6i ngiy de hqc t$p Ong dung duqc cii chit tren dien thoai, lien dung va kherng did Uri qua nhieu ve mot khong gian vi thin gian deti von ngubi sir dyng —Tinh ling dung va linh hot Luyen thi TOEIC chi bao gem ky Wing nghe hien vi dqc hieu, rat phi hqp tan khai tren smartphone Thyc to ngubi hoe thubng copy cite bai nghe Tieng Anh vac dien thoai de c6 the sir dung mqi ncri, thong phi thuOc vito may tinh hay internet, sach v6 Vin (mg dyng luyen thi TOEIC, ngubi hqc holm town cit the chi can sir dung chiic dien thogi nhu mOt giao tranh he top hien qua Ngoii ra, tinh img dung vi linh host the hien mi diem nguiri dung co the Wen thi ma khong can mang quit nhieu Si lieu theo nguei CM vii chiec dien thoai nhe gqn, ngtrei sir dung co the bit dill bid hgc mgi dja diem vi thin gian, khong bj phu thuOc theo met then khoa bieu cg the Tinh linh hog the hien fir djnh hues% vi fir dieu chinh — Txr djnh hueng vi dieu chinh Trong qui trinh luyen tip, nimbi dung co the fir djnh huUng cho minh, Ming cich chgn khea bee ph4 hqp nhit d6i viii trinh dO, so thich, mix tieu cua bin than, dieu ray khic phuc dugc cic han the luyen thi the lap hgc vi thing tam trinh dO hgc vien khong ding deu Nprei hgc cOng chi dOng fir dieu chinh nhjp dieu khea hgc cho minh, ngbia li co the hgc chin hay nhanh thin gian minh ty sip xep hay thing tiep thu Iden thirc ala mirth CHUCING COCOS2D-X ENGINE 2.1 Gild thilu ve Cocos2d-X 2.1.1 Sir 141 cda Cocos2d-X vd lick sir ph& trim Thing nlim 2008, tai thj tan "Los Cocos" gin Cordoba ar Argentina, Ricardo Quesada, met nha phit trien trO chai da tao met ding cu tr6 chai 2D cong vei nhom coa mInh Ho at ten cho no la "Los Cocos" MOt thing sau, thorn phit hanh phien ban 0.1 va dOi ten "Cocos2d" Thing 11 Sim 2010, mot nhOm nha phit trien tfr Trung ()MSc la Walzer Wang, Minggo Zhang, James Chen va cOng su tfr ChuKong Technologies da phit trien Cocos2dX din teen Cocos2d ChuKong Technologies la tong ty hang diu ve nen tang, giai tri di dOng, vOi dei ngii hon 800 nhan vien, ngculi tru sir chinh tai Bic Kinh, Chu Kong cling c6 van pheng tai Menlo Park (USA), Tokyo (Japan), Seoul (Korea), va Taipei (Taiwan) Cocos2d-X la mot cong cu ma nguen m6 theo gay pile') MIT MIT la loci gay ph6p ' sir dung cho ctic phtm mem, cic ma ngu6n mer dirqc phit trien dtra tenmet loci gitty phop co ngtilin &tic tai Vien Ding nghe Massachusetts (Mn') Minh 2.1: Mo hinh phdt trier Cocos2d X - Cocos2d-X xuit xir to g6c li Cocos2d, engine game 2D viet tren Python, nhien da duqc vOn chuyen sang rat nhilu neon nip khk, thu het nhieu ngtrai sir dung tren the gi6i, nhieu nhit li ban Cocos2d-X danh cho iOS Cocos2d-X 11 ban port duqc vier bing C-FE, thay vi Objective-C nhu bin g6c, nut de ma nguei lop trinh c6 the xay dung game tren nhieu he may chi bling lin code, cic he may bao gam Windows, Linux, Mac, iOS va Android Cocos2d-X di chiem duqc su ling hO 16n giai game developer to phat hanh Cocos2d-X c6 the ducrc sir dung di xay dung the Ire chai, ling dung vi c.ac chuang trinh tuang tic dtra tren nen tang giao dies khic Cocos2d-X la engine duqc se dung rung rai tren town the gi6i, v6i hart 400.000 nhi phit trien, bao gam cit cac nhit phat tan ctia the tr6 chai ding Top 10 ten the store 16n Whit the giai nhu AppStore, GooglePlay Store Ngay nay, nhieu nguai Cocos2d-X cac tr6 chcri thong tri bang xep hang Top doanh thu eta AppStore vi Google Play, &lc biet la Trung Quec, Han Quec vi Nhot Bin Ck Icy su to Chukong, Google, Microsoft, ARM, Intel vi BlackBerry dang tich cue them gia xay dung along ding Cocos2d-X Nhitng ten Si 16n nhu Zynga, Wooga, Glu, IGG, Big Fish Games, Fingersoft, Gamevil, GREE, DeNA, Konami, CT E & M, MIN, LINE, Square Enix, a sir dung Cocos2d-X de phat trien tr6 chai cult hq Tom tit Lich sty ph& thin cim Cocos2d-X: —Nam 2010: Thing nam 2010, du an Cocos2d-X duqc din vi den thing 11 duqc phit birth phien ban 0.7.0 —Nam 2011: + Thing nam 2011, Cocos2d-X phien bin chinh thirc du tien duqc ph& hanh + Thing nam 2011, tro chai FishingJoy duqc ported tren Android + Thing 10 nam 2011, thiet lop plan mem Coco, du to bOi Chukong + Thing 11 nam 2011, chiem vi tri thin va thir tr6 chai Appstore —Nam 2012: + Thing nam 2012, mit Cocos2d-html5 + Thing nam 2012, phat hanh v2.0 Cocos2d-X + Than nam 2012, Ichai dung Cocos Studio + Than nam 2012, Cocos2d-X chiem se 10 tr6 chai hang dAu co doanh thu cao nhAt a Trung Quec 10 —Nim 2013: + Thing nim 2013, Cocos2d-X chiem s610 tr6 chai hang dau c6 doanh thu cao !that Trung Quec, vi tri himg diu cho ci iPhone vi Wad + Thin ram 2013, sich Cocos2d-X duct mat bin + Thing nim 2013, game c6 doanh thu cao nhat tai Him Queic Google Play Store phit trier tir Cocos2d-X + Thing 10 nim 2013, tic gii cua Cocos2d-iphone gia nhop Chukong + Thing 11 nim 2013, Cocos2d-X chiem tren 10 vi tri hang diu trip chai ce doanh thu cao nit& tai Hin Qua& Google Play Store —Nim 2014: + Thing nam 2014, Cocos2d-X chi& 11 vi tri hang du de trip chai c6 doanh thu cao nhit WeChat 2.1.2 Tgi igi ding Cocos2d-X 2.1.2.1 Liu diim cua Cocos2d-X —Cocos2d-X la mOt engine da nen tang Day li mOt lqi the rat len cos Cocos2d-X mi game lim az.) the chay tren cic nen Ling !chic nhu Linux, Mac, Windows 8, Android, iOS, Windows Phone 8, BlackBerry hay ci HTML5 biet, t$p trung vio ba nen tang di dOng ph6 bien da to nen sat hap din cua engine ma thi phin tic thiet bi di dOng dan dang chiem linh may tinh ci nhan Hien tai, Cocos2d-X trq tic nhi phit trien game tren tic nem nga nhu C++, Javascript vi Lua tren tic Ong cu 1#p trinh ph6 Bien vi dy nhu Xcode, Visual Studio, ho#c Eclipse Deng thbi no cho phip tic nhi phit tan game tren tic he dieu hanh khic vi chuyin sang tic nen tang khic khOng may kW khan Chinh viec h6 trq the nen ting cho PC phuc At qui trinh xiy citing game, vsl Wing build cho nen ling di dOng ph6 bien 'that dA to nen sot hip din c6a Cocos2d-X —Chi tiet cic nen tin h6 trq: + iOS 5.0 trh len cho tic trip chai iPhone / iPad + Android 2.3 tra len cho tic fro chai Android + Windows Phone fro len cho tic fro chili WP + OS X v10.6 tra len cho tic trip chili Mac 11 + Windows tro len cho cac tr6 chai may tinh Windows —La met enine ma nguan ma Cocos2d-X hoan toan open source, ngutri sfr ding co the lam bit IcY dieu gi yeti code tha no, vi cling co the deng gop vao framework neu de giup Cocos2d-X phat trien hem Cocos2d-X dugc xay dung hoan town bai cong deng phat then game, hoan Wan mien phi, luen luon duce chinh sfra, phat trien, tom be ma nguan caa Cocos2d-X c6 the tai tren trang chu cita Cocos2d-X —Cocos2d-X la met engine c6 hieu suit cao Vai nen tang chit yeu huang den cac thiet bj di deng, day la yeu t6 hang dan ma met Engine di deng can phai dam boo, vi thiet bj di dOng co rat nhieu can hinh khac Duce xay dung tren nen tang d6 hoa OpenGL va ngon ngft lap trinh Javascript, Lua, nen Cocos2d-X co hieu suit kha cao, chay dirge tren ca nhCmg thiet bj ciu hinh rat thap cua Android Dac biet dung lugng xuit file cai dot cho cac nen tang kha gen nhg so veri mat bang chung cua cac Engine khk Tren the nen tang di deng, Cocos2d-X td r3 lqi the cult minh von de ttrcmg thich cao cho: Android, iOs, Windows Phone Val cac nen tang nay, hoa don trung birth, chay tren ciu hinh di dOng tam game, ling dung yeti khoi hrgng trung hien nay, c6 the dot dirge 60FPS — met se kha cao ma nhieu engine khic kh6 c6 the dot &we a —Da dirge kiem thing ben cOng dong Tinh den thtri diem hien tai, co hang tram nghln game da dirge phat trien doa tren nen tang Cocos2d-X de c6 nhung game n6i bat nhu Diamond Dash, Fishing Joy 25% game 2D tren store ctia AppStore va Google Play Store sir dung Cocos2d-X Hien tai, Viet Nam, kha nhieu thong ty cling dang sir dung engine c6 nhieu ding ty nhu GSN, Egame, Afoli —Nhieu cong co h6 trq + Engine vat ly: hai Engine thuong sir ding Cocos2d-X de me pheng cac quy the vat ly game la Chipmunk va Box2D Khi nhac den Box2D chung to Idiong the nito kh8ng nhic den Angry Brids, Box2D cling deng thei cung cap cac ham vat IY lien quan den gia t6c, t6c dO, trcong loc coa tn& d6i tugng de ngtrei chai c6 cam giac giOng vii thus to nhit co the Con Chipmunk mac dit mei dirge phat trien Al day nhung ve tinh 'tang cling khong thua kern gi so voi Box2D 12 4.3.2 Danh sack Sc bdng viz mo td Lim di s6 dia figiteri dung sau kin thi the! Bang 4.1: Mo to cac bang ca so' chi lieu 4.3.3 Cdc bang dfr lieu 4.3.3.1 Bang Subject a Cali true bang Ten trite fp , I1icu tlir lice s 11ii c (1 11 )1)1 (1) subjectID IMO ) non subjectName Varchar(30) (11111 Khong 6a chinh Tit tang b t nghia cua cac gia tri —subjectlD: Gia tri cda kh6a chinh djnh danh, gia trj duce sinh tit dOng —subjectName: Mo to ten mon hoc ho4c 72 4.3.3.2 Bang Topic a Cau tree bang Kier' dir lieu Ten tritiniv, hie d inh Kluia Chu pliep Nil I I topicID hit( 11) Kheng 6a chinh typelD Int(3) Khong Khea ngoai Content Text ImgUrl Varchar(50) Co SoundUrl Varchar(50) C6 Totalques Int(1) Khong It b.t nghia cac gia tri — topiclD: Gia tcj kh6a chinh dinh danh, gia tri duqc sinh to dOng — typelD: gia tri khea ngoai lay tir bang Type dung de xac (filth the loai cim mon thi — content: china nei dung de bli (nett co) — imgUrl: chim lien ket ten tep tin hinh Anh tren server duqc sir dung de bai — SoundUrl: chin lien ket tai tep tin am tren server duqc sir dung de bai — Totalques: china tong s6 cau hod trac nghiem sir dung chung de bAi 4.3.3.3 Bang Type a Cau tree bang Ten tr116112 Met! dii lieu Chu phut) Al I.I ) 15 c d in h Int(3) subjectlD Int(3) tYPeName Varchar(50) b lir nghla cfic gia tri — typelD: gia tri khea chinh dinh danh, gii tri duqc sinh ttr dOng — subjectID: gia tri khea ngoai lay tir bang Subject &mg de xac dinh mon thi tuong (mg — typeName: dien gal ten the loci img vesi mon hqc 73 4.3.3.4 Bang MCQ a Cau true bang "Fen Kieu dir him ( ho phip questionffl Kli o a Kitting KhiSa c Khong Int(11) Khea ngoai \lac Minh : topicID Int(11) Question Varchar(200) Kheng A Varchar(55) CO Varchar(55) C6 Varchar(55) Topic.topicID Co C Varchar(55) Answer - Int(1) Khong b t nghTa cac gia tri — questionID: Gia tri djnh danh khea chinh, gia tri &roc sink tg dOng — topicID: Gia tri khoa ngoai lay tir bang topicID dimg xac dinh de bai tuong CEng — Question: Chira nOi dung cau hoi tric nghiem — A, B, C, D: Chua nOi dung cau tra Itri —Answer: VOri met s6 de bai, dap an duqc doe nOi dung bai nghe, nen trat ttr dm dap an khong the thay d6i Gia tri bang -1 (mg tied cau h6i dap an kh6ng bj c6 djnh de bai 4.3.3.5 Bang User a Cau true bang Ten 111E0112 Kicu dfi lieu (110 phcp AI 1 Email Datetime 'tic (filth UNIQUE Varchar(50) Khong Joined khira Gia he th6ng Khong 74 b t nghia cat gia tri — userlD: Gia tri djnh danh kh6a chinh, gia tri duqc sinh tu do, ng — email: Ten tai khoan cua ngutri dung Gia tri la nhat va khOng phan biet chic hoa thutmg — password: Mat khau clang nhap cua ngutri dung da duqc ma him bang mang barn MD5 — Joined: Ngay clang ky tai khoan Thtri giand dang ky ducce lay yeti gia tren Server 4.3.3.6 Bang History a a Cutrue bang Ten truong Mica ben ('ho pliep At LL dish Mina Id IMO 1) ►Ong 6a Chinh UserID Int(11) Khong Kb:5a ngoai Score Int(4) Datetime Khong g Itheng Time Tv User.userID Gitt hg tilting / b N nghia cac gia tri — ID: Gia tri djnh danh kh6a chinh, gia tri to dOng tang — UserID: Gia tri kh6a ngoai lay dr bang UserID clUng de xfic djnh user tucmg img — Score: Diem s6 nguta dung sau holm tat bai thi — Time: Th6i diem ngutri dimg hoan tat bai thi Then gian duqc lay theo gia tren Server 4.4 CM d$t 4.4.1 Lyra atm mei truning — Ng8n ngil lap trinh: + Native: C++ + Android : Java + Los: Objective C — Cong cu phat trien lap trinh: + Native: Visual Studio 2012 + Android: Eclipse Indigo Service Release 75 + LOS: Xcode — Android SDK — IOS SDK — Cywin 4.4.2 Yeu du du kink chi a#1 he Mang — Thiel bi sir dung he dieu hanh IOS (phien ban 5.0 ire; len) hoac he dieu hanh Android (phien ban 2.3 ire! len) — Dung lugng 130 niter kha dung t61 thieu: 256Mb — RAM: 256Mb hoac cao han 76 CH1YONG 'CET LU4N VA DJNH HISONG PRAT TRIEN 5.1 Ket qui dat dirge Sau thai gian tier hanh du an, tac gia dA lap trinh tong de tai cua minh vai san pham la img dung hfru ich "Luyen thi TOEIC tren dien thoai di (ging" — chucmg trinh bao gem day di' the phan fir ly thuyet den thuc hanh yen cac phan nOi dung kha chi tiet, eau hei da clang, phong phu Chucmg trinh khong chi giap ngueri sir dung luyen thi TOEIC ma can giop luyen nghe tieng Anh tat ham ten thief bj smartphone — Cu the cac ket qua dat duqc nhu sau: + Xing dung luyen thi co day du cac phan de nguai sir dung hoc tap theo tieu chuin vi eau true bai thi TOEIC + Ngoiti nOi dung luyen thi, img dung co the tao cac bai thi thir theo ding tieu chain bai thi TOEIC Day la diem khac biet caa img dung so yeti cac san pham khk ve luyen thi TOEIC tren smartphone dA duct phat hanh truk de tren thj twang + San phim co dung luqng nhe (-2.5mb) rat phu hqp voti cai dat tren smartphone + San pham c6 du lieu dOng, nhCmg update ve du lieu duqc cap nhat bang viec download ttr server ve may, khong can phai update phie'n ban maxi cua img dung Liu diem la nguai sir dung c6 the cap nhat dft lieu nhanh thong, khong can qua trung gian ben thir 5.2 Dinh hirOng phit then a Hoin thien ang dung Ling dung se co than gian chay thu nghiem nham lay y kien danh gia cua nguai sir dung Tir Lk gia se tang hqp cac Iai va hoan thien img dung Viec chay thir la can thiet, giftp tac gia cai thien ling dung cho dap ung cao nhat cac nhu au Gila nguai sir dung Ben canh de, img dung can hoan thien ve mat du lieu de cung cap cho nguai dimg mOt chucmg trinh luyen thi co nOi dung phong phi! nhat Do vay, tee gia se chit y dua cac bin cap nhat du lieu phi' hqp vai nhCmg thay doi nOi dung dm bai thi b Da dang hea san pham Thanh citing Gila ling dung la ea so de tic gia tiep tuc cac an ve cac chuong trinh hoc tap, luyen thi tic nghiem tren smartphone Ling dung luyen thi TOEIC la nen tang ca 77 ban, tir d6 tic gia co the ma rang hem va mo hinh va thiet ke cac san pham incti vii tinh nang tucmg ty Sin pham dip img you eau cac mon hoc c6 nOi dung thi frac nghiem Vi du: Luyen thi dai hoc cac mon thi trac nghiem; cac phan thi tic nghiem cia chuong trinh TOEFL hose IELTS c Tang tinh bao mat du lieu D8 lieu c6 the cap nhat bang viec download tir server a may se gay rui ro ve that thoat dit lieu, d6 da lieu se de" ding bi chap danh cap Vi vay sin pham ducic bao ye, tic gia can tinh den phuong in ma hoa dit lieu dam bao bio mat dir lieu a Ben canh 46, de tang them tinh bao mat, an tinh den bao mat dft lieu i khau nhap du lieu len he thong Vi vay can thiet c6 chuong trinh try nha cung cap nhap der lieu len server gill!, tang tinh bao mat vi an town da lieu Sau hoan thien co ban irng dung, tac gia se nghien cuu tim hieu xay dung chuong trinh rieng de nhap da lieu Dieu khong chi phuc vu cho dy an san pham Luyen thi TOEIC ma can phuc vu cho cac du in sau di ve chuong trinh luyen thi frac nghiem tren smartphone d Dua img dung len cac kho img dung Dye tuyen MOt img dung den duce yin ngueri dung nhanh nhat thi an phai dua len cac kho fing dung true tuyen nhu CH play vi cac Apps strore Day la nhIIrng kho true tiep de ngtesi ding mua hoac tai img dung Ngoai viec dau Or de dua img dung len cac kho tare tuyen, thai gian Mu ding can phai quang cao yeti ban be de to met cong dang nguti sir dung, beci vi met Inv dung c6 so luqt tai vi danh gia cao se thu but ngtrei sir dung hon 78 PHD LUC — CODE MOT se CH& NANG CH1NH Chat nang kiem tra kit not mang 1.1 Native code a Giri you cau kiem tra ket not mang ten eic thiet bi void PlatformInterface::callOutCheckNetworkConnection () Document document; Document::AllocatorType& allocator = document.GetAllocator(); Value objParams(kArrayType); Value objPost(kObjectType); objPost.AddMember("functionName", THIRTPARTY CHECK INTERNECT, allocator); objPost.AddMember("params", objParams, allocator); //convert to json string StringBuffer strbuf; Writer writer(strbuf); objPost.Accept(writer); string strPostData = strbuf.GetString(); PlatformInterface::getIns()->callOut(strPostData.c str()); ] b Nhan ket qua tra ve bool PlatformInterface::callOutIsNetworkAvailible() callOutCheckNetworkConnection(); return isNetworkAvailable; 1.2 Android code boolean isNetworkConnectionAvailable() ( (ConnectivityManager) cm ConnectivityManager getSystemService(Context.CONNECTIVITY SERVICE); Networkinfo info = cm.getActiveNetworkInfo(); if (info == null) return false; State network = info.getState(); 79 == return (network == Networklnfo.State.CONNECTED II network NetworkInfo.State.CONNECTING); 1.3 IOS code BOOL networkReachable() struct sockaddr in zeroAddress; bzero(&zeroAddress, sizeof(zeroAddress)); zeroAddress.sin_len = sizeof(zeroAddress); zeroAddress.sin_family = AF INET; reachabilityRef SCNetworkReachabilitYRef SCNetworkReachabilityCreateWithAddress(kCFAllocatorDefault , (constru kad*)&zeroAs; SCNetworkReachabilityFlags flags; if (SCNetworkReachabilityGetFlags(reachabilityRef, &flags)) ( if ((flags & kSCNetworkReachabilityFlagsReachable) == 0) // if target host is not reachable return NO; if ((flags & kSCNetworkReachabilityFlagsConnectionRequired) == 0) // if target host is reachable and no connection is required // then we'll assume (for now) that your on Wi-Fi return YES; // This is a wifi connection if ((((flags & kSCNetworkReachabilityFlagsConnectionOnDemand ) != 0) II(flags & kSCNetworkReachabilitYFlagsConnectionOnTraffic) != 0)) // and the connection is on-demand (or on-traffic) if the calling application is using the CFSocketStream or // higher APIs if ((flags & kSCNetworkReachabilitYllagsInterventionRequired) == 0) ( // and no (user] intervention is needed return YES; // This is a wifi connection 80 kSCNetworkReachabilityFlagsIsWWAN) & ((flags if kSCNetworkReachabilityFlagsIsWWAN) ( // but WWAN connections are OK if the calling application // is using the CFNetwork (CFSocketStream?) APIs return YES; // This is a cellular connection I return NO; I ChuningkiemtratiiteptinveghivalobOnhtfrsirdyngHttpRequest a thriyeucau void ImageUr1LoaderUtil::downLoadFile( std::string url, CCObject* target ,SEL CallFunc0 fuac, std::string tag ) ImageUr1LoaderUtil* loader = new ImageUr1LoaderUtil(); loader->retain(); loader->target = target; loader->selector = func; loader->tag = tag; CCHttpRequest* request = new CCHttpRequest(); request->setUrl(url.c str()); request->setRequestType(CCHttpRequest::kHttpGet); request->setResponseCallback(loader, callfuncND selector(ImageUr1LoaderUtil::onHttpDownLoadRequestCo mpleted)); request->setTag(tag.c str()); CCHttpClient::getInstance() - >send(request); request->release(); b Nhan phin hoi tir Server void Download::downloadFileCallBackComplete( CCObject* obj ) AsyncData* aData = (AsyncData*)obj; if(aData->error == 200 ) if(writeFile(aData->data, aData->size, aData->tag.c str())) 81 ErrorDowload* errorDowload = new ErrorDowload(); errorDowload->fileName = this->tag.c str(); errorDowload->index = this->index; (target->*selector)(errorDowload); else I returnError(aData); c Ghi tip tin vao 60 nith bool Download::writeFile( unsigned char* data, long fileName ) size, const char* I std::string filePath; filePath = CCFileUtils::sharedFileUtils() - >getWritablePath() fileName; FILE *fp = fopen(filePath.c str(), "wb+"); //CCLog("1 d sizeof data", sizeof(*data)); if(fp) I [write (data , sizeof(unsigned char), size, fp); fclose(fp); return true; CCLog("thu muc ko ton tai"); return false; Chtic niing ttio da thi a Tao toan bel de thi void FullTest::generateToeicTest() I //Lay du lieu moi part vao m vListQuestionlD tuong ung for (int i = 0; i < 7; i++) 82 for (int j = 0; j < ToeicData::getIns()->s_vDatari].size(); j++) mvListQuestionIDM.push_back(ToeicData::getIns() >svDat[i].(j); //Tao de thi to m vListQuestionID for (int i = 0; i < 7; i++) std::vector data = m vListQuestionID(i]; switch (i) default: break; case 0: generateToeicTest(10, data); break; case 1: generateToeicTest(30, data); break; case 2: generateToeicTest(10, data); break; case 3: generateToeicTest(10, data); break; case 4: generateToeicTest(40, data); break; case 5: generateToeicTest(4, data); break; case 6: int totalQs = 0; int ran = rand() 83 data.size(); int questionID = data.at(ran); Value &IkData = ConfigLoaderngetInstance() >1kReadi n g; Conf gLoader::getInstance() - &val Value >getItem(lkData, ran); if (totalQs >= 43) if (val("numn).GetInt() + totalQs == 47) continue; I totalQs +- val("num").GetInt(); pushAllQuestionDataInTopicFromJsonToDataTemp(questionID); data.erase(data.begin() + ran); I while (totalQs < 48); break; I I b Lay a bai ngau nhien cu s& dU ligu void FullTest::generateToeicTest( int num, std::vector &data ) for (int j = 0; j < num; j++) int ran = rand() % data.size(); int questioniD = data.at(ran); pushAllQuestionDataInTopicFromJsonToDataTemp(guestionID); data.erase(data.begin() + ran); I I c Dua de bai vio b0 nit tam void MCQBase::pushAllQuestionDataInTopicFtomJsonToDataTemp( int questionID ) int totalQuestion getTotalQuestionInTopicByQuestionID(questionID); int topiciD getTopicIDByQuestionID(questionID); int searchFirst = questionlD - totalQuestion; if(searchFlrst < 0) 84 searchFirst = 0; Value 61kData - Con f igLoader: : getIns Canoe ()->IkReading; int temp = 0; for (int i = sea rchFirst; i c questionID + totalQuestion; i++) temp++; if (temp totalQuestion + 1) break; Value 6va = ConfigLoader:: getlnstance (1 ->getItem ( lkData , i); if (topiciD )- val ("id") GetInt 0) temp ; continue; QuestionItem qsData; //Client qsData setChoice (-1); //14C4 qsData setQuestion (val ("qs").GetString () ) ; qsData.setAnswerA(val("a") GetString O ) ; qsData.setAnswerB(val "b" j GetString O); qsData.setAnswerC (val("c") GetString (I I ; qsDa ta setAnswerD (val("d") GetS [ring O); qsData setAnswer (val(mans") Getlnt ) ; //Topic qsData setTopicID(val ("id") Getlnt ) ; qsDa ta setTotalQuestion (val ("num") Getlnt ; qsDa ta setImageURL (vat( "img") GetString ) ; qsDa ta setSoundURL (val( "sound") GetString O); qsData set Topi cContent (val ("txt").GetString ()); qsData.setTopicType (val ("type") Getlnt O); if (qsData.getAnswer () -1) sortData (qsData); m vDataTemp.push back (qsData); 85 TAI LIEU THAM ICHAO Sich Jeff McWherter va Scott Gowell, Professional Mobile Application Development, Wrox, 2012 Packt, 2013 Roger Engelbert, Cocos2d-X by Example Beginner's Guide, Cocos2d-X Game Frahaan Hussain, Arutosh Gurung va Gareth Jones, Development Essentials, Packt, 2014 Website htto://www.Cocos2d-X.ora/ httos://developer.android.comitools/sdkindk/index.html 86 ... sin phim luyen thi TOEIC tat nhit tren smartphone v6i chi phi va nguOn lyc thip nhit L3.2 Lai tech cda sing dyng luyen thi TOEIC trim smartphone Huang dao to thyc dyng nhu TOEIC c6 thin gian tnmg... chin hay nhanh thin gian minh ty sip xep hay thing tiep thu Iden thirc ala mirth CHUCING COCOS2D-X ENGINE 2.1 Gild thilu ve Cocos2d-X 2.1.1 Sir 141 cda Cocos2d-X vd lick sir ph& trim Thing nlim 2008,... chain va ding tin coy nhat 1.3 GM thiln ling dung luyin thi TOEIC train smartphone 1.3.1 Gidi Mien an dyng "Luyen thi TOEIC tren smartphone" II ling dung luyen thi ding Anh tren dies thooi c6 bao