diff --git a/xwords4/android/XWords4/AndroidManifest.xml b/xwords4/android/XWords4/AndroidManifest.xml index 6e94f95a0..176d067a2 100644 --- a/xwords4/android/XWords4/AndroidManifest.xml +++ b/xwords4/android/XWords4/AndroidManifest.xml @@ -129,7 +129,9 @@ + android:host="@string/invite_host" + android:pathPrefix="@string/invite_prefix" + /> diff --git a/xwords4/android/XWords4/res/values/common_rsrc.xml b/xwords4/android/XWords4/res/values/common_rsrc.xml index e8928e6a9..516e9aa13 100644 --- a/xwords4/android/XWords4/res/values/common_rsrc.xml +++ b/xwords4/android/XWords4/res/values/common_rsrc.xml @@ -102,10 +102,9 @@ eehouse.org - eehouse.org + /and/ http://eehouse.org/and_wordlists - //%1$s/and Update checks URL http://eehouse.org/xw4/info.py diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java index f25453dda..0fa720132 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/NetLaunchInfo.java @@ -22,7 +22,6 @@ package org.eehouse.android.xw4; import android.content.Context; import android.content.Intent; -import android.net.Uri.Builder; import android.net.Uri; import android.os.Bundle; import java.net.URLEncoder; @@ -99,14 +98,15 @@ public class NetLaunchInfo { String inviteID, int lang, String dict, int nPlayersT ) { - String host = context.getString( R.string.invite_host ); - Builder ub = new Builder(); - ub.scheme( "http" ); - ub.path( context.getString( R.string.game_url_pathf, host ) ); - ub.appendQueryParameter( "lang", String.format("%d", lang ) ); - ub.appendQueryParameter( "np", String.format( "%d", nPlayersT ) ); - ub.appendQueryParameter( "room", room ); - ub.appendQueryParameter( "id", inviteID ); + Uri.Builder ub = new Uri.Builder() + .scheme( "http" ) + .path( String.format( "//%s%s", + context.getString(R.string.invite_host), + context.getString(R.string.invite_prefix) ) ) + .appendQueryParameter( "lang", String.format("%d", lang ) ) + .appendQueryParameter( "np", String.format( "%d", nPlayersT ) ) + .appendQueryParameter( "room", room ) + .appendQueryParameter( "id", inviteID ); if ( null != dict ) { ub.appendQueryParameter( "wl", dict ); }