Now, we have a filetype association!!!! :)

This commit is contained in:
Jairo Luiz
2014-02-12 20:56:11 -03:00
parent 667c4750ea
commit 8069dc02c6
5 changed files with 82 additions and 7 deletions
+24
View File
@@ -0,0 +1,24 @@
package org.love2d.android;
import android.net.Uri;
import android.os.Bundle;
import android.util.Log;
public class GameLauncher extends GameActivity {
private static String gamePath;
@Override
protected void onCreate(Bundle bundle) {
Uri game = this.getIntent().getData();
if (game != null) {
gamePath = game.getPath();
Log.d("GameLauncher", "Selected the file: " + gamePath);
}
super.onCreate(bundle);
}
public static String getGamePath() {
return gamePath;
}
}