|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectandroid.content.BroadcastReceiver
org.android.activityminer.app.util.ProgressBroadcastReceiver
public abstract class ProgressBroadcastReceiver
Broadcast receiver for progress changes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class android.content.BroadcastReceiver |
---|
BroadcastReceiver.PendingResult |
Field Summary | |
---|---|
static String |
ACTION
Progress broadcast intent action |
private String |
extraMaxProgress
The intent max progress extra. |
private String |
extraMessage
The intent message extra. |
private String |
extraProgress
The intent progress extra. |
private String |
extraTitle
The intent title extra. |
Constructor Summary | |
---|---|
ProgressBroadcastReceiver(Context context)
Constructor |
Method Summary | |
---|---|
protected abstract void |
onProgressChanged(CharSequence title,
CharSequence message,
int maxProgress,
int progress)
Handler for progress changes |
void |
onReceive(Context context,
Intent intent)
|
Methods inherited from class android.content.BroadcastReceiver |
---|
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ACTION
private final String extraTitle
private final String extraMessage
private final String extraProgress
private final String extraMaxProgress
Constructor Detail |
---|
public ProgressBroadcastReceiver(Context context)
context
- the contextMethod Detail |
---|
public void onReceive(Context context, Intent intent)
onReceive
in class BroadcastReceiver
protected abstract void onProgressChanged(CharSequence title, CharSequence message, int maxProgress, int progress)
title
- the task titlemessage
- the messagemaxProgress
- the progress maximumprogress
- the new progress
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |