androidblackberryblackberry-webworksblackberry-playbook

Android equivalent for BlackBerry navigator invoke()


I'm testing an app created in android but on my blackberry playbook, and i have an action not supported error caused by this code:

Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("appworld://content/xxxxxx"));
startActivity(intent);

I read that to use the appworldId uri on native sdk, we use the navigator invoke method but how do I do it on android?


Solution

  • I know this will sound odd to you, but try changing the URI from

    "appworld://content/xxxxxx"

    to

    "market://details?id=xxxxxx"

    Where "xxxxxx" is NOT the AppWorld ID, but the package name (same as in Android).