W
W
Who_Is_Who2018-09-19 18:55:06
Java
Who_Is_Who, 2018-09-19 18:55:06

Psychics Needed! Where to dig? Where can an audio recording be stored in memory?

There are two different LinkedList'a, each contains its own link to the audio recording. It lies in a separate class.
There is a player where you can stop recording using .invokeStop();. Also a separate class with a player.
There are three Activities: the first - with two buttons, differ in the result of obtaining a LinkedList (as we remember, there are two of them, and depending on the button, we get the required LinkedList), when you click on any of the two buttons, there is a transition to the second Activity, where, depending on the button, we get and output LinkedList; the second Activity receives a LinkedList with the name of the audio recording, when clicked, we go to the third Activity, that is, the player, and play the selected recording.
There is a button on the player that takes us back to the first Activity( counting setResultand noHistory="true"second Activity), click on it, but do not turn off the playback of the recording (you can’t turn it off according to the application logic, it should be played).
Next, we turn the same scheme, but we click on another button on the first Activity, and on the player itself, that is, playing the audio recording, for some reason that is not clear to me, the same recording sounds as on the first attempt, although the section is already different, and therefore the record should be different. The list from LinkedList is displayed correctly.
I tried many ways to find the very thing for which you can check and reset the audio recording. The player is logically turned off when the Activity is closed, it makes no sense to access it from another Activity in order to call .invokeStop();. If you call before going to the first Activity .invokeStop();, then everything works, the desired entry sounds.
As for the code: it is not clear what to post, because the source of the problem is not clear
Question: Where to dig? Where can an audio recording be stored in memory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2018-09-19
@aol-nnov

Talk is cheap. Show me your code! ©

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question