diff --git a/xwords4/android/XWords4/res/values/strings.xml b/xwords4/android/XWords4/res/values/strings.xml index 84a3dcc47..e4eb7b5be 100644 --- a/xwords4/android/XWords4/res/values/strings.xml +++ b/xwords4/android/XWords4/res/values/strings.xml @@ -558,8 +558,13 @@ that many people.) Let\'s play Crosswords - Tap on this link to start a game: - %1$s . + \u003ca href=\"%1$s\"\u003ETap here to + accept\u003c/a\u003E my invitation and join this + game.\u003cbr\u003E \u003ca + href=\"http://eehouse.org/market.php\"\u003E + Tap here to install Crosswords\u003c/a\u003E if you haven\'t + already. + Send invitation via Unable to download. Do you have diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java index d19206608..119558949 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java @@ -38,6 +38,7 @@ import java.util.concurrent.locks.Lock; import java.util.HashMap; import java.util.HashSet; import java.util.Random; +import android.text.Html; import junit.framework.Assert; @@ -412,13 +413,13 @@ public class GameUtils { if ( null != gameUri ) { Intent intent = new Intent( Intent.ACTION_SEND ); - intent.setType( "text/plain" ); + intent.setType("text/html"); intent.putExtra( Intent.EXTRA_SUBJECT, context.getString( R.string.invite_subject ) ); String format = context.getString( R.string.invite_bodyf ); String message = String.format( format, gameUri.toString() ); - intent.putExtra( Intent.EXTRA_TEXT, message ); + intent.putExtra( Intent.EXTRA_TEXT, Html.fromHtml(message) ); String chooserMsg = context.getString( R.string.invite_chooser ); context.startActivity( Intent.createChooser( intent, chooserMsg ) ); diff --git a/xwords4/android/scripts/market.php b/xwords4/android/scripts/market.php new file mode 100644 index 000000000..ae4e33f2d --- /dev/null +++ b/xwords4/android/scripts/market.php @@ -0,0 +1,20 @@ + + + +Crosswords install redirect + + + +

Redirecting to the market...

+ + + + +EOF; + +?> diff --git a/xwords4/android/scripts/redir.php b/xwords4/android/scripts/redir.php index d71db7719..68c0e6fb4 100644 --- a/xwords4/android/scripts/redir.php +++ b/xwords4/android/scripts/redir.php @@ -30,10 +30,6 @@ print << -

- Tap here to fix that. -

-