Classes | |
class | AlertDialogWrapper |
class | ProgressDialogWrapper |
Public Member Functions | |
void | chooseNewMasterClicked (View view) |
void | deactivateRobotClicked (View view) |
void | exchangeButtonClicked (View view) |
void | onActivityResult (int requestCode, int resultCode, Intent data) |
void | onAppClicked (final App app, final boolean isClientApp) |
void | onBackPressed () |
void | onCreate (Bundle savedInstanceState) |
boolean | onCreateOptionsMenu (Menu menu) |
boolean | onOptionsItemSelected (MenuItem item) |
RobotRemocon () | |
void | startMasterChooser () |
void | stopApplicationsClicked (View view) |
void | stopRobotApplication () |
void | validateRobot (final RobotId id) |
Protected Member Functions | |
void | init (NodeMainExecutor nodeMainExecutor) |
Dialog | onCreateDialog (int id) |
void | updateAppList (final ArrayList< App > apps, final ArrayList< App > runningApps) |
Protected Attributes | |
AppManager | listAppsSubscriber = null |
Package Functions | |
void | init (Intent intent) |
Private Member Functions | |
void | returnToRobotMasterChooser () |
void | stopProgress () |
Private Attributes | |
boolean | alreadyClicked = false |
ArrayList< App > | availableAppsCache |
long | availableAppsCacheTime |
Button | deactivate |
AlertDialogWrapper | errorDialog |
AlertDialogWrapper | evictDialog |
Button | exchangeButton |
ProgressDialog | progress |
ProgressDialogWrapper | progressDialog |
TextView | robotNameView |
ArrayList< App > | runningAppsCache |
boolean | runningNodes = false |
Button | stopAppsButton |
boolean | validatedRobot |
AlertDialogWrapper | wifiDialog |
Static Private Attributes | |
static final int | CLOSE_EXISTING = 0 |
static final int | MULTI_RAPP_DISABLED = 1 |
static final int | ROBOT_MASTER_CHOOSER_REQUEST_CODE = 1 |
Definition at line 81 of file RobotRemocon.java.
Definition at line 230 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.chooseNewMasterClicked | ( | View | view | ) | [inline] |
Definition at line 749 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.deactivateRobotClicked | ( | View | view | ) | [inline] |
Definition at line 785 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.exchangeButtonClicked | ( | View | view | ) | [inline] |
Definition at line 782 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.init | ( | NodeMainExecutor | nodeMainExecutor | ) | [inline, protected] |
This gets processed as soon as the application returns it with a uri - this is either as a result of the master chooser or as in the case when it has been relaunched by an application, from intents set by the application.
Here we configure the remocon environment for a particular robot, listing apps and providing the required triggers for interacting with that robot.
nodeMainExecutor |
Reimplemented from com.github.rosjava.android_remocons.robot_remocon.RobotActivity.
Definition at line 266 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.init | ( | Intent | intent | ) | [inline, package] |
Initialise from an intent triggered by either the returning robot chooser or a robot app.
Validation will occur slightly differently in both cases - when returning from the app, it will assume its already in control and skip the invitation step (see validateRobot).
This eventually passes control back to the generic init function (TODO: can probably incorporate this into that function).
intent |
Definition at line 327 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onActivityResult | ( | int | requestCode, |
int | resultCode, | ||
Intent | data | ||
) | [inline] |
The main result gathered here is that from the robot master chooser which is started on top of the initial RobotRemocon Activity. This proceeds to then set the uri and trigger the init() calls.
requestCode | |
resultCode | |
data |
Definition at line 372 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onAppClicked | ( | final App | app, |
final boolean | isClientApp | ||
) | [inline] |
Definition at line 644 of file RobotRemocon.java.
Definition at line 898 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onCreate | ( | Bundle | savedInstanceState | ) | [inline] |
Called when the activity is first created.
Reimplemented from com.github.rosjava.android_remocons.robot_remocon.RobotActivity.
Definition at line 239 of file RobotRemocon.java.
Dialog com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onCreateDialog | ( | int | id | ) | [inline, protected] |
Definition at line 869 of file RobotRemocon.java.
boolean com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onCreateOptionsMenu | ( | Menu | menu | ) | [inline] |
Definition at line 852 of file RobotRemocon.java.
boolean com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.onOptionsItemSelected | ( | MenuItem | item | ) | [inline] |
Definition at line 858 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.returnToRobotMasterChooser | ( | ) | [inline, private] |
This returns the activity to the robot master chooser activity. It will get triggered via either a backpress or the button provided in the RobotRemocon activity.
Definition at line 767 of file RobotRemocon.java.
This is an override which diverts the usual startup once a node is connected. Typically this would go to the master chooser, however here we are sometimes returning from one of its child apps (in which case it doesn't have to go choosing a robot). In that case, send it directly to the robot validation and initialisation steps.
Definition at line 394 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.stopApplicationsClicked | ( | View | view | ) | [inline] |
Callback for the button that appears in the app list view when a paired robot app is running and either there is no local android app, or for some reason, the local android app closed without terminating the paired robot app.
view |
Definition at line 834 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.stopProgress | ( | ) | [inline, private] |
Definition at line 106 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.stopRobotApplication | ( | ) | [inline] |
Currently stops all/any robot applications and is called when either the button to stop all applications has been pressed or the android application terminates itself.
Definition at line 793 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.updateAppList | ( | final ArrayList< App > | apps, |
final ArrayList< App > | runningApps | ||
) | [inline, protected] |
Definition at line 709 of file RobotRemocon.java.
void com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.validateRobot | ( | final RobotId | id | ) | [inline] |
Definition at line 409 of file RobotRemocon.java.
boolean com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.alreadyClicked = false [private] |
Definition at line 101 of file RobotRemocon.java.
ArrayList<App> com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.availableAppsCache [private] |
Definition at line 90 of file RobotRemocon.java.
long com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.availableAppsCacheTime [private] |
Definition at line 104 of file RobotRemocon.java.
final int com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.CLOSE_EXISTING = 0 [static, private] |
Definition at line 87 of file RobotRemocon.java.
Definition at line 92 of file RobotRemocon.java.
AlertDialogWrapper com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.errorDialog [private] |
Definition at line 99 of file RobotRemocon.java.
AlertDialogWrapper com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.evictDialog [private] |
Definition at line 98 of file RobotRemocon.java.
Definition at line 94 of file RobotRemocon.java.
AppManager com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.listAppsSubscriber = null [protected] |
Definition at line 100 of file RobotRemocon.java.
final int com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.MULTI_RAPP_DISABLED = 1 [static, private] |
Definition at line 86 of file RobotRemocon.java.
ProgressDialog com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.progress [private] |
Definition at line 95 of file RobotRemocon.java.
ProgressDialogWrapper com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.progressDialog [private] |
Definition at line 96 of file RobotRemocon.java.
final int com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.ROBOT_MASTER_CHOOSER_REQUEST_CODE = 1 [static, private] |
Definition at line 84 of file RobotRemocon.java.
TextView com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.robotNameView [private] |
Definition at line 89 of file RobotRemocon.java.
ArrayList<App> com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.runningAppsCache [private] |
Definition at line 91 of file RobotRemocon.java.
boolean com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.runningNodes = false [private] |
Definition at line 103 of file RobotRemocon.java.
Definition at line 93 of file RobotRemocon.java.
Definition at line 102 of file RobotRemocon.java.
AlertDialogWrapper com.github.rosjava.android_remocons.robot_remocon.RobotRemocon.wifiDialog [private] |
Definition at line 97 of file RobotRemocon.java.