|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectActivity
net.hockeyapp.android.UpdateActivity
public class UpdateActivity
Copyright (c) 2012 Codenauts UG Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Field Summary | |
---|---|
protected DownloadFileTask |
downloadTask
Task to download the .apk file. |
protected VersionHelper |
versionHelper
Helper for version management. |
Constructor Summary | |
---|---|
UpdateActivity()
|
Method Summary | |
---|---|
protected void |
configureView()
Configures the content view by setting app name, the current version and the listener for the download button. |
protected void |
createDownloadTask(java.lang.String url,
DownloadFileListener listener)
|
void |
enableUpdateButton()
Enables the download button. |
java.lang.String |
getAppName()
Returns the app's name. |
int |
getCurrentVersionCode()
Returns the current version of the app. |
ViewGroup |
getLayoutView()
Creates and returns a new instance of UpdateView. |
void |
onClick(View v)
Called when the download button is tapped. |
void |
onCreate(Bundle savedInstanceState)
Called when the activity is starting. |
java.lang.Object |
onRetainNonConfigurationInstance()
Detaches the activity from the download task and returns the task as last instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DownloadFileTask downloadTask
protected VersionHelper versionHelper
Constructor Detail |
---|
public UpdateActivity()
Method Detail |
---|
public void onCreate(Bundle savedInstanceState)
savedInstanceState
- Data it most recently supplied in
onSaveInstanceState(Bundle)protected void configureView()
public java.lang.Object onRetainNonConfigurationInstance()
protected void createDownloadTask(java.lang.String url, DownloadFileListener listener)
public void enableUpdateButton()
public int getCurrentVersionCode()
getCurrentVersionCode
in interface UpdateInfoListener
public ViewGroup getLayoutView()
getLayoutView
in interface UpdateActivityInterface
public java.lang.String getAppName()
public void onClick(View v)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |