5
0
mirror of https://github.com/cwinfo/envayasms.git synced 2024-12-04 20:45:32 +00:00

display version number

This commit is contained in:
Jesse Young 2011-09-19 20:58:44 -07:00
parent 9440fdbffb
commit 4b0010ffda
3 changed files with 17 additions and 8 deletions

View File

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.envaya.kalsms"
android:versionCode="1"
android:versionName="1.0">
android:versionCode="2"
android:versionName="2.0-beta">
<uses-sdk android:minSdkVersion="4" />

View File

@ -58,10 +58,7 @@ public final class App extends Application {
// intent to signal to Main activity (if open) that log has changed
public static final String LOG_INTENT = "org.envaya.kalsms.LOG";
public static final String START_INTENT = "org.envaya.kalsms.START";
public static final String STOP_INTENT = "org.envaya.kalsms.STOP";
public static final String QUERY_EXPANSION_PACKS_INTENT = "org.envaya.kalsms.QUERY_EXPANSION_PACKS";
public static final String QUERY_EXPANSION_PACKS_EXTRA_PACKAGES = "packages";

View File

@ -1,9 +1,9 @@
package org.envaya.kalsms.ui;
import android.app.Activity;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.text.Html;
import android.view.Menu;
import android.widget.TextView;
import org.envaya.kalsms.R;
@ -17,7 +17,19 @@ public class Help extends Activity {
TextView help = (TextView) this.findViewById(R.id.help);
String html = "<b>KalSMS</b> is a SMS gateway.<br /><br /> "
String version;
try
{
version = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName;
}
catch (NameNotFoundException ex)
{
version = "(Unknown version)";
}
String html = "<b>KalSMS " + version + "</b><br /><br />"
+ "KalSMS is a SMS gateway.<br /><br /> "
+ "It forwards all incoming SMS messages received by this phone to a server on the internet, "
+ "and also sends outgoing SMS messages from that server to other phones.<br /><br />"
+ "(See https://kalsms.net for more information.)<br /><br />"