public class AuthorizedActivity
extends BaseActivity
Activity class that should be used by activities that require an authorized API connection
Modifier and Type | Field and Description |
---|---|
ApiConnection |
apiConnection
The API connection to use for API calls
|
sharedPreferences
Constructor and Description |
---|
AuthorizedActivity()
Activity class that should be used by activities that require an authorized API connection
|
Modifier and Type | Method and Description |
---|---|
ApiConnection |
getApiConnection()
The API connection to use for API calls
|
void |
logout()
Logs out and returns to the Login Activity
|
void |
onCreate(android.os.Bundle savedInstanceState)
Initializes the Activity's apiConnection
|
void |
setApiConnection(ApiConnection p)
The API connection to use for API calls
|
getSharedPreferences, onCreate, setSharedPreferences, showErrorDialog, startActivity, startLoadingAnimation, stopLoadingAnimation
public ApiConnection apiConnection
The API connection to use for API calls
public AuthorizedActivity()
Activity class that should be used by activities that require an authorized API connection
public ApiConnection getApiConnection()
The API connection to use for API calls
public void setApiConnection(ApiConnection p)
The API connection to use for API calls
public void onCreate(android.os.Bundle savedInstanceState)
Initializes the Activity's apiConnection
savedInstanceState
- : The bundle provided by a previous activitypublic void logout()
Logs out and returns to the Login Activity