Wednesday, 30 September 2015

Java Variables

Variables A variable provides us with named storage that our programs can manipulate. Each variable in Java has a specific type, which determines the size and layout of the variable's memory; the range of values that can be stored within that memory; and the set of operations that can be applied to the variable. You must declare all variables before they can be used. The basic form of a variable declaration is shown here:                   ...

Activity Life Cycle

Activity Life Cycle Activities in the system are managed as an activity stack. When a new activity is started, it is placed on the top of the stack and becomes the running activity -- the previous activity always remains below it in the stack, and will not come to the foreground again until the new activity exits. An activity has essentially four states:   If an activity in the foreground of the screen (at the top of ...

Starting Another Activity

To start an activity from one activity we need Intent object and startActivity() method. Intent: An Intent provides a facility for performing late runtime binding between the code in different applications Its most significant use is in the launching of activities, where it can be thought of as the glue between activities It is basically a passive data structure holding an abstract description of an action to be performed. Example : Intent intent = new Intent(FirstActivity.this,SecondActivity.class); startActivity()...

Tuesday, 29 September 2015

Introduction to android

Introduction to android     Android provides a rich application framework that allows you to build    innovative apps and games for mobile devices in a Java language environment.     One of the most widely used mobile OS these days is ANDROID.     Android is a software bunch comprising not only operating system but also middleware and key applications.     Android Inc was founded in Palo Alto of California, U.S. by Andy Rubin in 2003.     Later...

Monday, 28 September 2015

JVM

Java Virtual MachineHistoryBasicsData TypesJVM RuntimesHistory:     Java platform was initially developed to address the problem of building s/w for n/w consumer devices.     To meet requirements , compiled code has to transport across the networks ,works on any client and assure that the client that it was safe to run.     WWW got popularized , but web HTML format was too limited . So the answer...

Introduction to Java

Introduction to Java Programming Java is a powerful object-oriented programming language introduced by Sun Micro systems in 1995, which has built-in support to create programs with a graphical user interface (GUI), utilize the Internet, create client-server solutions, and much more. Programs written in Java can run, without change, on any of the common computer operating systems Windows 95/NT, Macintosh, and Unix. A variant of Java programs...