Keep external android pages in a single tab. (close #61)

This commit is contained in:
Maxime Boucher-Allard 2014-09-15 16:10:03 -04:00 committed by Andrew Grieve
parent 0293771e14
commit f8a80ce27d

View File

@ -22,6 +22,7 @@ import android.annotation.SuppressLint;
import org.apache.cordova.inappbrowser.InAppBrowserDialog;
import android.content.Context;
import android.content.Intent;
import android.provider.Browser;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
@ -343,6 +344,7 @@ public class InAppBrowser extends CordovaPlugin {
} else {
intent.setData(uri);
}
intent.putExtra(Browser.EXTRA_APPLICATION_ID, cordova.getActivity().getPackageName());
this.cordova.getActivity().startActivity(intent);
return "";
} catch (android.content.ActivityNotFoundException e) {