Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Why we use ANR and what is ANR?

Answer»

Why we use ANR and what is ANR?
First we will TAKE FULL form of ANR. ANR means Application Not RESPONDING. And its a dialog box which is appears if the application is no longer responding. So its a messages which SHOWS that application is not responding.

2.

Different version of Android and Latest version with details

Answer» DIFFERENT VERSION of Android and Latest version with DETAILS
Below image will HELPS you to understand all versions of android with there name and security conversion with details


Android Version
3.

Why and what database used in Android?

Answer»

Why and what DATABASE USED in Android?
SQLite is the database which is used in Android. Because its and opensource and lighweight RELATIONAL database for MOBILE devices. And its a GOOD choice for mobile devices.

4.

Different 7 step to setup Android for Eclipse IDE

Answer»

Different 7 step to setup Android for ECLIPSE IDE
Below are the 7 main step to setup Android for Eclipse IDE
(1)FIRST step is to install the JDK
(2)Now in 2nd is to download and install the Eclipse for DEVELOPING android application
(3)Now in 3rd step we will download and install the android SDK
(4)In 4th step we will install the ADT pluging for eclipse
(5)In 5th step we will configure the ADT PLUGIN
(6)In 6th step we will CREATE the AVD
(7)In last step we will create a hello android application

5.

Write 15 most usefull Android emulators for PC and Mac of 2020?

Answer» WRITE 15 most useful Android emulators for PC and Mac of 2020?
Below are the list of 15 most useful Android emulators for PC and Mac:-
(1)LDPlayer
(2)Android Studio EMULATOR
(3)ARChon
(4)Bliss OS
(5)Bluestacks
(6)GameLoop
(7)Genymotion
(8)MEmu
(9)Nox
(10)PHOENIX OS
(11)PrimeOS
(12)REMIX OS Player
(13)Xamarin
(14)YouWave
(15)Custom build by us
6.

What is Toast in Android with syntax?

Answer»

What is TOAST in Android with syntax?
Toast will covers the expanse of space required for messages and recent activity done by the users which remains visible and interactive.
(1)Toast is displayed on top of the MAIN CONTENT of an activity and only remains visible for a short time period.
(2)Toast notification is a message that pops up on the window in android.
(3)Toast notification automatically fades in and out and does not accept interaction events.
(4)We can create Toast by using the android.widget.Toast class
(5)We use android toast which can be used to display information for a short SPAN of time.

Syntax of Toast creation:-
Toast.makeText(ProjectActivity.this, "Our message here", Toast.LENGTH_LONG).show();

7.

Do you have any idea about the LINUX ID in android?

Answer»

Do you have any idea about the LINUX ID in android?
EVERYTIME a unique Linux ID is assigned to every application in android. And this is used to TRACK a process.

8.

Is it possible for two android application to share Same linux number id and VM?

Answer»

Is it possible for TWO android APPLICATION to SHARE Same linux number id and VM?
To share same linux number id and VM two application MUST agree to sign in with same certificate.

9.

What are the different storage methods in Androids?

Answer»

What are the different storage methods in Androids?
As all of us know every non-trival application will have to store data in one or another way. And data can be any of any forms like user settings, application settings, user data, images or some cache data. Below are several options to see persistent application data:-
(1)Shared Preferences
(2)Internal Storage
(3)EXTERNAL Storage
(4)SQLite Databases

(1)Shared Preferences:-We generally use this to save primitive data in key-value pairs. Here key must be a string and value can of one like Boolean, float, int long or can be of string. Internally it will stores data in XML file in PRIVATE directory. An app can have MULTIPLE Shared Preferences files. Ideally, you will want to use Shared preferences to store application preferences.

(2)Internal Storage:-As we also know there are lots of situation where we want persist data but we also know there is LIMIT on shared preferences. The Internal Storage data storage method is specifically for those situations where you need to store data to the device FILESYSTEM. And this data we not want to read by other app.

(3)External Storage:-app_private folder is located in the Android/data directory, and is also deleted when your app is uninstalled. To save (and/or read) files to the device s external storage, your app must request for the WRITE_EXTERNAL_STORAGE permission. If you only want to read from the External Storage without writing, request for the READ_EXTERNAL_STORAGE permission. From Android 4.4, we can actually write to a private external storage folder without requesting WRITE_EXTERNAL_STORAGE.

(4)SQLite Databases:-Android provides support for apps to use SQLite databases for data storage. Databases created are app specific, and are available to any class within the app.

10.

What do you understand by Sensors in Android?

Answer»

What do you understand by Sensors in Android?
As we know sensors is something guess or some motion monitor. In Android platform provides many of the sensors which is basically used to record the motion of device. There are number of sensor TYPES as given below
(1)Gravity
(2)Linear ACCELERATION
(3)Rotation vector
(4)Significant motion
(5)Step Detector
(6)Step counter
And the sensors possible architectures vary with different types as given above. All of above sensors are either hardware-based or can be software-based.

11.

