fixed loading of files from file managers

This commit is contained in:
fysx
2014-02-13 14:08:06 +01:00
parent 0db55463c9
commit 1703660617
2 changed files with 14 additions and 2 deletions
+6 -2
View File
@@ -17,8 +17,12 @@ public class GameLauncher extends GameActivity {
protected void onCreate(Bundle bundle) {
Uri game = this.getIntent().getData();
if (game != null) {
copyGameToCache (game);
Log.d("GameLauncher", "Selected the file: " + getGamePath());
if (game.getScheme().equals ("file")) {
gamePath = game.getPath();
} else {
copyGameToCache (game);
}
Log.d("GameLauncher", "Selected the file: " + getGamePath());
}
super.onCreate(bundle);
}