Posts

Showing posts from February, 2018

Activity in Android

What is Activity in Android Activity is a one of the most important component in android.User interacted with UI and perform some action in application. Life Cycle Method of Activity They have callback method below 1-onCreate( Bundle onSaveInstance ); // Called when the activity is first created 2-onStart() //  Called when the activity is becoming visible to the user. 3-onResume()// Called when the activity will start interacting with the user. At this point your activity is at the top of the activity stack, with user input going to it 4-onPause() //  Called when the system is about to start resuming a previous activity. This is typically used to commit unsaved changes to persistent data, stop animations and other things that may be consuming CPU, etc. Implementations of this method must be very quick because the next activity will not be resumed until this method returns. Followed by either  onResume()  if the activity returns back to the front, or...

Android Component

Android Main Component App components are the essential building blocks of an Android app. Each component is an entry point through which a user can enter your application. Some components depend on others components . There are Mainly four different types of app components: 1- Activity 2- Services 3- Content Provider 4- Broadcast Receiver Intent Although intents provide facility to communication between components in several ways, there are three fundamental use cases: 1- Starting a Activity 2- Start a Service 3- Delivering a Broadcast Intent Types There are two types of intents 1- Implicit Intents  Its not start an any specific component.But its allow a component from another app to handle its. like that- if you want to show Gallery,Dial Pad,Web Browser to user. Using your application so there implicit intents use. 2-Explicit Intents If you want to move from one activity to another activity.  F ully-qualified component class name. You'll typically u...

What is Android?

In simple words we can says that Android is an operating system (OS).Basically for mobile devices such as tablets,smartphones,wrist watch etc.. It is developed by Google and later the OHA (Open Handset Alliance). OHA- It's a consortium of 84 companies such as google,samsung,AKM,Synaptics,KDDI,Garmin,Teleca,Ebay,Intel etc... It was established on 5th November, 2007, led by Google. It is committed to advance open standards, provide services and deploy handsets using the Android Platform. History 1) Initially,  Andy Rubin  founded Android Incorporation in Palo Alto, California, United States in October, 2003. 2) The key employees of Android Incorporation are  Andy Rubin ,  Rich Miner ,  Chris White  and  Nick Sears . 3) In 2007, Google announces the development of android OS. 4) In 2008, HTC launched the first android mobile. Features of Android The important features of android are: 1) It is open-source. 2) Anyone can custom...