Do you know the ADT in Android?

Answer»

Do you know the ADT in ANDROID?
ADT is used to DEVELOP APPLICATIONS and test the APPLICATION and full form of ADT is Android DEVELOPMENT Tool.

12.

Is Android hack proof?

Answer»

Is ANDROID HACK PROOF?
CHOOSE the correct option from below list
(1)YES
(2)No

Answer:-(2)No

13.

Name the four main exceptions in Android?

Answer» NAME the FOUR main exceptions in Android?
Below are the four main exceptions in Android:-
(1)Inflate Exception
(2)Surface.OutOfResourceException
(3)SurfaceHolder.BadSurfaceTypeException
(4)WindowManager.BadTokenException
14.

Different language and code for android?

Answer» DIFFERENT LANGUAGE and code for android?
Region code of some common languages have been GIVEN in the table below
15.

Which company developed android?

Answer»

Which COMPANY DEVELOPED android?
Choose the correct option from below list
(1)Apple
(2)GOOGLE
(3)Android Inc
(4)Nokia

Answer:-(3)Android Inc

16.

How can we pass data to sub activities in Android?

Answer»

How can we pass data to sub activities in ANDROID?
Here in android we can use BUNDLES to pass data to different sub activities. And there ate HashMaps which take trivial data TYPES. And these bundles TRANSPORT information from ONE activity to another. Below is the syntax for the same:-

Bundle bobj=new Bundle();
bobj.putString("Email","testtest.com");
i.putExtras(bobj); //here i is intent

17.

Why do we want to avoid running the update operations on our UI thread?

Answer»

Why do we want to avoid running the update operations on our UI thread?
Choose the correct option from below list
(1)It is a RESOURCE hog
(2)The update operations only work on a separate thread
(3)Any delay will cause our application to appear sluggish
(4)All of the above

Answer:-(3)Any delay will cause our application to appear sluggish

18.

Is Android available in ROM?

Answer»

Is ANDROID available in ROM?
Choose the correct option from below LIST
(1)YES
(2)No

Answer:-(2)No

19.

Which of these main life cycle commands is called when the service is started?

Answer»

Which of these MAIN LIFE cycle commands is called when the service is STARTED?
Choose the correct option from below LIST
(1)onCreate()
(2)onStartCommand()
(3)onDestroy()
(4)onBind()

Answer:-(2)onStartCommand()

20.

Name the different key loops when we monitor any activity in Android?

Answer»

Name the different key loops when we monitor any activity in Android?
Below are the 3 MAIN key loops when we monitor any activity in Android:-
(1)Entire lifetime:-This is an activity which is happens between onCreate and ONDESTROY.
(2)Visible lifetime:-This is one of the activity which is happens between onStart and onStop.
(3)Foreground Lifetime:-This is an activity which happens between onResume and onPause.

21.

Name the API which is used to manage all aspects of WIFI connectivity with syntax?

Answer»

Name the API which is used to manage all aspects of WIFI connectivity with SYNTAX?
Name of WIFI API is WiFiManager which is used to manage all the aspects of WiFi connectivity. And to INSTANTIATE this class we used method name is getSystemService. And syntax is GIVEN below:-


WifiManager Wifiobjmain;
Wifiobjmain = (WifiManager) getSystemService(CONTEXT.WIFI_SERVICE);


And to get the scan list of wirless networks we need to register our broadcastReceiver. And to register we USE registerReceiver method with argument of our receiver class object. And syntax for this is given below:-


class WifiScanReceiver extends BroadcastReceiver
{
public void onReceive(Context c, Intent intent)
{
}
}
WifiScanReceiver wifiRecieverobj = new WifiScanReceiver();
registerReceiver(wifiRecieverobj, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION));



And to start above scan we use startScan method of WifiManager class. And this method returns a list of ScanResult objects. And to access this object we use get method. ANd systax for that is given below:-


List< ScanResult> wifiScanList = mainWifiObj.getScanResults();
String data = wifiScanList.get(0).toString();

22.

Do you have any idea about Nine-Patch images tool in Android?

Answer»

Do you have any idea about NINE Patch images tool in Android?
IN android we can change bitmap images into nine DIFFERENT sections and these sections are given below:-
(1)FOUR CORNERS
(2)Four Edges
(3)An axis

23.

What is SQLite and how it is differ from client server database management systems in android?

Answer»

What is SQLite and how it is differ from client server database management systems in ANDROID?
First we will discuss some basic of SQLite its a open-source relational database of choice for Android APPLICATIONS. And SQLite ENGINE is ALWAYS a serverless, transactional and self-contained. SQLite engine is linked integrally with the application instead of typical client-server relationship approach. Here library can also called dynamically and MAKES use of simple function calls that reduce latency in database access.

24.

How Nine-Patch Image different from a Regular Bitmap?

Answer»

How NinePatch Image different from a Regular Bitmap?
It is bitmap resizable RESOURCE which can be EITHER be used as background or other images on device. And this NinePatch class permits drawing a bitmap in 9 sections. Here four corners are unscaled and the four edges are scaled in ONE axis and the MIDDLE is scaled in both AXES.

