diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 733f7b1..926d641 100755 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="2" + android:versionName="2.0-beta"> diff --git a/src/org/envaya/kalsms/App.java b/src/org/envaya/kalsms/App.java index 3086b61..4a2cb67 100755 --- a/src/org/envaya/kalsms/App.java +++ b/src/org/envaya/kalsms/App.java @@ -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"; diff --git a/src/org/envaya/kalsms/ui/Help.java b/src/org/envaya/kalsms/ui/Help.java index 6796db8..f6db7e5 100755 --- a/src/org/envaya/kalsms/ui/Help.java +++ b/src/org/envaya/kalsms/ui/Help.java @@ -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 = "KalSMS is a SMS gateway.

" + String version; + + try + { + version = this.getPackageManager().getPackageInfo(this.getPackageName(), 0).versionName; + } + catch (NameNotFoundException ex) + { + version = "(Unknown version)"; + } + + String html = "KalSMS " + version + "

" + + "KalSMS is a SMS gateway.

" + "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.

" + "(See https://kalsms.net for more information.)

"