Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For both, you basically just export a new version of your application from Eclipse, and upload the new APK through your market account.</p> <p>Application version changes are handled by a tag in the manifest: <code>android:versionCode</code>. Each time you export a updated APK, you need to increment the version code. <code>versionName</code> is just the label that's displayed to users in the market, so can be whatever you like.</p> <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.package" android:installLocation="auto" android:versionCode="17" android:versionName="0.74"&gt; &lt;uses-sdk android:minSdkVersion="8" android:targetSdkVersion="12" /&gt; &lt;uses-permission android:name="android.permission.INTERNET"&gt;&lt;/uses-permission&gt; ... </code></pre> <p>As for the database, the easiest way to do it is to sub-class <a href="http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html" rel="nofollow">SQLiteOpenHelper</a>. Then, in your sub-class you can have something like this:</p> <pre><code>private class DBHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME = "mydatabase.db"; private static final int DATABASE_VERSION = 45; public DBHelper(Context context) super(context, DATABASE_NAME, null, DATABASE_VERSION); } ... </code></pre> <p>The SQLiteOpenHelper handles opening the database, and updates when the application launches. In the above example, the database version is 45. If you increment that, and upload a new APK to the market, an <code>onUpgrade()</code> method is called, which allows you to update users old databases to your new version.</p>
    singulars
    1. This table or related slice is empty.
    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.
    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