public boolean start()

in auth-lib/src/store/java/com/spotify/sdk/android/auth/store/PlayStoreHandler.java [47:73]


    public boolean start(Activity contextActivity, AuthorizationRequest request) {
        Log.d(TAG, "start");
        Intent intent = new Intent(Intent.ACTION_VIEW);
        intent.setData(Uri.parse(
            "https://play.google.com/store/apps/details?id=" + APP_PACKAGE_NAME
        ));
        intent.setPackage("com.android.vending");

        ComponentName componentName = intent.resolveActivity(contextActivity.getPackageManager());

        OnCompleteListener listener = mListener;
        if (componentName == null) {
            if (listener != null) {
                listener.onError(
                    new ClassNotFoundException("Couldn't find an activity to handle a play store link")
                );
            }
            return false;
        }

        contextActivity.startActivity(intent);

        if (listener != null) {
            listener.onCancel();
        }
        return true;
    }