25.

Define Apk Format in term of Android?

Answer»

Define APK Format in TERM of Android?
APK file is compressed file or we can say its a combindation of DIFFERENT files below are some list of files COMBINED in it.
(1)AndroidManifest.xml file
(2)Application code (.DEX files)
(3)Resource files
(4)Some other files.
A project is compiled into a single .apk file.

26.

While running on Angular with node js i was getting error while running command ng g c componentname?

Answer»

While running on Angular with NODE js i was getting error while running command ng g c componentname?
Usally we are getting some permission error while running below command in angualr PROJECT when we are adding NEW component in angular project by below command

>ng g c componentname

in above command we will get some ACCES realted issue with powershell script as accessright issue to overcome this issue we will use below command on powershell command prompt by running as administrator.

Error:-running scripts is disabled on this system. For more information, SEE about_Execution_Policies at ng generate component

command to get rid of above error is given below

>Set-ExecutionPolicy -ExecutionPolicy Unrestricted

27.

Name the four main dialog boxes used in Android Applications?

Answer» NAME the four main dialog boxes used in Android Applications?
Below are the four main dialog boxes used in Android Applications.
(1)AlertDialog:-In android application it works like an alert dialog box which can have 0-3 buttons and a list of SELECTABLE elements.
(2)ProgressDialog:-In android application progress dialog bar is called EXTENSION to AlertDialog. And we can also add buttons to it. In extension it will shows a progress wheel or a progress bar.
(3)DatePickerDialog:-In android application this Date Picker Dialog is used for selecting a date by the user.
(4)TimePickerDialog:-In android application this TIME Picker Dialog is used for selecting time by the user.
28.

Explain what is Android G1 Phone?

Answer»

Explain what is Android G1 Phone?
Android T-Mobile G1 phone is first android POWERED MOBILES phone of WORLD which is developed by HTC and T-Mobile.

29.

Define some basic of DDMS in Android?

Answer»

Define some basic of DDMS in Android?
First we will knows about the DDMS. DDMS full form is Dalvik Debug Monitor Server. DDMS comes natively with Android and which contains a many number of USEFUL debugging features. And list is given below
(1)location data spoofing
(2)port-forwarding
(3)network traffic TRACKING
(4)incoming call/SMS spoofing
(5)thread and heap information
(6)screen capture
(7)ability to simulate network STATE, SPEED, and latency.

30.

What are the main elements in Android Architecture

Answer»

Below are the 4 main ELEMENTS in Android Architecture
(1)LINUX Kernel
(2)Android FRAMEWORK
(3)Android Applications
(4)Libraries

31.

Code to call another activity in Android?

Answer»

Code to call ANOTHER ACTIVITY in ANDROID?
Below is the code to call another activity in Adroid

Intent i = NEW Intent(getApplicationContext(), ActivityTwo.class);
startActivity(i);

32.

Can we change the name of any application after its deployment in Android?

Answer»

Can we CHANGE the NAME of any application after its deployment in ANDROID?
We can change the name but our recommendation is not to do after its deployment. And this MAY break some functionality.

33.

What is DDMS and its features?

Answer»

What is DDMS and its FEATURES?
DDMS (Dalvik Debug Monitor Server) is a debugging tool from Android SDK. It is able to monitor operations in emulator and in real devices too. DDMS ALSO reports the DETAILS of every processing thread and timespent either in app or in Android OS. Below are the some features of DDMS:-
(1)Thread and Heap information
(2)Location Data Spoofing
(3)Network Traffic TRACKING
(4)Incoming Call and SMS Spoofing
(5)Port Forwarding Services
(6)Screen Capture on Device
(7)Logcat

34.

What is Open Handset Alliance (OHA)

Answer»

What is OPEN Handset Alliance (OHA)
We can say that its a consortium of 84 companies for EXAMPLE AKM,Garmin, Teleca, Ebay, Intel, Google, Samsung etc. It was first established on 5th November 2007 which is led by Google. It was committed by advance open standards which provides services and deploy handsets USING the ANDROID PLATEFORM.

35.

What is Android and used for

Answer» ANDROID is nothing but a operating system which is BASED on LINUX. Android is used on smart phones, Google TV, tablets and MANY more.
36.

What is basic defination of Intents in android

Answer» INTENTS is basically used to DISPLAY messages of notification WITHIN the Android enabled device to android user. Intents is basically used to notify the android user when a particular condition OCCURS and then users have the option or we can say user have opportunity to respond to the notification.
37.

What is Android Basic definition

Answer»

We can say Android is an open source system or we can say open source operating system which is mainly used on MOBILE devices just LIKE different tablets and different Smartphones. Its all operations are mainly used on the Linux kernel system which comprises of rich elements that helps and enables DEVELOPERS to create and run apps that are ABLE to carry out both basic and advanced functions for android apps.