mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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 )
|
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 intent = new Intent( Intent.ACTION_VIEW );
|
||||||
intent.setDataAndType( uri, XWConstants.APK_TYPE );
|
intent.setDataAndType( uri, XWConstants.APK_TYPE );
|
||||||
intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
|
intent.addFlags( Intent.FLAG_ACTIVITY_NEW_TASK );
|
||||||
|
|
Loading…
Reference in a new issue