Search code examples
androidblackberrygood-dynamics

How to open a url in Blackberry Access from an Android app


I have successfully opened the blackberry access from our IOS app using the url scheme access://open? , but it seems to be not working on Android. Our application is not integrated with blackberry sdk .


Solution

  • For anyone who needs it you can open the blackberry access from your app using the blackberry access appid com.good.gdgma.

        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse(urlString));
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setPackage("com.good.gdgma");
        try {
            getApplicationContext().startActivity(intent);
        }
        catch(ActivityNotFoundException ex) {
            showNotInstalledDialog(App.BLACKBERRY_ACCESS);
        }