Note that there are some explanatory texts on larger screens.

plurals
  1. POHow 'Update' functionality works in android mobile applications?
    primarykey
    data
    text
    <p>I am working on android mobile application, in which I am using xml for displaying the data and the application also have images. When first time I will generated apk and will installed it, it will work fine.<br/><br/> My problem is updating the application. <br/><br/> I have data in database on the server and also have images in separate directory. When I will update the application I want the data from the database and images from the server. For that I will generate xml which contains the values of database tables.<br/></p> <p>Here my question is that, Is it possible to overwrite the existing xml with the new one in the mobile application and also add images from the server to the mobile?<br/></p> <p>The logic behind it, the user will use this application offline. <br/><br/> I don't want to use the database in the application.</p> <p>Below is the sample xml code</p> <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; &lt;projects&gt; &lt;list&gt; &lt;project1&gt; &lt;name&gt;Project1&lt;/name&gt; &lt;/project1&gt; &lt;project2&gt;Project2&lt;/project2&gt; . . . &lt;/list&gt; &lt;/projects&gt; </code></pre> <p>If I choose project1 then it will display data from the related xml of the project1 i.e. project1.xml</p> <pre><code>&lt;?xml version="1.0" encoding="iso-8859-1"?&gt; &lt;project1&gt; &lt;overview&gt;some text here&lt;/overview&gt; &lt;amenities&gt; &lt;amenity1&gt; &lt;title&gt;Title1&lt;/title&gt; &lt;description&gt;Some text here&lt;/description&gt; &lt;/amenity1&gt; &lt;images&gt; &lt;sample1&gt;Image Path&lt;/sample1&gt; &lt;sample2&gt;Image Path&lt;/sample2&gt; &lt;/images&gt; . . . &lt;/amenities&gt; &lt;/project1&gt; </code></pre> <p>In the above examples 1st xml is the list of all projects. The 2nd example is the related xml for every project. Now when I update the app then it will replace new updated xmls or add new xmls in the application. Is this possible? And also, is it possible to download the new images at the time of update?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload