aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/org/scummvm
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-15 19:18:19 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commitded8cdf0a092894781bb4d93f2d1e9d061878ea1 (patch)
tree138590d9e47b22e28236f833b7bbf0e840c9dfde /backends/platform/android/org/scummvm
parent40dfb0b4f17590100b4dcfe212ee3f34369d788e (diff)
downloadscummvm-rg350-ded8cdf0a092894781bb4d93f2d1e9d061878ea1.tar.gz
scummvm-rg350-ded8cdf0a092894781bb4d93f2d1e9d061878ea1.tar.bz2
scummvm-rg350-ded8cdf0a092894781bb4d93f2d1e9d061878ea1.zip
CLOUD: Add openurl-android.cpp
Diffstat (limited to 'backends/platform/android/org/scummvm')
-rw-r--r--backends/platform/android/org/scummvm/scummvm/ScummVM.java1
-rw-r--r--backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVM.java b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
index 3b370a583d..50642805a4 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVM.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVM.java
@@ -53,6 +53,7 @@ public abstract class ScummVM implements SurfaceHolder.Callback, Runnable {
// Callbacks from C++ peer instance
abstract protected void getDPI(float[] values);
abstract protected void displayMessageOnOSD(String msg);
+ abstract protected void openUrl(String url);
abstract protected void setWindowCaption(String caption);
abstract protected void showVirtualKeyboard(boolean enable);
abstract protected String[] getSysArchives();
diff --git a/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java b/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
index 5b2dcae175..2f3701a557 100644
--- a/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
+++ b/backends/platform/android/org/scummvm/scummvm/ScummVMActivity.java
@@ -5,6 +5,7 @@ import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.media.AudioManager;
+import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
@@ -75,6 +76,12 @@ public class ScummVMActivity extends Activity {
}
@Override
+ protected void openUrl(String url) {
+ startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));
+ }
+
+
+ @Override
protected void setWindowCaption(final String caption) {
runOnUiThread(new Runnable() {
public void run() {