Sunday, February 25, 2018

Viva Questions For Android


 1 What Is Android ?


          Android Is Linux Based Operating System For Mobile Devices Such As Tablet Computers And Smartphones.
         

2 Different Between IOS And Android.


          Android Os:-

The Android Os By Google Is The Most Widely Used Platform For Smartphones And Tablets       On     The Market. It Was Introduced As A Collaborative Effort From The Open Handset Alliance (OHA), A Unit That Comprises Companies Such As Google, Htc, Sony, Dell, Samsung, Lg, T-Mobile, Motorola, And Many Others. This Is One Of The Reasons Smartphones From These Companies Are Released With The Android Os.
                            

          Apple IOS:-

Apple Has Enjoyed Much Success With Its Devices, As Each One Seems To Outsell The Previous Version. Since The Introduction Of Its First Touchscreen Device In 2007, Apple Devices Have Revolutionized The Mobile Phone Industry And Set The Bar High For Other Devices. The Ios Introduced With The First Iphone Now Operates On Ipods And Ipads As Well.

3 What Is The Use Of Manifeast File ?


The Answer Is The Jar File's Manifest. The Manifest Is A Special File That Can Contain Information About The Files Packaged In A Jar File. By Tailoring This "Meta" Information That The Manifest Contains, You Enable The Jar File To Serve A Variety Of Purposes.                      
                            

4 How Many Types Of Layout In Android ?


1        Linear Layout


Linear layout Is A View Group That Aligns All Children In A Single Direction, Vertically Or Horizontally.

2        Relative Layout


Relative layout Is A View Group That Displays Child Views In Relative Positions.

3        Table Layout


Table layout Is A View That Groups Views Into Rows And Columns.

4        Absolute Layout


Absolute layout Enables You To Specify The Exact Location Of Its Children.

 5        Frame Layout


The Frame layout Is A Placeholder On Screen That You Can Use To Display A Single View.


5 What Is Full Form Of APK ?


APK Stands For Android Application Package.

6 What Is Full Form Of DDMS ?


DDMS Stands For Dalvik Debug Monitor Service.

7 What Is R File ?


R.Java File Is An Auto-Generated File By AAPT (Android Asset Packaging Tool) That Contains Resource Ids For All The Resources Of Res/ Directory. When You Create Any Component In The Xml File, Id For The Corresponding Component Is Automatically Created In This File.

8 What Is Fragment ?


A Fragment Is Usually Used As Part Of An Activity's User Interface And Contributes Its Own Layout To The Activity. To Provide A Layout For A Fragment, You Must Implement The Oncreateview() Callback Method, Which The Android System Calls When It's Time For The Fragment To Draw Its Layout.

9 What Is Service ?


Service Is A Component That Is Used To Perform Operations On The Background Such As Playing Music, Handle Network Transactions, Interacting Content Providers Etc. It Doesn't Has Any UI (User Interface). The Service Runs In The Background Indefinitely Even If Application Is Destroyed.

10 What Is Toast Message ?


 A Toast Contains Message To Be Displayed Quickly And Disappears After Sometime. The Android.Widget.Toast Class Is The Subclass Of Java.Lang.Object Class. You Can Also Create Custom Toast As Well For Example Toast Displaying Image.

 11 What Is Intent ?


 Intents Are Objects Of The Android.Content.Intent Type. Your Code Can Send Them To The Android System Defining The Components You Are Targeting. For Example Via The Startactivity() Method You Can Define That The Intent Should Be Used To Start An Activity. An Intent Can Contain Data Via A Bundle.

No comments:

Post a Comment

Generate Even Numbers in a Range In PHP.

$start = 1; $end = 20; for ($i = $start; $i <= $end; $i++) {     if ($i % 2 == 0) {         echo $i . " is even.<br>";   ...