FindNetworkActivity¶
-
public class
FindNetworkActivityextends DrawerActivity¶
Fields¶
Methods¶
onActivityResult¶
-
protected void
onActivityResult(int requestCode, int resultCode, Intent data)¶ When the user has chosen a near location using
ChooseNearLocationActivity, this method is called by theIntentthat launched the near location chooser with the result of the user’s selection. If they did indeed choose a location, that location is saved and the button text is updated to reflect the location’s name.Parameters: - requestCode – Status code that indicates a location was chosen if it equals
ChooseNearLocationActivity.RESULT_OK - resultCode – {@inheritDoc}
- data – Passed to superclass, but the value associated with
ChooseNearLocationActivity.CHOSEN_PLACE, which should be the location the user chose, is extracted ifrequestCodeindicates they made a choice
- requestCode – Status code that indicates a location was chosen if it equals
onCreate¶
onOptionsItemSelected¶
-
public boolean
onOptionsItemSelected(MenuItem item)¶ Handles clicks to the action bar.
Parameters: - item – {@inheritDoc}
Returns: trueif the item ID is that ofR.id.action_settings. Otherwise, superclassonOptionsItemSelectedis called and the resulting value is returned.