Project

General

Profile

Feature #10

Updated by André Pinela about 3 years ago

# Application Structure


## Java Source

* SystemUpdateActivity.java -

### SystemUpdateActivity
Handle the code related to system_update_activity.xml layout
* SystemUpdateService.java - ### SystemUpdateService
Handle 3 services

* Check Service
CheckService
* Start Download Service
StartDownloadService
* Prepare For Update Service PrepareForUpdateService
* SystemUpdateReciever.java - ### SystemUpdateReciever
Handle 3 Intent Actions

* ACTION_START_DOWNLOAD

* ACTION_DOWNLOAD_COMPLETE

* ACTION_INSTALL_UPDATE
* SystemUpdateNotify.java - ### SystemUpdateNotify
Handle 2 notification types

* Notify Download Complete
notifyDownloadComplete
* Notify Download Error

notifyDownloadError
## Resources
### layout
* system_update_activity.xml - Main activity wich is accessed via Settings>About>System Updates

### mipmap
* ic_launcher.png - Application icon

### values
* styles.xml - The app style/themes
* strings.xml
* config.xml - Configuration for check updates API URL
* ids.xml - system_update_activity.xml related id's

Back