public class EpisodeDesc
extends Activity
Modifier and Type | Field and Description |
---|---|
static DownloadTask |
dltask |
OnClickListener |
launchDelete
Listener for when the "delete" button is pressed.
|
OnClickListener |
launchDownload
Listener for when the "download" button is pressed.
|
OnClickListener |
launchPlay
Listener for when the "play" button is pressed.
|
OnClickListener |
launchStream
Listener for when the "stream" button is pressed.
|
static java.text.DecimalFormat |
twoDec |
Constructor and Description |
---|
EpisodeDesc() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatBytes(long input)
Formats a number given in Bytes into a human readable format.
|
static java.lang.String |
getExtension(java.lang.String filename)
Finds the file extension of a path.
|
void |
onCreate(Bundle savedInstanceState)
Called when the activity is first created.
|
boolean |
onCreateOptionsMenu(Menu menu)
Called when it is time to create the menu.
|
boolean |
onOptionsItemSelected(MenuItem item)
Called when an item in the menu is pressed.
|
void |
onResume()
Called when the activity is resumed, like when you return from another activity or also when it is first created.
|
public static final java.text.DecimalFormat twoDec
public static DownloadTask dltask
public OnClickListener launchPlay
public OnClickListener launchDelete
public OnClickListener launchStream
public OnClickListener launchDownload
public void onCreate(Bundle savedInstanceState)
savedInstanceState
- Um I don't even know. Read the Android documentation.public static java.lang.String getExtension(java.lang.String filename)
filename
- The filename to examinepublic boolean onCreateOptionsMenu(Menu menu)
menu
- Um, the menupublic boolean onOptionsItemSelected(MenuItem item)
item
- The menu item ID that was pressedpublic void onResume()
public static java.lang.String formatBytes(long input)
input
- The input number to examine in bytes