Skip to main content

Posts

Showing posts with the label components

What is the difference between Services, Thread and an AsyncTask in Android?

Thread Example n ANDROID -- Timer Thread Example Non Runnable States in Multithreading - Different states while thread is in runnable states What is a thread in java ? How to write interfaces in java or Android? More on Android ? Service is like an Activity but has no interface. Probably if you want to fetch the weather for example you won’t create a blank activity for it, for this you will use a Service. A Thread is a Thread, probably you already know it from other part. You need to know that you cannot update UI from a Thread. You need to use a Handler for this, but read further. An AsyncTask is an intelligent Thread that is advised to be used. Intelligent as it can help with it’s methods, and there are two methods that run on UI thread, which is good to update UI components.

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 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...