Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch when there are now changes in emitted data #289

Closed
vanjavanjavanja opened this issue May 2, 2016 · 3 comments
Closed

Catch when there are now changes in emitted data #289

vanjavanjavanja opened this issue May 2, 2016 · 3 comments

Comments

@vanjavanjavanja
Copy link

vanjavanjavanja commented May 2, 2016

Hi!

Here I'm observing changes in TextView value t:

Observable<CharSequence> observable = RxTextView.textChanges(t).skip(1);
        Subscription subscription = 
                observable.doOnNext(count ->
                {
                    Log.v("CLICKER", "count: " + count);
                }
        )
                .subscribe(count -> {
                });

and I need to start playing an audio startAudio() just in a couple of seconds after t started to change and stop playing stopAudio() it when t has stopped to be changing for another pair of secs.

Is there any suitable operators or what is the right direction to implement the described requirements?

@JakeWharton
Copy link
Member

Hi @vanjavanjavanja,

GitHub issues are not a great place for support because it doesn't reach most of the right people who would be able to provide assistance and you question isn't really specific to anything about RxAndroid but more general RxJava usage. Can you ask your question on StackOverflow with the rx-java and rx-android tags? Or maybe post to the RxJava mailing list instead?

@vanjavanjavanja
Copy link
Author

Very nice, thanks!

For bugs, feature requests, and discussion please use GitHub Issues.

@dlew
Copy link
Collaborator

dlew commented May 3, 2016

"Discussion" is for the development/maintenance of the project itself. E.g., check out #172.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants