Professional Documents
Culture Documents
at the
M O B ! " M O # D $%
D E V E L O P E R D AY
& 2d2
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
Sven Woltmann
+t'died /o&p'ter +0ien0e at the .1 l&ena') 1223-1222 12 (ear 4a,a e5perien0e) 26 (ears total progra&&ing e5perien0e Fo'nded se,eral start-'ps together with Fabien 78hlinger De,eloped se,eral prod'0ts) whi0h are still in 'se toda( 4oined $ndroidP . in $'g'st 2002 De,eloped a new /M+ for the $ndroidP . website De,eloped the $ndroidP . $pp
"-&ail: s,en.wolt&ann9androidpit.de
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
AndroidPIT (www.androidpit.de)
Dail( test reports :; 300< Dail( news /o&&'nit( :; =.000 &e&bers< For'& :; *)000 topi0s< -iki Market apps database :; *0)000< "nglish ,ersion in 0*/2010
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
AndroidPIT App
$ll test reports $ll news $ll for'& posts More to 0o&e...
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
Eiew
B'tton
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
Main $0ti,it( 0lass 7eso'r0e D definitions :a'to-0reatedH ne,er &odif( this file< Folder for binar( files :e,er(thing not handled b( $ndroid< Folder for reso're files :i&ages) la(o'ts) strings) ...< !ogo in high resol'tion :L2 b( L2 pi5els D 230 dpi< !ogo in low resol'tion :*M b( *M pi5els D 120 dpi< !ogo in &edi'& resol'tion :3= b( 3= pi5els D 1M0 dpi< !a(o't definition for &ain a0ti,it(Ps ,iew +tring definitions ?Manifest fileA defining things like app na&e) logo and &ain a0ti,it( ProCe0t properties
Download this presentation as PDF:
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
#'&eri0 ,ersion 0ode) in0rease with new ,ersion Eersion na&e displa(ed in Market
Main a0ti,it(Ps 0lass na&e Main a0ti,it(Ps label :at the top of the s0reen< ntent filter to define that this a0ti,it( 0an be la'n0hed fro& the la'n0h &en'
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
/li0k on the ?$ndroid +DG and $ED &anagerA i0on in the "0lipse i0on bar. /li0k on ?#ewA n the ?/reate new $EDA dialog) enter: - #a&e: ?N1A - .arget: ?$ndroid 1.M - $P !e,el 3A - +D /ard +iKe: ?1023A MiB - +kin: B'ilt-in: ?Defa'lt :@EN$<A then 0li0k on ?/reate $EDA :&ight take a while now<
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
+ele0t ?7'nA J ?7'nA :or press /trl R F11<. n the ?7'n $sA dialog) sele0t ?$ndroid $ppli0ationA and 0li0k on ?OGA. "0lipse will now a'to&ati0all( start the ?N1A $ED we C'st 0reated :if (o' ha,e &'ltiple &at0hing $EDs) a sele0tion dialog will let (o' 0hose one<. $fter abo't a &in'te we sho'ld see o'r app r'nning in the e&'latorS
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
/reate a ,iew that looks like the one at the left !et the 'ser enter his na&e in the inp't field -hen the 'ser 0li0ks one of the b'ttons and no na&e was entered) displa( an alert dialog with an error &essage. -hen the 'ser 0li0ks a b'tton with his na&e entered J the 'ser shall be greeted with a pop'p &essage :?toastA< J the greeting at the top of the s0reen shall 0hange
+a( @iS
+a( @elloS
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
"0lipse will now show an error &essage: ?#o reso'r0e fo'nd that &at0hes the gi,en na&e :at Pte5tP with ,al'e P9string/enterQ(o'rQna&eP<. $dd the &issing reso'r0e to the strings.5&l file:
<strin! na e="enter_#our_name""Anter yo*r na e$<)strin!"
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
-e will now see an error &essage as @ello-orkshop$0ti,it( does not i&ple&ent On/li0k!istener (et. /li0k on the error &essage and sele0t ?!et P@ello-orkshop$0ti,it(P i&ple&ent POn/li0k!istenerP.A -ePll see the ne5t error &essage be0a'se @ello-orkshop$0ti,it( does not i&ple&ent the ðods defined in On/li0k!istener. /li0k on the error &essage and sele0t ?$dd 'ni&ple&ented ðodsA.
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
$dd the two string reso'r0es we C'st 'sed and two others we 'se in the ne5t step to the strings.5&l file:
<strin! <strin! <strin! <strin! na na na na e="error_name_missing""Clease enter yo*r na e5<)strin!" e="error_ok""@D<)strin!" e="hi_greeting""-i Es1<)strin!" e="hello_greeting""-ello Es1<)strin!"
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
Finall() we want the greeting at the top of the s0reen to be 0hanged. .o 0hange the te5t of that 0o&ponent) we first &'st assign an D to it. +o edit the &ain.5&l file and insert the id into the first .e5tEiew ele&ent: <4extView android$id="@1id/greeting_field" ----7-/8
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
$nd nowI -ePre read( - r'n the proCe0tS %o'Pll find the 0o&plete so'r0es in the appendi5.
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
2. >+estions
I I I
Download this presentation as PDF:
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
Thank ?o+@
!inks: http://www.androidpit.de/ http://www.androidpit.de/de/android/for'& http://www.androidpit.de/de/android/&arket/apps/app/de.androidpit.app/$ndroidP .
http://de,eloper.android.0o&/
.his presentation:
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf
http://www.androidpit.de/files/androidpit-beginners-workshop-2010.pdf