Sunteți pe pagina 1din 15

Java, Android, Eclipse and General Programming Dictionary

USAGE: Type word into find bar or AAA for the letter A. See Eclipse for Shortcuts See Android for programming notes Abbre iations!"""""""""" A#$ " Android #ebug $ridge A#% " Android #e elopment %it A#T " Android #e elopment Tools & Abstract #ata Type A'#( " Android 'nterface #efinition (anguage A)% " Android )ac*age A)' " Application )rogram 'nterface $ " $ytes b " bits bit " binary digit $+GA " $lue, +ed, Green, Alpha -(' " -ommand (ine 'nterface -./% " -yan, .agenta, /ellow, %ey0blac*! -#.A " -ode #i ision .ultiple Access #$.S " #atabase .anagement System ##.S " #al i* #ebug .onitor Ser ice .de1 " #al i* E1ecutable EE " Enterprise Edition GU' " Graphical User 'nterface G)U " Graphical )rocessing Unit 2A( " 2ardware Abstraction (ayer hdpi " 2igh"#ensity #ots )er 'nch 2TT) " 2yperTe1t Transfer )rotocol 23GA " 2alf"si4e 3ideo Graphics Array '#E " 'ntegrated #e elopment En ironment ')- " 'nter )rocess -ommunication '5 " 'nput&5utput ')- " 'nter")rocess -ommunication .6ar " 7a a Archi e 8ile 7#% " 7a a #e elopment %it " 8rom Sun .icrosystems 7'T " 7ust 'n Time compiler 79' " 7a a 9ati e 'nterface 7+E " 7a a +untime En ironment 73. " 7a a 3irtual .achine .'.E " .ultipurpose 'nternet .ail E1tensions .E " .icro Edition 55) " 5b6ect 5riented programming )9G " )ortable 9etwor* Graphics +#$.S " +elational #atabase .anagement System S#% " Software #e elopment %it SE " Standard Edition SG.( " Standard Generali4ed .ar*up (anguage S%U " Stoc* %eeping Unit S:( " Structured :uery (anguage SS( " Secure Soc*et (ayer ;G( " Third Generation (anguage

TU' " Te1t User 'nterface U' " User 'nterface U+' " Uniform +esource 'dentifier 3GA " 3ideo Graphics Array 3o') " 3oice"5 er internet )rotocol <.( " E1tensible .ar*up (anguage <.(9S " E1tensible .ar*up (anguage 9ameSpace

AAAA
abstract " class: A class that cannot be instantiated. 't may contain abstract methods. method: A method that contains no implementation. E1: abstract oid whereTo)lace0int 1, int y!= Abstract #ata Type0A#T! " Any reasonably comple1 type that isn>t one of the standard types" int, float, string, and array. acti ity " A core component of the Android )latform. +epresents a single screen with a user interface. -an be faceless, in a floating window, and&or return a alue. All acti ities must be registered in the spplicationsection of the manifest. #eri ed from -onte1t. Android " Software Stac* run on )hones from all carriers. )+5G+A..'9G 95TES: Context context use as an argument when a method needs to refer to the caller. caller.doThisTo.e0this!= fillAfter, fillBefore, fillEnabled -ontrols whether an animation persists when not playing. fillEnabled must be ?true? or fill$efore defaults to ?true?. Android Asset )ac*aging Tool0aapt! " ta*es your application resource files, such as the Android.anifest.1ml file and the <.( files for your Acti ities, and compiles them. An +.6a a is also produced so you can reference your resources from your 7a a code. Android #ebug $ridge0A#$! " A tool used to connect and sends commands to your Android phone from a des*top or laptop computer Android )latform " Google"created edition of 7a a platform, to create Applications for Android. +uns on 7a a core libraries and a irtual machine called #al i*. Animation#rawable " An ob6ect whose bac*ground is set to a series of frames. 't>s important to note that the start0! method called on the Animation#rawable cannot be called during the on-reate0! method of your Acti ity, because the Animation#rawable is not yet fully attached to the window. 'f you want to play the animation immediately, without re@uiring interaction, then you might want to call it from the onAindow8ocus-hanged0! method in your Acti ity, which will get called when Android brings your window into focus. Animation#rawable my(ogoAnimation= 'mage3iew my'mage3iewB C 0'mage3iew! find3iew$y'd0+.id.my'mage3iewB!= my'mage3iewB.set$ac*ground+esource0+.drawable.logoDanimation!= my(ogoAnimation C 0Animation#rawable! my'mage3iewB.get$ac*ground0!= anonymous class " A local class without a name that is created and used in the same line of code. Uses new operator. anti"aliasing " ma*ing an image or te1t appear smoother by gradual shading around the edges. applet " a 6a a application= one that uses the clientEs web browser to pro ide a U'. application " a program or software designed for certain purpose. Application )rogramming 'nterface0A)'! " A set of commands, functions, protocols grouped into libraries called pac*ages for programmers to use when building for a specific 5S argument " 3alue that is passed between programs, methods. $efore the argument is put in, each item that re@uires data is called a parameter. E1: public #oSomething0parameter, parameter!FG= The argument is the data entered into the parameter. array " A groupof same"type ob6ects pac*aged in order. 'f it is an array of reference ob6ects, they must be declared or it will throw an e1ception. 3alue ob6ects will default. Synta1: '9STA9T'ATE: typeHI array9ame C new typeHamountElementsI=

asynchronous " 9ot synchroni4ed in time. atomic " describes a command that operates instantly and does not re@uire any synchroni4ation with multiple threads. +ead&writes on ariables e1cept long, double or read&write on any ariable with the *eyword olatile. attribute " a ariable for a class. a*a field, property. E ery attribute of a class must ha e three ways to access it <.( setup: android:attributeCthis 7a a setup: o6ect'd.attributeCthis= 7a a chec*ing: if0ob6ect'd.getAttributeCCthis!FG=

BBBB
bac*ground color " To set the bac*ground color using a colors.1ml file Dynamically: 3iew super(ayout C 03iew! find3iew$y'd0+.id.super(ayout!= super(ayout.set$ac*ground-olor0get+esources0!.get-olor0+.color.blac*!!= binary0noun! " A file whose filetype is not e1plicitly disclosed. bit0-2A+T! " a bit is a alue for a system that only has two states. 5ff and on. bit 1 J C byte byte 1 BKLM C %ilobyte %ilobyte 1 BKLM C .egabyte .egabyte 1 BKLM C Gigabyte C B,KN;,NMB,JLM bytes or J,OJP,P;M,OPL bits Gigabyte 1 BKLM C Terabyte Terabyte 1 BKLM C )etabyte )etabyte 1 BKLM C E1abyte bit shift " 5perators that shift the binary code to the left or right, replacing the end with something else. 0 QQ, RR, QQQ! Arithmetic right shift S QQ B= && Shifts S binary alue 0BBK! once to the right, padding the left side with whate er the signed bit 0which will maintain its negati e or positi e alue! +esult: ; Arithmetic left shift S RR B= && Shifts S binary alue 0BBK! once to the right, padding the left side with K. +esult: BL !ogical right shift S QQQ B= && Shifts S binary alue 0! once to the right, padding the left side with K. bitwise " #escribes an operator that manipulates the bits. 0 T, U, V, W ! " 95T re erses # 5+ if either bit is one, returns B $ <5+ 0e1clusi e or! if bits are different, returns B % A9# if both bits are B, returns B See set, flag, mas* blade ser er " A single circuit board populated with components such as processors, memory, and networ* connections that are usually found on multiple boards. Ser er blades are designed to slide into e1isting ser ers. Ser er blades are more cost"efficient, smaller and consume less power than traditional bo1"based ser ers. $lue, +ed, Green, Alpha0$+GA! " Apparently, the way Android reads 2e1idecimal 3alues brea*= " End loop. brea*point " Temporary halt so program can be chec*ed that it is running properly. broadcast recie er " A component that responds to system"wide broadcast announcements. Such as telling the notifications bar something was downloaded. $roadcast+ecie er. buffer " 9on"specific area that holds memory 6ust before it is used. E1: Streaming 3ideo build " The full ersion number li*e S.K.;.LLLKM instead of 6ust ersion S.K $undle " A collection of all the sa ed user interface states. bus " Set of wires on motherboard that allow for data transmission. .easured in si4e0;L, SM bit! and speed0megahert4!. bytecode " .achine"readable instructions sent from compiler.

CCCC
-XX " 5b6ect 5riented ersion of -. (i*e 7a a, popular for de eloping commercial software incorporating interrelated applications. callbac* " A ?handler? that you register with some other part of your program in the hope that the other part of your program will ?trigger? your handler when some e ent of interest transpires. -alls from high le el code to low le el, bac* to a function in high le el code. call stac* " An ordered list of the methods called since start of program. casting " -on erting ob6ects of one type into another type. implicit: handles safe changes to larger data types short myShort C O= int my'nt C myShort= explicit: handles possibly dangerous changes by specifying e1actly what to change to int my'nt C O= short myShort C 0short! my'nt= chipset " 'ntegrated circuits designed to perform related functions. A motherboard has many. class " $lueprint for 5b6ects created. 9ot similar to classfiles top level: -lass not inside of other class, but can share a .6a a file. nested: -lass inside of other class e1planation static: 9ested class with no outer class instances inner: 9ested class with associated instance outside local: 'nner class defined, run in a method: Sometimes included as local Synta1: access-modifiers static? return"type class extends-class? implements"interfaceY { class-body G= classfiles " .class files that store the compiled source code, or bytecode which can then be run by the 73.. classloader " e1ecution en ironment component that loads classes. client " program capable of obtaining a ser ice from another= 5+ a computer capable of obtaining applications and data from a ser er. compile " con ert program to lower le el code so machine can run it. compiler " -on erts programs into machine"readable code and stores all the code and data in .class files. component " 8our types: Acti ities to handle U' to screen Ser ices to handles bac*ground processing $roadcast recei ers to handle communication -ontent pro iders to handle data and database management -ode #i ision .ultiple Access0-#.A! " A method for transmitting multiple digital signals simultaneously o er the same carrier fre@uency. composition " #ifferent programming method than subtyping in ob6ect oriented programming. 'nstead of ma*ing a class more and more specific, a class will be composed of se eral other classes. 'nstead of ?is a car? it>s ?has a wheel? const " -onstant data type, not supported by 6a a. Use final int or static final int -onstructor " A method created automatically with a class that instantiates that class when called. /ou can also create it in the class yourself. 't has the same name as the class and has no return type 0not e en oid!. container " a class, a data structure, or an abstract data type whose instances are collections of other ob6ects. content pro ider " #atabase of accessible information on the phone or a ser er. Acti ated when it recei es a re@uest from a content resol er. /ou can also create your own. B. Get permission to open the database. L. :uery the data. ;. Access the data. +ead& Arite& Append new data content resol er " (ets you interface with content pro iders. The ob6ect is called ContentResolver. conte1t " Ahen you thin* of a -onte1t, thin* of an ob6ect that encapsulates its children as data and has methods that perform operations on that data, not on the -onte1t itself. continue= " Go to ne1t loop iteration. -ursor " This interface points to a record in a #atabase. (ets you read and write to it.

DDDD
daemon " A program or process that sits idly in the bac*ground until it is in o*ed to perform its tas*. #al i* " The Android interpreter"only irtual machine that is in all Android de ices. #al i* #ebug .onitor Ser ice " The debugging tool included with the android S#%, that allows many irtual actions to be tested, such as calling the de ice being debugged. #al i* E1ecutable0.de1! " compact #al i* E1ecutable, Android apps are turned into this before they are e1ecuted. #ata Access 5b6ect0#A5! " +esponsible for handling a databse connection and accessing, modifying data. #atabase .anagement System0#$.S! " 2ighest le el is the database, below that are tables, where the rows are called records. 'nside records are fields which are organi4ed into columns. Each column can only ha e one type of data type. deadloc* " A problem on synchroni4ation where two threads are waiting for each other to finish the current action. See also star ation, li eloc* delta " A small increment. dialog " A message window. There are four types built into android: Alert#ialog )rogress#ialog #ate)ic*er#ialog Time)ic*er#ialog documentation " Te1t that describes the operation of a program. double " A data type that holds a number up to BO digits long. #ouble #ata rate0##+! " A cpu design that sends data twice on each cloc* cycle. once on the rise of the cloc* cycle and once on the fall. dynamic " $ased on decision made while a program is running, not beforehand. dynamic scope " 9ot all layers of code are nested directly. #iffers from static scope.

EEEE
Eclipse " The preferred de elopment program for Android applications. USE8U( S25+T-UTS -trlX8BB : 5n emulator, switch from portrait to landscape mode -trlXSpace : Use templates from what you ha e typed so far " See ?Templates? to ma*e new ones -trlXShftX8 : 8ormat code according to settings -trlXShftXK : Add only the needed import statements AltXShftX+ : +ename selected file, alternately: right"clic* Q+efractor Q+ename -trlXShftX9umpad#i ide : -ollapse all collapsible code

emulator " .achine meant to ta*e the appearance of another enum " declare multiple constants at once. 9ot supported in 7a a. en ironment ariable " a ariable which is updated by the operating system or control program. E1: #ate, time, ersion number E&&'& !()* + E&&'&) + E&&'& !'G Action )et Co,ld not be fo,nd 'n <.(: A 3iew in a +elati e(ayout references a 3iew that hasn>t been created yet. Conc,rrent-odificationException which means, you change the number of elements in the list while iterating o er the list. *he connection to adb is do.n, and a severe error has occ,red. " S5(: B -lose the Eclipse if running

L Go to the Android S#% tools directory in -ommand )rompt type adb *ill"ser er ; then type adb start"ser er M 9o error message is thrown while starting A#$ ser er, then adb is started successfully. O 9ow you can start Eclipse again. Constr,ctor not .or/ing +emo e ? oid? *eyword Edit*ext ca,ses xml error: S5(: android:inputType="textNoSuggestions" in EditText tag An error has occ,rred )ee the log file metadata0 log 'n short, delete the .snap file inside the org.eclipse.core.resources folder in .metadata. Error parsing 1-!: ,nbo,nd prefix " S5(: add schema to first <.( bloc*. A pse,do attrib,te name is expected Add the @uestion mar* to the end of the 1ml opening. &eso,rce not fo,nd +emo e all import statements, then press ctrlX5 to get them bac*. This probably will fi1 se eral things ethernet " the physical cables and hardware nneded to connect to the internet. #oes not inclusde wifi. e ent " System"generated messages that are sent to the 3iew ob6ect whene er a U' element is accessed by a user. e ent"dri en programming " )rogramming model where flow is defined by user e ents. e1ception " An e ent, which occurs during the e1ecution of a program, that disrupts the normal flow of the program>s instructions. See exception handling e1ception handling " The program creates an ob6ect where the e1ception was found with data on the e1ception and goes through the call stac* of methods, searching for a method that can handle that type of e1ception. 'f none is found, termination. A method which throws an e1ception must be enclosed in either a method or try&catch that can handle that type of e1ception. The three main *inds are: chec/ed exception An e1ception that is anticipated by the program and is handled as abo e. E1: An incorrect user input. java.io.FileNotFoundException unchecked exceptions: error An e1ception that is e1ternal to program, and can>t be handled. E1: A hardware issue. java.io.IOError r,ntime exception An inteernal e1ception that can be handled as abo e, but should be addressed during de elopment. E1: Sending a null alue. java.io.NullPointerException java.io.!unti"eException E1ecution En ironment " A function which accepts commands and causes them to be e1ecuted. e1tensibility " #e elopment fle1ibility. E1tensible .ar*up (anguage " A metalanguage written in SG.( that allows one to design a mar*up language, used to allow for the easy interchange of documents on the Aorld Aide Aeb. E<tensible .essaging and )resence )rotocol0<.))! " <.( Ser ice for real"time communication.

2222
field " Also called aiables. 2old an ob6ectEs states. file descriptor " An integer that identifies an open file within a process. This number is obtained as a result of opening a file. 5perations which read, write, or close a file would ta*e the file descriptor as an input parameter. final " A *eyword put before a class so it canEt be subclassed method so it canEt be o erridden in a subclass ariable so it canEt be changed once assigned 'ts use helps in error correction as well. finallyFG " Aritten after a tryFG or its catchFGs. Aill e1ecute contents of finally each time tryFG is e1ecuted,

regardless of how it was caught or not. flag 0bitwise term! " a bit set to B, used to chec* alues in other bits or arrays of bits. float " A data type that holds a number up to N digits long. SEE )+'.'T'3E #ATA T/)E formatter " The format specifiers for general, character, and numeric types ha e the following synta1: Z HargumentDinde1[IHflagsIHwidthIH.precisionIcon ersion The optional arg,ment3index is a decimal integer indicating the position of the argument in the argument list. The first argument is referenced by ?B[?, the second by ?L[?, etc. The optional flags is a set of characters that modify the output format. The set of alid flags depends on the con ersion. The optional .idth is a non"negati e decimal integer indicating the minimum number of characters to be written to the output. The optional precision is a non"negati e decimal integer usually used to restrict the number of characters. The specific beha ior depends on the con ersion. The re@uired conversion is a character indicating how the argument should be formatted. The set of alid con ersions for a gi en argument depends on the argument>s data type. framewor* " a layered structure indicating what *ind of programs can or should be built and how they would interrelate. 8ramebuffer " The portion of memory reser ed for holding the complete bit"mapped image that is sent to the monitor. function " A set of instructions that perform a tas*. Same as: function, module, procedure, routine, and subroutine.

GGGG
Game (oop0Teaching! " -onsists of getting ,ser inp,t handling A( playin so,nd and effects displaying the game garbage collection " +ealigning memory in a program>s heap for use again. generali4ation " See speciali4ation and generali4ation. generation language " 8irst"generation languages are binary machine languages. Second"generation languages are machine"dependent assembly languages, and third"generation languages 0;G(s! are high" le el programming languages, such as 85+T+A9, -5$5(, $AS'-, )ascal, -&-XX and 7a a. generics " Techni@ue in programming where the program or method is written to reci e different types and operate differently for each. Gestures " User 'nterface controlled by mo ing the finger on the screen. Since A)' B.S Graphical User 'nterface " A isual computer en ironment which uses graphical icons to represent files to ease the access of the human. Graphical )rocessing Unit0G)U! or 03)U! " Special circuit on a ideo card to rapidly alter memory to accelerate image building in a framebuffer which outputs to the screen.

4444
2ardware Abstraction (ayer02A(! " An interface between the hardware and the software. An operating system is essentially a hardware abstraction layer= howe er, a 2A( implies an additional layer between the 5S and the hardware. hash " The resulting coding produced from a hash function, which formats ariable"length data into fi1ed length data. Such as names into integers. heap " )ortion of storage an application re@uests and holds for its own uses. See Garbage -ollection he1idecimal " -olor coding system where alues of +ed, Green and $lue range from K to LOS0BS1BS!. To reduce the amount of space needed to define these alues, letters were used in place of numbers. Two digits define the alue of each color. The first has si1teen alues whereas, after the digit P, A is used in the place of BK. K B L ; M O S N J P A $ - # E 8. This is multiplied by BS and added to the alue of the second digit. $P would represent 0$ C BB 1 BS C BNS! X 0P! C BJO. $PKKff Aould mean BJO red, K green, LOS blue.

AA+9'9G 95TE: Android reads 2e1 alues $lue, +ed, Green.

((((
implements *eyword " placed at end of class opening. See 'nterface. E1: public oid class .ainActi ity e1tends acti ity implements 5n-lic*(istenerFG inde1ed color " (ighter, less powerful alternati e to +G$ color. 2as a specific set of colors it uses. inflate " .a*e <.( code accessible by 7a a, li*e ma*ing a menu in <.( and then connecting it so it displays. integral type " 5f an integer, a finite number without a fractional part. 'ntent " .essages that can be sent at any time without synchroni4ation between acti ities, ser ices and components. They allow your app to e1plicitly re@uest ser ices such as another app when a picture is being ta*en by your app and then it seamlessly can go bac* to your app with the new picture. an ob6ect that pro ides runtime binding between separate components 0such as two acti ities!. The 'ntent represents an appEs ?intent to do something.? /ou can use an 'ntent for a wide ariety of tas*s, but most often theyEre used to start another acti ity. interface " 'n its most common form, an interface is a group of related public methods with empty bodies. A class ?implements? an interface and promises to define those methods. Ahen you define a new interface, you are defining a new reference data type. /ou can use interface names anywhere you can use any other data type name. 'f you define a reference ariable whose type is an interface, any ob6ect you assign to it must be an instance of a class that implements the interface. interlea e " 2a e two programs running in an alternating pattern. interpreter " interprets bytecode one step at a time and e1ecutes nati e instructions. instance method " A method performed by an instance of a class. Static methods are not because they relate to the class as a whole. instantiate " To ma*e a solid e1ample of something from a blueprint. -reating an ob6ect instantiates the class. intrinsic loc*&monitor loc*&monitor " Any ob6ect can ha e this. A thread re@uiring prolonged access to an ob6ect must ac@uire a loc* and release it once done.

JJJJ
7a a Archi e file " a file used to group many files into one. E1tension: .6ar 6a ac " 7a a -ompiler that ta*es source file and translates it so 3irtual .achine can understand the commands. 7a a language " 5b6ect"oriented (anguage from Sun, 5riginally 5a*, .odeled after -XX. when launched from webpage, it is an applet from machine, application from web ser er, servlet 7a a platform " -onsists of 7a a 3irtual .achine and 7a a A)' 7a a compiler " special 7a a program that translates source code into instructions for the irtual machine to send to 5S. The instructions are referred to as bytecode 7a a #e elopment %it07#%! " -ontains de elopment tools and a pri ate 7+E. 7a a 9ati e 'nterface079'! " A programming interface 0A)'! in Sun>s 7a a 3irtual .achine used for calling nati e platform elements such as GU' routines. 7a a +untime En ironment07+E! " Allows 7a a to +un on your 5S. 'ncludes 73. and code libraries and components. 5ne ersion is needed to iew 7a a programs and another is needed to program it. 7ust 'n Time compiler " Sa es code that was found to be repeated multiple times so it can run it directly through nati e code rather than interpreting it from bytecode again.

5555
*ernel " .ost basic part of -omputer, does resource allocation, file management, and security. *ey alue pairs " A set of data items that contain a *ey, such as an account number or part number, and a

alue, such as the actual data item itself or a pointer to where that data item is stored on dis* or some storage de ice. %ey" alue pairs are widely used in tables and configuration files. 'nsert a new one with putE1tra0*ey, alue! *eywords " abstract not able to be instantiated= a class with only abstract methods should be an interface final not able to be altered or subclassed private accessible only from the class protected accessible only from the class and any subclasses p,blic accessible from anywhere static not re@uiring an instance to be in o*ed

!!!!
le1ical " 5f or relating to words, ocabulary of a language. le1ical scope&static scope " E ery 'nner (e el can access outside le els. #iffers from dynamic scope. (ifecycle0-hart! " 2oregro,nd activity 0the acti ity at the top of the screen that the user is currently interacting with! is considered the most important. 'ts process will only be *illed as a last resort, if it uses more memory than is a ailable on the de ice. Generally at this point the de ice has reached a memory paging state, so this is re@uired in order to *eep the user interface responsi e. 6isible activity 0an acti ity that is isible to the user but not in the foreground, such as one sitting behind a foreground dialog! is considered e1tremely important and will not be *illed unless that is re@uired to *eep the foreground acti ity running. Bac/gro,nd activity 0an acti ity that is not isible to the user and has been paused! is no longer critical, so the system may safely *ill its process to reclaim memory for other foreground or isible processes. 'f its process needs to be *illed, when the user na igates bac* to the acti ity 0ma*ing it isible on the screen again!, its on-reate0$undle! method will be called with the sa ed'nstanceState it had pre iously supplied in onSa e'nstanceState0$undle! so that it can restart itself in the same state as the user last left it. Empty process is one hosting no acti ities or other application components 0such as Ser ice or $roadcast+ecei er classes!. These are *illed ery @uic*ly by the system as memory becomes low. 8or this reason, any bac*ground operation you do outside of an acti ity must be e1ecuted in the conte1t of an acti ity $roadcast+ecei er or Ser ice to ensure that the system *nows it needs to *eep your process around. list " 'mplements collection interface. A special class that stores elements similar to an array, with added capabilities, such as automatically changing si4e as needed. li eloc* " A problem in synchroni4ation where two threads are repeatedly responding to each other. See also deadloc*, star ation (ogcat " !og e: This is for when bad stuff happens. Use this tag in places li*e inside a catch statment. /ou know and error has occurred and therefore you>re logging an error. !og .: Use this when you suspect something shady is going on. /ou may not be completely in full on error mode, but maybe you reco ered from some une1pected beha ior. $asically, use this to log stuff you didn>t e1pect to happen but isn>t necessarily an error. %ind of li*e a ?hey, this happened, and it>s weird, we should loo* into it.? !og i: Use this to post useful information to the log. 8or e1ample: that you ha e successfully connected to a ser er. $asically use it to report successes. !og d: Use this for debugging purposes. 'f you want to print out a bunch of messages so you can log the e1act flow of your program, use this. 'f you want to *eep a log of ariable alues, use this. !og v: Use this when you want to go absolutely nuts with your logging. 'f for some reason you> e decided to log e ery little thing in a particular part of your app, use the (og. tag.

----

mar*up language " A coding system used to structure and lin* te1t files. 2T.(, SG.(, <.( mas* " A series of bits which are compared to another series, the operation chosen by a bitwise operator. E1: mas* C O= && O in binary C KBKB 1 C BM= && BM in binary C BBBK 1 C 1 W mas*= && the A9# operator returns one only if both bits compared are B && 1 now e@uals KBKK, or J menu types " Context -en, )ops up on long clic* of an item, generally an item in a list3iew 'ptions -en, )ops up when .enu button on phone is pressed. #isplays application Aide #ata usually. met language " A language used to describe another. method " A method is a function which defines beha ior of a class, which is called being bound to. Ahen bound to a class at compile time, it is static binding. Ahen bound to an ob6ect at runtime it is dynamic binding. Synta1: accessY staticY return typeY .ethod9ame0argumentType argument9ame!F statements= G middleware " Software between 5S and Applications, ma*es software from many sources operate together smoothly. .ultipurpose 'nternet .ail E1tensions0.'.E! " A communications protocol that allows for the transmission of data in many forms. module " A set of instructions that perform a tas*. Same as: function, module, procedure, routine, and subroutine. multithreading " performing multiple operations simultaneously with one program by sectioning out attention to each. .yS:( " A popular ope source +#$.S owned by Sun since LKKJ.

7777
namespace " The identifier that holds named elements and helps to identify of identical name li*e butt in cats.fifi.butt and cats.mrwin*les.butt. cats and fifi are both namespaces here. The standard uses periods between the identifiers. naming con entions " all lowercase: images, android files " camel-ase: ariables, methods " )ascal9otation: classes, constants ".ethods: 3erb first then other parts of speech 9ati e #e elopment %it09#%! " %it to de elop nati e android code, usually to allow interaction between another language and 6a a, such as -XX. nati e instructions&code " 'nstructions understood by underlying platform. nested type " 9et$eans " platform framewor* for 7a a des*top apps and '#E for se eral programming languages. nine"patch"graphic " A )9G graphic with special mar*ers to allow intelligent resi4ing. This means the images is split into P areas which beha e differently by the layout manager when the images is resi4ed in a way that eliminates the distortion which would occur when doing it the standard way. The M corners are unchanged, the M sides are stretched in their appropriate single a1is only, and the middle area is scaled in both dimensions. The four corners, four sides and middle area comprise the 9ine")atches " hence the term. node " A de ice connected to a computer networ*.

''''
ob6ect " A distinct set of methods and attributes as described by a class. Each has a )tate: The current alues of the ob6ectEs attributes. Capabilities: The methods it can perform. &esponsibilities: %nowledge of how to retrie e and update itEs State and what can prompt these things.

To declare a new 5b6ect the format is type5f5b6ect new5b6ect9ame= To set it to an already created ob6ect new5b6ect9ame C 0type5f5b6ect! find3iew$y'd0+.id.ob6ect'd!= 5b6ect class " The class which all 6a a classes are subclassed from. on-lic* " android:on-lic* C method Since A)' L.L 5n-lic*(istener " #E3E(5)E+ 95TE: There are se eral import statements that apply to this. Also, when implemented in Acti ity, must be )ascal case. on-reate " Entry )oint to anything that occurs in Android. 5rientation " set+e@uested5rientation0Acti ity'nfo.S-+EE9D5+'E9TAT'59D)5+T+A'T!= \5 erride " an annotation that you can use to tell the compiler and your '#E that you intend the method that has that annotation to be an o erride of a super class method. o erloading " creating multiple methods in a class with the same name. The signatures must differ, the number of arguments or the types of arguments.

PPPP
pac*age " paging " A techni@ue used by irtual memory operating systems to help ensure that the data you need is a ailable as @uic*ly as possible. The operating system copies a certain number of pages from your storage de ice to main memory. Ahen a program needs a page that is not in main memory, the operating system copies the re@uired page into memory and copies another page bac* to the dis*. 5ne says that the operating system pages the data. Each time a page is needed that is not currently in memory, a page fault occurs. An in alid page fault occurs when the address of the page being re@uested is in alid. 'n this case, the application is usually aborted. This type of irtual memory is called paged irtual memory. paradigm " .odel, e1ample or pattern. parse " Analy4e or separate input into more easily processed parts. )AT2 " 3ariable which tells system where to find e1ecutable programs. persistence layer " An architectural layer which pro ides interface to information storages. O )illars of 55) " 8st Encaps,lation 2olding data in classes where access to methods and ariables is controlled. 9nd Polymorphism is an ob6ect oriented programming concept to refer to the ability of a ariable, function, or ob6ect to ta*e on multiple forms. 5 erloading refers to one method with same name but a different return type or number of arguments. 5 erriding refers to a method with same name, return type and number of arguments but with different logic. :rd Abstraction is to hide all non"essential details from the user and display only the essential part of it. ;th (nheritance is passing down of attributes to child classes. <th (nterface is an interface specifies a group and&or a set of methods, which ha e not been implemented. pi1el 0-hart! " "p10)i1els! corresponds to actual pi1els on the screen. "in0'nches! based on the physical si4e of the screen. "mm0.illimeters! based on the physical si4e of the screen. "pt0)oints! B&NL of an inch based on the physical si4e of the screen. "dp0#ensity"independent )i1els! an abstract unit that is based on the physical density of the screen. These units are relati e to a BSK dpi screen, so one dp is one pi1el on a BSK dpi screen. The ratio of dp"to"pi1el will change with the screen density, but not necessarily in direct proportion. 9ote: The compiler accepts both ?dip? and ?dp?, though ?dp? is more consistent with ?sp?. "sp0Scale"independent )i1els! this is li*e the dp unit, but it is also scaled by the user>s font si4e preference. 't is recommended you use this unit when specifying font si4es, so they will be ad6usted for both the screen density and user>s preference. platform " The hardware or software en ironment in which a program runs. .ost are the 5S X the hardware. 7a a is a software"only platform E1: Aindows LKKK

)9G " This preferred image type cannot ha e a capital letter in its name. pointer " A ariable which refers or points to another ariable. 9ot used in 7a a. )ortable 9etwor* Graphics0)9G! " Though faster than G'8s on transparent images, it is still second in popularity to it. polymorphism " Allow something to ha e more than one form, depending on the situation. ariable: could be an integer or a string such as an '# that is a number or name. function: could handle the abo e ariable differently depending on which it was. see 5 Pillars )ortable 9etwor* Graphics0)9G! " An image compression either J bit: LOS colors or less 0android will format to this if possible! LM"bit: J"bit red, green, blue ;L"bit: J"bit red, green, blue, and alpha channel port"forwarding0or port"mapping! " 5pening a port in a router or firewall residing in a pri ate networ* in order to let a party from the outside world contact a user inside. prefi1 and postfi1 " #escribes where the unary operator is prefi1: XXamount or postfi1: amount"". The difference between the two is whether it performs the action before or after the conditional. primiti e 0openG(! " Simplest type openGl can graphically represent. A triangle is one. primiti e data types " There are J whose abilities are built into 6a a. They do not include strings. Ahen you need a number, decide if you need negati e or fractional numbers. boolean: The boolean data type has only two possible alues: true and false. char: The char data type is a single BS"bit Unicode character. 't has a minimum alue of >]uKKKK> 0or K! and a ma1imum alue of >]uffff> 0or SO,O;O!. 7=-E&(CA! data types: -an be decimal, LS he1adecimal K1BA or binary KbBBKBK. Underscores can be placed inside declaration of alue, as long as they are not at end, ne1t to a decimal point, or at beginning. 5%: ODMDL.BDL( byte: The byte data type is an J"bit signed integer. 't has a minimum alue of "BLJ and a ma1imum alue of BLN 0inclusi e!. The byte data type can be useful for sa ing memory in large arrays, where the memory sa ings actually matters. short: The short data type is a BS"bit signed integer. 't has a minimum alue of ";L,NSJ and a ma1imum alue of ;L,NSN 0inclusi e!. As with byte, the same guidelines apply: you can use a short to sa e memory in large arrays, in situations where the memory sa ings actually matters. int: The int data type is a ;L"bit signed integer. 't has a minimum L,BMN,MJ;,SMJ ma1imum L,BMN,MJ;,SMN 0inclusi e!. 8or integral alues, this data type is generally the default choice unless there is a reason 0li*e the abo e! to choose something else. 2!'A*(7G P'(7* !iterals: -an end with ?e?, ?E? and an integer for scientific notation. E1: M.BEL C MBK long: The long data type is a SM"bit signed integer. 't has a minimum "P,LL;,;NL,K;S,JOM,NNO,JKJ ma1imum P,LL;,;NL,K;S,JOM,NNO,JKN float: A data type that holds a number up to N digits long. End with ?f?, ?8? do,ble: A data type that holds a number up to BO digits long. -an end with ?d?, ?#? procedure " A set of instructions that perform a tas*. Same as: function, module, procedure, routine, and subroutine. protocol " The format for transmitting data in signals including: error chec* method, data compression, how it will say itEs done sending and recei ing. properties " configuration alues managed as *ey& alue pairs. 'n each pair, the *ey and alue are both String alues. The *ey identifies, and is used to retrie e, the alue, much as a ariable name is used to retrie e the ariable>s alue.

>>>>
@uestion mar* colon " boolean Y ariable : other3ariable= +eads as 'f this is true, return this, otherwise, return this.

&&&&
&raw folder " res&raw contains files that are optimi4ed and can be immediately used by your code. recursion " 'n ol es sol ing a problem by doing an operation to a smaller part of the problem. Also refers to calling a method inside of itself to perform a repeating method instead of using a for or while. reflection " Ability of a program to change itself at runtime. Used in 2igh"le el languages. +elation #atabase .anagement System0+#$.S! " A database that maintains a set of separate, related files 0tables!, but combines data elements from the files for @ueries and reports when re@uired. The concept was de eloped in BPNK by Edgar -odd. renderscript " -ode compiled at runtime, compatible with all architectures, useful for intense calculation. resources " 'n code, also res or 6ust +. This is a folder inside of the pro6ect which has all that you need. All filenames in resources folder are lowercase lettered. -annot be called until after the on-reate of the Acti ity has started. Android also has its own set of resources. android:srcC?\android:drawable&icDicon? .set'mage#rawable0get+esources0!.get#rawable0android.+.drawable.icDicon!!= $eware that these may not be always a ailable and you may want to copy them into your app>s res folder. return type " Ahat type of data a method returns when called. The method can be treated as that return type. routine " A set of instructions that perform a tas*. Same as: function, module, procedure, routine, and subroutine. runtime " the thing which translates 6a a and 1ml into something platform can understand.

))))
schema " The definition of a data structure such as a database or <.( file. Schemas describe the data elements and their interrelationships. Secure Soc*et (ayer0SS(! " Encryption layer for internet. ser ice " A ser ice is a component that runs in the bac*ground to perform long"running operations or to perform wor* for remote processes. A ser ice does not pro ide a user interface. set 0bitwise term! " #escribes bits set to one. See flag, bitwise. shell " The outer layer of a program which pro ides the U'= 5+ the window used to na igate the computer. signed " #escribes a data type able to represent negati e as well as positi e numbers. single inheritance language " A language that can only inherit from one parent class. E1: 7a a. soc*et " opens the networ* connection for the program, allowing data to be read and written o er the networ* speciali4ation and generali4ation " Speciali4ation is the more specific subclasses, while generali4ation is the more general ones. S:(ite " A public domain, compact S:("based database management system 0#$.S! de eloped by +ichard 2ipp that was designed for embedded applications such as smartphones and )#As. stac* " An area in memory for temporary storage. standard class library " prebuilt classfiles which perform common tas*s 0li*e .ath! in 7a a e1ecution en ironment. standard fare 0from )#8! " Something which is commonly encountered, from those menu items which are always a ailable. Standard '&5 " Standard 'nput 0*eyboard, 8iles!, Standard 5utput 0screen, 8iles!, and Standard Error .echanism 0standard error de ice, 8iles! let you read te1t from different sources and write it to different destinations. Standardi4ed Generali4ed .ar*up (anguage " A standard for coding methods of te1t display which can be used to display it in any format. star ation " A problem in synchroni4ation where a thread is often denied access to a ariable because of another thread using it with time intensi e processes. See also deadloc*, li eloc* statement " A complete programming instruction ending with a semicolon. State design - A comple1 ob6ect has e1ternal state classes and it *eeps trac* of which one it is in. Each state respond to different methods of the ob6ect differently. E1: +ifle with E.)T/, 8'+'9G, and 2ASDA..5 states.

.ethods are fire0!, reload0!, and, remo eEmpty-lip0! static *eyword " inner variable " remains after the method ends. member variable " only has one alue, regardless of how many times the class is instantiated. method " .eans it is associated with the class itself rather than a specific ob6ect instance of it. #oes not re@uire the class to ha e been instantiated in order to use the method. Static methods cannot call non static methods or fields. static scope&le1ical scope " E ery 'nner (e el can access outside le els. #iffers from #/9A.'- S-5)E Stoc* %eeping Unit " The number of an a ailable product scanned to trac* product mo ed. strategy pattern&policy pattern " programming method where algorithms are selected at runtime. '&5 Stream " An '&5 Stream represents an input source or an output destination. A stream is a se@uence of data. A program uses an input stream to read data from a source, one item at a time. Structured :uery (anguage0S:(! " (anguage used for retrie ing records or parts of records in databases and performing arious calculations before displaying the results. subclass " 0also a deri ed class, e1tended class, or child class!. subroutine " Sun .icrosystems " #e eloped Android in BPPK, $ought out by 5racle in LKBK. super " The base class that other classes are based off of. super0! " -alls the constructor of the superclass to use for the class it is in o*ed from. synchroni4ed " -ontrols the flow that threads access data. method A *eyword that allows only one thread to access the method at a time. statement placed around a bloc* of statements with whiche er ob6ect it is loc*ing0could be any! so that only one thread may access it at once. See ?'ntrinsic (oc*?, ?atomic?. 8or possible issues that cam arise, see ?deadloc*?, ?star ation?, ?li eloc*? synchronous circuit " A circuit in which data transfer is managed cyclically through a cloc* synta1 " +ules for combining symbols into language code.

****
templates " 'ndi idual lines of code where at least part is written for you. Type in the name of the tamplate and press -trl X Space to select it. press TA$ to go through your ariables. To add a new Template, AindowQ)referencesQ7a aQEditorQTemplatesQ9ew^ terminal window " same as command prompt but in other 5S. te1t3iew " #eri ed from 3iew. Shows te1t. ?n " s*ip line thread " Each thread is a se@uence of code responsible for one aspect of the program, or one tas* a program has been gi en. time " There are three distinct programming times: #esign Time, -ompile"Time and +unTime title bar " import android.view. indow! To remo e title bar place on first line of oncreate: this.re"#est indow$eat#re% indow.$&'()R&*+,*(-(.&/! Toast " import android.widget.(oast! (oast.make(ext%this0 12essage10 (oast..&+3(4*54,R(/.show%/! toString0! " 5tring int5tring 6 -nteger.to5tring%my-nteger7ar/! transformation " rotating, scaling or translating a 3iew ob6ect. Tween " A tween is an animation created between two *nown points. fillEnabled , fillAfter " go inside RsetQ tags repeat-ount , repeat.ode " go inside RscaleQ, RrotateQ, RtranslateQ tags interpolator " go in any of these tags twoEs complement " A method of representing negati e numbers in binary. 'f the first number is positi e, it will begin with a 4ero, negati e, it will begin with a one. 9amed because it can be calculated by subtracting a number from a power of two.

====
Uniform +esource 'dentifier0U+'! " A string of characters used to identify a resource on the internet. E1: a U+( Uniform +esource (ocator0U+(! " An address for a file on the internet. -ontains B. networ* protocol L. host name or address ;. file or resource location

6666
ariables " A data holder with a alue. Generally an 5b6ect or a primiti e data type. erifier " bytecode erifier that chec*s classfile for security issues and terminates irtual machine if necessary. 'f all is well, sends code to interpreter. 3ideo Graphics Array03GA! " #escribes both the official si4e of SMK1MJK pi1els and the BO pin cable that sends that digital data. Smaller ones e1ist such as 23GA 0half!, :3GA 0@uarter! and much larger ones e1ist <GA"BKLM1NSJ 0B.S times wider! and A:U<GA"0;JMK1LMKK!. 3iew 5b6ect " An ob6ect to show things on main.1ml such as te1t buttons, images, ideo. 3iewGroup 5b6ect " An ob6ect to nest other ob6ects inside, while defining what position they will hold on the screen. -an contain 3iew and 3iewgroup 5b6ects. irtual machine " a software"based processor which consists of libraries for running programs and interacting with 5S. Uses a classloader to load the main classfile. There is one for each 5S, usually built"in. 't processes .class bytecode and sends it to the computer. isibility " Android attribute for 3iew ob6ects. android: isibilityC isible. in isible, gone 5b6ect'd.set3isibility03iew.G59E!= 5b6ect'd.get3isibility CC 3iew.G59E 3oice"5 er internet )rotocol " .ethod of telephone ia internet connection. 0S*ype!

@@@@
Aidget " U' classes subclassed from the 3iew class. All of these widgets are contained in a pac*age 0a collection of classes! called android.widget. 8or e1ample, you can access a $utton class ia this pac*age using android.widget.button.

S-ar putea să vă placă și