Skip to main content

Posts

Showing posts with the label intents

Interview Questions 31 -- 40

What is the importance of having an emulator within the Android environment? The emulator provides an interface that acts as if it were an actual mobile device. They can write and test codes, and even debug. Emulators are a safe place for testing codes especially if it is in the early design phase. Differentiate Activities from Services. Activities can be closed, or terminated anytime the user wishes. On the other hand, services are designed to run behind the scenes, and can act independently. Most services run continuously, regardless of whether there are certain or no activities being executed. What are containers? Containers, as the name itself implies, holds objects and widgets together, depending on which specific items are needed and in what particular arrangement that is wanted. Containers may hold labels, fields, buttons, or even child containers, as examples. What is Orientation? Orientation, which can be set using setOrientation(), dictates if the LinearLayout is...

Interview Question 21 - 30

See more basics on Android along with interview questions Explain about the Android Exceptions ? The following are the exceptions that are supported by Android InflateException :         When an error conditions are occurred, this exception is thrown Surface.OutOfResourceException:         When a surface is not created or resized, this exception is thrown SurfaceHolder.BadSurfaceTypeException:          This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS WindowManager.BadTokenException:          This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken. What is Drawable? A compiled visual resource that can be used as a background, title, or other part of the screen. It is compiled into an android.graphics.drawable subclass. What is an Intent Receiver? An a...

Interview Questions 11 -- 20

See more basics on Android along with interview questions Talk on Android OS ?                  Android is a Linux-based operating system designed primarily for touchscreen mobile devices such as smartphones and tablet computers. Initially developed by Android, Inc., which Google backed financially and later bought in 2005.Android is the world's most popular mobile platform. Android is a Linux-based mobile phone operating system developed by Google. Android is unique because Google is actively developing the platform but giving it away for free to hardware manufacturers and phone carriers who want to use Android on their devices. What is Android SDK ?                 A software development kit that enables developers to create applications for the Android platform. The Android SDK includes sample projects with source code, development tools, an emulator, and required libraries to build An...

Interview Questions 1 -- 10

See more basics on Android along with interview questions What is definition of Android ?                Android is a software stack for mobile devices that middleware, operating systems,    and application-specific key. The application must be implemented in its own process    and the Dalvik virtual machine interface. DVM is used effectively run multiple virtual    machines. Java byte code is executed which is converted file format called Dex. How the data will be stored in Android or types of data stored in Android ?    Internal Storage   Connecting to a network    General preferences    SQLite database   External Storage What are the components of Android Application ?                Android is written in java programming language.Android application are composed of       some of the main com...

Intent and Intent Types-Explicit Intent & Implicit Intents

  See more basics on Android  All the components are activated by a message called Intents. Intents bind individual components to each other at runtime, whether the component belongs to your application or another. An intent is created with an Intent object, which defines a message to activate either a specific component or a specific type of component—an intent can be either explicit or implicit, respectively. An intent is an abstract description of an operation to be performed. Intents are send to the Android system via a method call, e.g. via the startActivity() method. They can be said as a message which allow android components to request functionality from other components. Intent Filters: Activities and intent receivers include one or more filters in their manifest to describe what kinds of intents or message they can handle or want to receive.An intent filters lists a set of requirements, such as datatypes,action requested and URI format that the intent or messa...

Android Application Fundamentals or Components

See more basics on Android along with interview questions Android is written in java programming language.Android application are composed of some of the main components such as: Activities Services Content providers Broadcast receivers Intents, Resources(such as strings and graphics), Notification signalings(light,sound,dialog), are also part of the components. All these components play different role in the overall application and each one can be activated individually. Activities :           An activity represents a single screen with a user interface.Suppose if there is a listview and if clicking on each row it traverse to another page ,then the screen showing listview is an activity and the next page is another activity,where each one is independent of the others. An activity is implemented as a subclass of Activity ,that why we use see activity life cycle here : public class MainActivity extends Activity { } ...