From 3cc92e99cabd6ec30832599a876de226f84d164a Mon Sep 17 00:00:00 2001 From: Eric House Date: Tue, 27 Nov 2012 18:48:05 -0800 Subject: [PATCH] fix uri format error that was causing install to fail --- xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java index bc823efc0..288566417 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/Utils.java @@ -425,7 +425,8 @@ public class Utils { public static Intent makeInstallIntent( File file ) { - Uri uri = Uri.parse( "file:/" + file.getPath() ); + String withScheme = "file://" + file.getPath(); + Uri uri = Uri.parse( withScheme ); Intent intent = new Intent( Intent.ACTION_VIEW ); intent.setDataAndType( uri, XWConstants.APK_TYPE ); intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );