What is Context?

What-is-Context

Context: It is nothing but current state of object or application. Typically you call it to get data regarding another part of your program (activity & package/application).

You can get the context by writing below code.

  • getApplicationContext()
  • getContext()
  • getBaseContext()
  • this

There are two type of context

  • Application Context
  • Activity Context

Application Context:

Application context is related to the application’s life cycle and it will be same whole application.When ever we use toast messages we can use application context or activity context  because toast can raised anywhere in application

Activity Context:

Activity context is attached to Activity life cycle and can be destroyed once activity destroyed.If we want to start new activity we must use activity context

ClassName.this:

the above line is an Activity which is obviously a Context.. this is used when you create some Alert Dialogs… At some places its compulsory that you use Activity Context…

Intent i =new Intent (MainActivity.this,Second.class);

startActivity(i);

getApplicationContext():

It will return the context  of entire application.We will use getApplicationContext if we need a context tied to the lifecycle of entire application not just current activity.

Toast.makeText(getapplicationContext(),”this is toast”,Toast.Length_Long).show();

getContext:

It will return the context of the current view.Mostly we use this inside of the fragments.

getContext:

If you require access to a Context from inside another context, you use a ContextWrapper. The Context alluded to from inside of the fragments

getBaseContext:

If you require access to a Context from inside another context, you use a ContextWrapper. The Context alluded to from inside that ContextWrapper is accessed via getBaseContext().

Android training in hyderabad

kosmik provides Android training in Hyderabad, we are providing lab facilities with complete real time training & 100% job assistance will be there

Brief History of Android

Brief History of Android

What Is Android?

 Android is an operating system for mobile devices. Such as smartphones and tablet computers. It invented by the Open Handset Alliance led by Google. It built on a Linux foundation. Google purchased the initial developer of the software, Android in 2005. An Android distribution on November 5, 2007, was announced. Android founder of Open Handset Alliance. The consortium of 84 hardware, software, and telecommunication companies standards for mobile devices.

 Android Training  Hyderabad

This alliance shares a common goal of fostering innovation on mobile devices. The consumers a far better user experience is available on today’s mobile platforms. It provides developers with a new level of openness. That enables them to work more Android will speed up the pace. Which new compelling mobile services made available to consumers. Android is often symbolized by the green robot to the right.

Android has evolved since its launch. Google has named all projects after a dessert. The main releases listed below, this is nothing you have to memorize. It’s to illustrate the rapid pace of development and all the innovations. Android developed “on Internet time”, that is much faster than the old style of development Android Training  Hyderabad.

Features & Specifications

Android is an Operating System supporting a large number of Smart Phones. These applications make life more comfortable and advanced for the users. Hardware that supports Android based on ARM architecture platform.

Android comes with an Android market which is an online software store. It developed by Google. Android users to select, download applications developed by third-party developers use them. There are around 2.0 lack+ games, application, and widgets available on the market for users use in Android Training  Hyderabad.
 
  Android applications are written in Java programming language. Android is available as open source for developers to develop applications. This further used for selling in an android market. There are 200000 applications developed for Android with over 3 billion+ downloads. Android relies on Linux version 2.6 for core system services. It has security, memory management, process management, and network stack and driver model.

Applications

These are the basics of Android applications

Android applications composed of one or more application components
• Each component performs a different role in the application behavior activated
• The manifest file must declare all components in the application. It all application requirements the least version of Android hardware configurations required
• Non-code application resources should include alternatives for different device configurations
 
Google, for software development and application development. It launched two competitions ADC1 and ADC2 innovative applications for Android. It offered prizes of USD 10 million combined in ADC1 and 2. ADC1 launched in January 2008 and ADC 2 launched in May 2009.

 Android Training Hyderabad

Kosmik Provides Android training in Hyderabad. We are providing lab facilities with complete real-time training. Training is based on complete advance concepts. So that you can get easily “hands-on experience”. We will give 100% job assistance.