mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-01 06:19:57 +01:00
fix uri format error that was causing install to fail
This commit is contained in:
parent
7c5a59beb3
commit
3cc92e99ca
1 changed files with 2 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue