Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Can't get voice search result in onActivityResult inside Fragment #24

@vkotovv

Description

@vkotovv

Currently voice search is initiated via this call:

activity.startActivityForResult(intent, REQUEST_VOICE_SEARCH);

Currently this is an implementation detail and cannot be overridden.

But if we want to get result in Fragment's onActivityResult(), we need to call startActivityForResult from Fragment. Otherwise we will not get the results (see this answer on SO).

In my case I had to modify the source code to get the desired behaviour (I have a Fragment with SimpleSearchView, not Activity). I think it makes sense to support this case in the library.

Library version: 0.1.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions