21⟩ Define APK format in Android?
APK termed as Application package file is a format that is used to distribute and install the application software for android, and middleware on the android operating system.
“Learn Windows Communication Foundation (WCF) SDK Interview Questions and Answers”
APK termed as Application package file is a format that is used to distribute and install the application software for android, and middleware on the android operating system.
To make an APK file, first android is compiled and then all of its parts are grouped in one file termed as package. The package consists of the entire program's code (.dex files), resources, manifest file etc. The file is saved with .apk extension.
Android uses Google translator to translate data from one language into another language using XAMPP. XAMPP is used to transmit the data. The steps which have to be followed are: Type the message in your language, go to the language setting, a list will be displayed there, select the language from the list to convert your text.
The following are the advantages of Android:
The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like AT&T and Orange will be broken by Google Android.
Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized
Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.
Imagine a situation that you are in a country where no one understands the language you speak and you can not read or write. However, you have mobile phone with you.
With a mobile phone with android, the Google translator translates the data of one language into another language by using XMPP to transmit data. You can type the message in English and select the language which is understood by the citizens of the country in order to reach the message to the citizens.
Android supports 4 dialog boxes:
AlertDialog:
An alert dialog box supports 0 to 3 buttons and a list of select-able elements, including check boxes and radio buttons. Among the other dialog boxes, the most suggested dialog box is the alert dialog box.
ProgressDialog:
This dialog box displays a progress wheel or a progress bar. It is an extension of AlertDialog and supports adding buttons.
DatePickerDialog:
This dialog box is used for selecting a date by the user.
TimePickerDialog:
This dialog box is used for selecting time by the user.
Specify android id, layout height and width as depicted in the following example.
<ListView android:id="@+id/ListView01" android:layout_height="wrap_content" android:layout_width="fill_parent"></ListView>
TTL is a value in data packet of Internet Protocol. It communicates to the network router whether or not the packet should be in the network for too long or discarded. Usually, data packets might not be transmitted to their intended destination within a stipulated period of time. The TTL value is set by a system default value which is an 8-bit binary digit field in the header of the packet. The purpose of TTL is, it would specify certain time limit in seconds, for transmitting the packet header. When the time is exhausted, the packet would be discarded. Each router receives the subtracts count, when the packet is discarded, and when it becomes zero, the router detects the discarded packets and sends a message, Internet Control Message Protocol message back to the originating host.
Intent is basically an abstract description of an operation that has to be performed for communication. Sticky Intent is also a type of intent which allows the communication between a function and a service. For example: sendStickyBroadcast() performs send Broadcast(Intent) which stays even after the broadcast is complete. It helps in retrieving the data quickly. The message ACTION_BATTERY_CHANGED of an operating system is an example of it.
AOSP stands for Android Open-source project that maintains Android software and keep track of the new versions. It can be used for any purpose including the devices that are not compatible with other devices. It is related to the Android Compatibility Program as it defines the implementation of Android that is compatible with the third party apps.
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.
Android provides many options for storage of persistent data. It provides the solution according to your need. The storages which have been provided in Android are as follows:
Shared Preferences:
Store private primitive data in key-value pairs
Internal Storage:
Store private data on the device memory.
External Storage:
Store public data on the shared external storage.
SQLite Databases:
Store structured data in a private database.
Network Connection:
Store data on the web with your own network server.
Multiple choice list can be viewed by making the CheckBox android:id value be "@android:id /text1″. That is the ID used by Android for the CheckedTextView in simple_list_item_multiple_choice.
Yes.
Permission.PROCESS_OUTGOING_CALLS: Will Allow an application to monitor, modify, or abort outgoing calls. So using that permission we can monitor the Phone calls.
Activity provides an interface for users to interact with the application and take an action;
for instance: Login to a website. The different screens/windows of an application are the different activities. An application generally has multiple activities.
Activities are like the pages in a website. For instance, in a Facebook app, the login screen is one activity, and the news feeds from your friends after signing in would be another one.
Yes.
A user defined JSON, XML, bitmap, or other file, injected into the application build process, which can later be loaded from code.
The main components of Android are:
1) Activity
2) Intent
3) Service
4) Broadcast receiver
5) Content Provider
An alert dialog box supports 0 to 3 buttons and a list of select-able elements, including check boxes and radio buttons. Among the other dialog boxes, the most suggested dialog box is the alert dialog box.