Insertar vídeo

  • Published on
    31-Jul-2015

  • View
    38

  • Download
    3

Embed Size (px)

Transcript

1. CETiS i9Gamma icgaaam Gllaiia Mana GEZ8QJILQ HammdlszRum Y mp9; 4P Dasanmlia Aplicasiaacs MVJP Mwsftra Margariw Rqmam Aivaradla 2. . km-ADT a : m Run San:dano:Hmgate Sufh mm N-ndcw ne,ma.anusnapu 5 JwiPvqm CpmFie.L mauappiaxscnvmjm#3 gzcaine':9mm- * 1,56,abrca nel prgfazma2;? cita Ecclnpsce,a Qual 8 mane- amcuarra 11 la Carpa-s; f Jzvi V-cringSct *ab cescclqwrmlhhsa F5 mi Cmumluebduirssc v Lrdmkr Ana KM.5':> 1 m ZF-Em Pce dm clic 111. la. mahm-pcam dna NW7o gbgh 6m la sigw TProject Name:i InsenarVideoPackage Name:t comexampleinsertervideo Minimum Requred SDK:7 API 8: Andrcid 2.2 (Froyo) v| / o n f,. API17: Android 42 Ueliy Bean) v|4.) E @ "dava www/ a 1 8V 14h l QVJ WV@ @ .API 17: Android 42 (JeJIy Bean) v|f;: Holo Light ma.Dari:Action Bar v] QQgTLL i (1 CL-l le a shown in the Play Stura a5 well as in the Manag:Application Iist in Settings.3M LTLQS zzsrlwcm:SO= SICCLQS la.133116111,zzitrwem:a neste vemtagliaa a T113 ,17 . g,e 121.15 4. malnsertaMdeo/ res/ Iaym/ actixtygrxa: muni ADTv{ PackageEvplmsr ZA15A:nInsertarVdeng?src genfv:2 3: i:F Android 4.2E;Android Dependmcis Eg- assets bnun: n t;{E5 drawablehdpi5 drawable-Idp. ,: drawable-mdp5 drawable-xhdpi5 drawablexxhdpi 4 5 Iayou activtygmainxml 5 menu5 values5 vaIues-snuwdp5 vaius-swndp-land5 values-vll5 values-v14 a AndrodManfestxmI a.iglauncher-wekmpng _,proguard-prajectmprojectpropertiesr lv _.qpo). I lll 'activty_main. xml '. le'sion= 1."' e]i?5.3 Li xwln andwdflaycut and'cd: laycut and-oidzlaycut andwidzd andrcidf cut_. . and-cid :iaycut andwidzla] l l lCreate a nera falda ruourte. Ente:or sded the parent folder.lnsertarVideo/ res4hsenarlfldeo .5- senings.5 assets bnil 9m [Generated lava Flles] j libs;res srcFolde:name:rawl Advanced >>m Lei6F Nes vemes e aree:pregama y dlemes elle SCSCIIILIIIGaITLO,epereeer rum reeueelre dlemdle Ile elememes ellfle e211 mew, 7F Deslzemes Illegale OIIIIGG;dice 1FIldlm K8F Deepues salldm ma mueva ventenne dlemele eeerlbremee eIl nemlbre ele Ile camelie elemele Ile eelglmeremes ell memlbre dle vzmw:,,y al funall eleremes eIlie eim Fimlslm 5. ma41:7RelllmhmNrviptruvdhhujuVdztflndw}hbg._ :,-.7 3.0.4131 -.3 .i x .n;;.. E Hhdagewbru.Z v , 4 r va'_lnseahndeu43W: _ fijcrenr mi hyt'fftfr'a - comumpkmsetzrvd: h :u-ja:"videoie.' *">. = natzhyrent ' 51t-'ru: _cM! :nt' MITE :llu_g'iay'l'tti"__9.- Nos iremos a la pxgna de activnltyjnamamnl y escbmmos estc cdlago. 6. vL l.. H II PacHgeE [lJPl Lv;lnacrtarVldeo svr. " gen - Andronddl . - Andvold Dependencm f azms hml dvawable-hdpt l duwable-Idpl duwable-mdpl dvawable-xhdpn 1 dvawahle-xxhdpn 4 L,Iayout I actwrty_maun. xml l menu rawl nume: I VaIUeS-SVIvGOOdp _ va| ues-sw720dpIandg;values-vlll;values-vl4 7 AndroldManestxml a.lc_| auncher-web. png L pYOgUBfd-[JVUJECNX l;pvojettpropertiesv vz as-ovou 'adrvvt_; _mann. xm| jGraphncallamm E actmt'_ Problemi Andreld= SC1= Javadoc v > Equlpo b IGNGSTONlEL) D Ivlusxta v rspwuuol v u} Bxbholecas Capcul r D ummm (Ines - Sale u lmagenes And 56m., Musnca lOMmV-l w H Vndeos ro!rupe en cl hugar. - Equlpo2 Dnscnlncallm_ KINGSTON (Ez) 4' Semestre 20 Programas Beta (e115 Examen Examenu FONDOSi D MusrcaurDrv:j_ GTS5301L . vndeompdL ltgma oDDMs 7. 4m - lnserfarVIeo/ srg/ Zbm/ exarrlple/ nserarvdeo/ Manllclviqjgva - ADTFile Edl Run Source Navigate Seavch Project Refamr Window Help fvn t. G. l? 4'" Pali 1ha E l adivfv manxmlr: l. g al?V c! l} Packege Explom E"?'11 Mainmhzbmjava I_" paekage convuexample. insertarvideo; U hmmvld import mdroidmppulctivity;4 U 5K import undroidJppmrogressnhlog;4 {l} comgamplginsgnnwidg l import audroidmediamdiaiayer;m MnMnWkyd-mzaggnxlaiediulluyer.0nPrep| redListener; li!l Iv l I l l ' ' 9" l x a m a1--* Androw 1233 alaiillogV1i Andwid DEPHWK import audroidmidsetMedlacontroller; N ma:import mdroidmidgetJ/ ldeoview; l . bh:public class minActivity extends Activity { 4 94- rasprivate Videoview myvideoview; x f Ifwblfhdpi private int position =0;]. dnwnble-Idpi private Progressmalog progressblulog; d dnmmrmdp;private mdiuontroller mediacontrols; l;drawable-xndpi Mue deL3 d"'wb''hd9' llA protected void oncreateinal Eundle savedInstanceState) {A l} l'19 l super. oncreate(savedlnstancestate);r;actvityjnanaanlG mm p se:the rrain laycut cl the aitiuit,E m settontentviewl. layoutmctivityjnain);Emu use:the Media ccnt'clle' buttarti dV3l95'5W6dP if {medacontrols = = null) l.3 values-svldp-Iand Igvalues-vl 1 fj _E valueufroblemsl @ lav-ad-oc l{Ieclarahonj E Console E. q AndroidManstxmlM5K jelauncherzwehnnuv m5 H. v g12s zleeglieea SCJLQbZLZEQS eIsigieznxze eeeige e mnlzeetlgQgALEM 8. .m-bsni: nLncwiYy_eumwiZapyanJdxqpa-_ADT Remmmhmnzngansammmrsapmwmmwp*: - ;a:-: - r t-ovqv 16' : -- 35D idvyjvenmv rxamxmnrgzama j 1 1 v n u 4 4:amxcigx; gli)K rediitmtrcls - ma lediafmmzriktvitynis); immdn lS av5 "" "W"AVfiWMH"'"W"" 1 60: 7l7@111s a mgur cescribicezmc 10s CCCgOSOg lndmlu : ': 5 : ' 13' n:'.:;:5 ;aro; s;D; i;. sVttT'tie'Ja-za{odeis And-cd vide-c vien Exausple);:rrmua1d'-od. rescu'te: :_" + gzthdxghn) '0' o lLo-aunvdzon; ;,. ,,_ mm (manda-u e_ LDE-VV-T".i-mi 5 vmgm emrrrbdncel : 9. 140m Cm1m1a111@s @sribi@: nc rms ''' 559' 5m "' E;haLnl lMaInAchvIlyyva _CCgOS m.LLSZLQO : :: ::: ::: ::: :*: ;rm" myvdeovlru.mrq );pmgrazgnao) else ry'/1deoview. pause( ); .m " rw m} rlAndrocdll n;) PII Andmid Depmdmciuussts ) l ;bin h b,A bublic void onsavelnstancestnte(Bundle slvedlnstancestnte) { L m _ super. onsavelnstnncestatdsavedlnstanccstntt);u?d"w3hkhdp' E .5 : " " " e i:50: ha ade:pia tzm fa" Yltaltu change . : dnwbltldp savedlnstancestate. putlnt( Posto ,nyvideovim.getCurrentPositonO ) ;l:dyawgblg-mdpi nyvideovennpausq) ;_ .3 dnwablemdp ,j drawablemldpi Lde 1 L IWW A ublit vod onRestoreInstancestateundle savedlnstancestate) {actvtyjnainml super. onRestoreInstanceState(savedlnstancestate);E L;ma, "Re se State F. . la;t":video playback.WF the szcred pcsitcn E m posftmn . = savedlnstanfetate. getInt("Post1on'); ma ) M1de0V1ew. seekTo(pos1t1ou) ;l 5 values-svboodp .jvalues-smdpland I y Ijjvalues-vll r, ,_, , ' Pmmm G landa: DedamtiovuEConsok 1:: 10. 15v; - pmauwcwmwudmcucwmaammxypva - ADTFileEdit Run- val3?Packaqeimlorer L, nNew GelatoOpen in New VndowOpen Type l-aarchy Show In Copy{CoPY Qualica Name PasteX Delele E? Buld Palh Source RefadarInlpovt. .. Expovt. .. RefnshClose Project Assign Worldng Sets. ..Run A5Debug As Prvle A5 VadateTeam Compare WthRstorefmm Loca!Hovy. ..Android ToolsPropeties' 3 svv. 15G a > Z _ Aawctility 113mm! MainActivityjava iii ' ; eturn true;H ic void calcular (vien view){ EditText d1=(EditText) findVewById Edityexg d2=(EditText) findveuyld F E73? 5' r= (TextView) fndViewById ( Ah,5hi, w) Radiouttan radioutton) ndvie RadioButton r1=(RadoButton) findvie CmoC donhle nldaublmparseboubLe(dLget double nZ-Double. parseDoubLe(d2.getT Cuhv double sunamesta;9 if(r0.isChecked()= -true){ suna= n1+n2;r. setText(String.vatueosuna) );AItvShiftoS r } A"*5"""7'ischecked()= =true){ restaxnl-nz;r.setTexString.vaLue0f( resta) );} F5 i> 7 lAndroid Application iv J.ZAndroidJUntTstvSlave Applet AmShifhxA Uava Application Ah+5bh+X, J0 Jn lUnitest Alt+5hift+XT,Run Conigurations. ..DAlhEnlerScure:Navigate Search Project Reactor Window Help 1 l= s