Skip to main content

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 components such as:
  •     Activities
  •     Services
  •     Content providers
  •     Broadcast receivers  
Explain each components of Android Application ?
  see this post

Explain life cycle of Android Appllication ?
              An activity is usually a single screen that the user sees on the device at one time. 
An application typically has multiple activities, and the user flips back and forth 
among them. As such, activities are the most visible part of your application.Activity 
Manager is responsible for creating, destroying, and managing activities. For example, 
when the user starts an application for the first time, the Activity Manager will create 
its activity and put it onto the screen. Later, when the user switches screens, the Activity 
Manager will move that previous activity to a holding place. This way, if the user wants to 
go back to an older activity, it can be started more quickly. Older activities that the user 
hasn’t used in a while will be destroyed in order to free more space for the currently active 
one. This mechanism is designed to help improve the speed of the user interface and thus 
improve the overall user experience.
see more :

What is an Android apk format?
              APK file is compressed AndroidManifest.xml file with the extension. Apk.
This android package file contains all of the files related to a single Android app.
This is the compressed collection of
  •     manifest file
  •     application code
  •     resource files
  •     and other files
What is an Intent ?
              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.
see more :
http://eazyprogramming.blogspot.in/2013/05/intent-and-intent-types-explicit-intent.html

What are types of Intent ?
               Explicit and Implicit Intents
see more :
http://eazyprogramming.blogspot.in/2013/05/intent-and-intent-types-explicit-intent.html

What are 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 message must fulfil. 

Explain Android Architecture?
see more : 

Comments

Popular posts from this blog

Getting started with IBM worklight Mobile App In Eclipse using Ionic / Angularjs

Install Eclipse and add IBM MobileFirst Platform Studio 7.1.0 .  You can follow the following steps : Goto Help > > Eclipse Market Place >> and search for IBM MobileFirst Platform Studio 7.1.0 . and u can add and install thet plugin and get started with ionic - angular app development. You can start the new project and so can add your Environment needed and start development. After creating the sample project you can add ionic bundle folder inside your application so that you get all the necessary features of ionic development. Details and other way of installation is explained here  

Spannable String in Android - URL Span ,Clickable Span, Rich-Style Formatting of Textview .....

See more Android Tutorials here....... Faster Loading images in GridViews or ListViews Spannable brings lots of possibility to TextView, includes displaying various appearance of a Text and onClick callbak. The SpannableString class allows you to easily format certain pieces which are called spans of a string, by applying CharacterStyle ie,color, font, ormake it a link . Here is an example where, explained how to use spannable string to give font size, color, linking a text via clickable span and through URL Span and to strike through the text. Lets go through the example : import android.os.Bundle; import android.text.SpannableString; import android.text.method.LinkMovementMethod; import android.text.style.ClickableSpan; import android.text.style.ForegroundColorSpan; import android.text.style.RelativeSizeSpan; import android.text.style.StrikethroughSpan; import android.text.style.URLSpan; import android.view.View; import android.widget.TextView; import android.widget.Toast; ...

Passing Images between Activities in Android

in First Activity: Intent intent=new Intent(FirstClass.this, SecondClass.class); Bundle bundle=new Bundle(); bundle.putInt("image",R.drawable.ic_launcher); intent.putExtras(bundle); startActivity(intent); in Second Acticity: Bundle bundle=this.getIntent().getExtras(); int pic=bundle.getInt("image"); v.setImageResource(pic); another method: in First Activity: Drawable drawable=imgv.getDrawable(); Bitmap bitmap= ((BitmapDrawable)drawable).getBitmap(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.PNG, 100, baos); byte[] b = baos.toByteArray(); Intent intent=new Intent(Passimage.this,myclass.class); intent.putExtra("picture", b); startActivity(intent); in Second Acticity: Bundle extras = getIntent().getExtras(); byte[] b = extras.getByteArray("picture"); Bitmap bmp = BitmapFactory.decodeByteArray(b, 0, b.lengt...