Project

General

Profile

Feature #10

Updated by André Pinela about 3 years ago

<h1>Application Structure</h1>

<h2>Source</h2>

<table border="1" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th scope="col">Source File</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>SystemUpdateActivity.java</td>
<td>Handle the code related to system_update_activity.xml layout</td>
</tr>
<tr>
<td>SystemUpdateService.java</td>
<td>Handle 3 services
<ul>
<li>Check Service</li>
<li>Start Download Service</li>
<li>Prepare For Update Service</li>
</ul>
</td>
</tr>
<tr>
<td>SystemUpdateReceiver.java</td>
<td>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 2 notification types
<ul>
<li>Notify Download Complete</li>
<li>Notify Download Error</li>
</ul>
</td>
</tr>
</tbody>
</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 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 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 for check updates API URL</td>
</tr>
<tr>
<td>values</td>
<td>ids.xml</td>
<td>system_update_activity.xml related id&#39;s</td>
</tr>
</tbody>
</table>

Back