Project

General

Profile

Feature #10

Updated by André Pinela about 3 years ago

<h1>Application Structure</h1> # Application Structure

<h2>Source</h2> ## Source

<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<td>SystemUpdateActivity.java</td>
<td>Handle
* SystemUpdateActivity.java - Handle the code related to system_update_activity.xml layout</td>
</tr>
<tr>
<td>SystemUpdateService.java</td>
<td>Handle
layout
* SystemUpdateService.java - Handle
3 services
<ul>
<li>Check Service</li>
<li>Start

* Check Service
* Start
Download Service</li>
<li>Prepare
Service
* Prepare
For Update Service</li>
</ul>
</td>
</tr>
<tr>
<td>SystemUpdateReceiver.java</td>
<td>Handle
Service
* SystemUpdateReceiver.java - Handle
3 Intent Actions
<ul>
<li>ACTION_START_DOWNLOAD</li>
<li>ACTION_DOWNLOAD_COMPLETE</li>
<li>ACTION_INSTALL_UPDATE</li>
</ul>
</td>
</tr>
<tr>
<td>SystemUpdateNotify.java</td>
<td>Handle

* ACTION_START_DOWNLOAD
* ACTION_DOWNLOAD_COMPLETE
* ACTION_INSTALL_UPDATE
* SystemUpdateNotify.java - Handle
2 notification types
<ul>
<li>Notify

* Notify
Download Complete</li>
<li>Notify
Complete
* Notify
Download Error</li>
</ul>
</td>
</tr>
</tbody>
Error

## Resources

</table>

<h2>Resources</h2>

<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th scope="col">Directory</th>
<th scope="col">Resource File</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>layout</td>
<td>system_update_activity.xml</td>
<td>Main
### layout
* system_update_activity.xml - Main
activity wich is accessed via Settings&gt;About&gt;System Updates</td>
</tr>
<tr>
<td>mipmap</td>
<td>ic_launcher.png</td>
<td>Application icon</td>
</tr>
<tr>
<td>values</td>
<td>styles.xml</td>
<td>The
Settings&gt;About&gt;System Updates

### mipmap
* ic_launcher.png - Application icon

### values
* styles.xml - The
app style/themes</td>
</tr>
<tr>
<td>values</td>
<td>strings.xml</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>values</td>
<td>config.xml</td>
<td>Configuration
style/themes
* strings.xml
* config.xml - Configuration
for check updates API URL</td>
</tr>
<tr>
<td>values</td>
<td>ids.xml</td>
<td>system_update_activity.xml
URL
* ids.xml - system_update_activity.xml
related id&#39;s</td>
</tr>
</tbody>
</table>
id&#39;s

Back