FindNetworkActivity¶
-
public class
FindNetworkActivity
extends 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 theIntent
that 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 ifrequestCode
indicates 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: true
if the item ID is that ofR.id.action_settings
. Otherwise, superclassonOptionsItemSelected
is called and the resulting value is returned.