I am using PhoneGap 3.4 and InAppBrowser plugin.

When I try to open external urls it is launcing browser with no problem.

However when I try to launch `market://` url to rate my app I am getting following error:

```
05-13 04:30:34.527: D/InAppBrowser(2894): InAppBrowser: Error loading url market://details?id=com.mydomain.myapp:android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=market://details?id=com.mydomain.myapp }

```

I can see that there is a function on InAppBrowser.java like;

```
 public String openExternal(String url) {
    try {
        Intent intent = null;
        intent = new Intent(Intent.ACTION_VIEW);
        // Omitting the MIME type for file: URLs causes "No Activity found to handle Intent".
        // Adding the MIME type to http: URLs causes them to not be handled by the downloader.
        Uri uri = Uri.parse(url);
        if ("file".equals(uri.getScheme())) {
            String mimeType = webView.getResourceApi().getMimeType(uri);
            intent.setDataAndType(uri,mimeType);
        } else {
            intent.setData(uri);
        }
        this.cordova.getActivity().startActivity(intent);
        return "";
    } catch (android.content.ActivityNotFoundException e) {
        Log.d(LOG_TAG, "InAppBrowser: Error loading url "+url+":"+ e.toString());
        return e.toString();
    }
}

```

This code looks OK to me, but it always falls into catch statement. Is there any workaround for this?

UPDATE: Code works fine on real device, does not work for emulator,
here is reason why;

<https://stackoverflow.com/a/11073856/929902>