Correct Answer : Get Lastest Questions and Answer : Explanation: Create an intent with a given action. All other fields (data, type, class) are null. Note that the action must be in a namespace because Intents are used globally in the system -- for example the system VIEW action is android.intent.action.VIEW; an application's custom action would be something like com.google.app.myapp.CUSTOM_ACTION.
Question : Which code acquires a MediaPlayer class instance?
Correct Answer : Get Lastest Questions and Answer : Explanation: MediaPlayer.create() needs a Context as first parameter. Pass in the current Activity and it should work.
public void playClick(Context context){ mp = MediaPlayer.create(context, R.raw.click); mp.start(); }