Correct Answer: AlertDialog : An alert dialog box supports 0 to 3 buttons and a list of selectable 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
2. What is the TTL (Time to Live)? Why is it required?
Correct Answer: 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
3. What is the role of compatibility that is used in Android?
Correct Answer: The compatibility is defined in terms of android compatible devices that run any application This application is written by third party developers using the Android platform that comes in the form of SDK and NDK There are many filters that are used to separate devices that are there to participate in the compatibility mode for the Android applications The devices that are compatible require the android to approve it for their trademark The devices that are not passes the compatibility are just given in the Android source code and can use the android trademark The compatibility is a way through which the user can participate in the Android application platform The source code is free to use and it can be used by anyone
4. What are the multimedia features involved in making Android popular?
Correct Answer: There is the demand for the rich multimedia that involves many features that are used till now to make the Android market more popular in all the phases The application includes the following: ? Mixable audio effects ? developer can easily create audio environments using the API key that is provided with it like creating equalization, bass boost, headphone feature, etc The android provide the tools that can be used to mix the audio effects and apply it ? There is also support for new media formats like VP8 open video compression format that uses a container format that can run on all the platforms and add the support for AAC and AMR encoding The applications provided allow higher quality video to be captured ? The application allows the access to multiple cameras that allows the use of APIs to include the camera and its properties in one The platform provides the application to include the camera with high and low resolution
5. What are the different modes of operations used in services for Android?
Correct Answer: There are two modes of operations that are necessary to run depending on the value returned by the startcommand() The modes are as follows: - START_STICKY: this mode is used for the services that are explicitly started and stopped according to the need and the requirement of the user - START_NOT_STICKY or START_REDELIEVER_INTENT: this service mode is used for services that are running only when the processing command sent to them That means these run on the basis of the command that is passed to them by giving the instruction of execution - Clients uses the ContextbindService() that is used to get the persistent connection for a service To create a service that is not already running the command onCreate is used
6. What is the procedure to check status of an activity in Android?
Correct Answer: The status of an activity can be start and stop only The start means the activity is up and running It is in execution state and performing some actions Whereas the stop state defines that the activity is being stopped and performing no action on the system To see or check the status of an activity there is a command that has to be used like NEW_TASK_LAUNCH flag that keeps the track of all the activities that are running and the main command under which the flag resides is given as startActivity() call To bring the activity stack in front of the process that is already running require the command mentioned above to be used The activity can be started remotely by using the remote services These services allow easy interaction with the client and provide the sample to show it on the local server
7. What are the security measures that are taken to make Android secure?
Correct Answer: Android uses many security measures to keep them away from the hackers They have designed by making changes to the devices or installing a software service on the mobile Android application uses sandbox that is very popular and allow limited access to the information that is very private and sensitive for the user It allows the permissions to be set for the use of the information The security measures that are provided by android is the use of the encryption of the messages that allow user to remain without worry about there phone security They also consists of user terms and agreements that also taken care of Most of the time android doesn't allow other applications to run on their system but it can be done by using different resources that are available on-line As, android is open source it is not fully secure but lots of security issues are being solved for make it more popular and bug free
Correct Answer: Video: Videos can be edited, shared High quality VGA video can be shot in portrait or landscape - 3 Megapixel Camera: Still photos with greater quality can be taken - Voice control: It recognizes the names in contacts and recognizes the music on iPod - Compass: iPhone 3GS has built-in digital compass, used to point the way - Internet Tethering: Internet surfing can be done from anywhere A 3G connection can be shared on Iphon3 with Mac notebook or laptop
Correct Answer: It is similar to MacOS X architecture It acts as an intermediary between the iPhone and iPod hardware an the appearing applications on the screen The user created applications never interact directly with the appropriate drivers, which protects the user applications from changes to the hardware
10. Describe the functionality of accelerometer of an iphone
Correct Answer: iPhone responds to motion using a built-in accelerometer The accelerometer detects the movement and changes the display accordingly, at the time of rotating iPhone from portrait to landscape