Sapient Company Programming

Bob, and Android programmer, wants to set trigger to Alarm of his Android phone after three days.
What would Bob do to achieve this?

1) Bob would use AlarmManager and call set() method to set after three days. Even if the phone switches off in between the alarm would ring.
2) Bob would use AlarmManager and call set() method to set after three days. Before switching the phone off Bob would maintain all the alarm details in the database and recreate it after switching it on.
3) Bob has to do nothing as Android takes care of automatic Alarm Triggering events
4) Since all alarm details will get killed after phone gets switched off. what Bob is trying to achieve is not possible.

Read Solution (Total 1)

Sapient Other Question

Which of the following statements about the content provider component of Android systems is/are correct?

A. Intents can be used to start a content provider.
B. Intents cannot start a content provider.
C. Content provider supports shared preferences.

1) Statement C is incorrect
2) Both the statements B and C are incorrect
3) Statement B is correct
4) All the statements are wrong
In Java______ is related to compile time polymorphism, while______ is related to run time polymorphism.

1) Overloading, inheritance
2) Inheritance, Overriding
3) Overloading, Overriding
4) Overriding, Overloading