• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/12

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

12 Cards in this Set

  • Front
  • Back
What is the class hierarchy of Media Controller?
Object -> android.view.View -> android.view.ViewGroup -> andriod. widget.FrameLayout -> android.widget.MediaController
Can MediaController be instantiated from xml?
Functions like show() and hide() have no effect when MediaController is created in an xml layout. MediaController will hide and show the buttons according to these rules:
Describe how does set of controls be created by Media Player? Using what method?
setAnchorView()!
he MediaController will create a default set of controls and put them in a window floating above your application. Specifically, the controls will float above the view specified with setAnchorView(). The window will disappear if left idle for three seconds and reappear when the user touches the anchor view.
How to unhide "previous" and "next" buttons in Media Controller?
Call setPrevNextListeners().
The "previous" and "next" buttons are hidden until setPrevNextListeners() has been called
How to make visible but disabled "previous" and "next" buttons in Media Controller?
setPrevNextListeners() was called with null listeners
In MediaController, the "rewind" and "fastforward" buttons are shown unless....
call MediaController(Context, boolean) constructor with the boolean set to false
Run videoView.setVideoPath(R.raw.budhist1);
What is the result?
Compile error.
videoView.setVideoPath(android.resource://raw/);
How to setup VideoView to play remote video source?
vv.setVideoURI(Uri.parse("http://www.androidbook.com/akc/filestorage/android/documentfiles/3389/movie.mp4"));
MediaController controller = new MediaController(MainActivity.this, true);
controller.setEnabled(true);
vv.setMediaController(controller);
How to upload app to external sd card on the phone?
android:installLocation="preferExternal"
What to add to manifest.xml to write to external drive?
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
What to add in manifest file ask to be granted internet access?
<uses-permission android:name="android.permission.INTERNET" />
What are the two main reasons you might want to mark an argument final?
First, if you're planning on using the argument in an anonymous inner class, then you must mark it final so that it can be referenced in that class.

The other common reason to mark arguments final is to prevent yourself from accidentally overwriting them. If you really don't want to change the arguments, then perhaps you should mark them final so that if you actually do, you'll get the error at compile-time rather than finding out at runtime that your code has a bug.