Android Core Building BlocksA component is simply a piece of code that has a well defined life cycle e.g. Activity, Receiver, Service etc. The core building blocks or fundamental components of android are activities, views, intents, services, content providers, fragments and AndroidManifest.xml. ActivityAn activity is a class that represents a single screen. It is like a Frame in AWT.ViewA view is the UI element such as button, label, text field etc. Anything that you see is a view.IntentIntent is used to invoke components. It is mainly used to:
Intent intent=new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse("http://www.javatpoint.com")); startActivity(intent); ServiceService is a background process that can run for a long time.There are two types of services local and remote. Local service is accessed from within the application whereas remote service is accessed remotely from other applications running on the same device. Content ProviderContent Providers are used to share data between the applications.FragmentFragments are like parts of activity. An activity can display one or more fragments on the screen at the same time.AndroidManifest.xmlIt contains informations about acvities, content providers, permissions etc. It is like the web.xml file in Java EE.Android Virtual Device (AVD)It is used to test the android application without the need for mobile or tablet etc. It can be created in different configurations to emulate different types of real devices.PREVIOUS NEXT |
Android Core Building Blocks
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment