Android Tutorial Walkie Talkie - Audio streaming over Wifi or Bluetooth

Status
Not open for further replies.

mauro56

New Member
Licensed User
Hi,
after updating my Nexus 7 to Android 4.4.2 now I have an error and the application Walkie Talkie crashes unexpectedly. The problem seems to be in the service module "Connector". More precisely, in the subroutine:

Public Sub StopSendingAudio
audioStream.StopRecording
sendingAudio = False
end Sub

It seems to be the audiostream.StopRecording that causes abnormal termination.
With the previous version (Android 4.4.3) Walkie Talkie application works correctly.
 

mauro56

New Member
Licensed User
Yes, I have the same problem with the example you indicated, although less frequently. I am enclosing a few lines of the log when the error hoping you find it useful.
I correct a mistake in my previous post. The previous version of Android is 4.3.0. With this version everything is ok.

** Service (service1) Destroy **
** Service (service1) Create **
** Service (service1) Start **
Connected to B4A-Bridge (Wifi)
Installing file.
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:b4a.audiostreamerex
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NegativeArraySizeException: -3
at anywheresoftware.b4a.audio.AudioStreamer$Recorder.run(AudioStreamer.java:145)
at java.lang.Thread.run(Thread.java:841)
** Activity (main) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
Installing file.
PackageAdded: package:b4a.audiostreamerex
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.NegativeArraySizeException: -3
at anywheresoftware.b4a.audio.AudioStreamer$Recorder.run(AudioStreamer.java:145)
at java.lang.Thread.run(Thread.java:841)
** Activity (main) Pause, UserClosed = true **

Thank you for your attention.
 

mauro56

New Member
Licensed User
Yes, when you start the recording. And 'less frequent if you remain silent. If you register for a few seconds and close the recording application crashes. In the example of Walkie Talkies is definitely more common, but even in this final example at least once in two the application crashes. Always close when recording.
 

wm.chatman

Well-Known Member
Licensed User
Can't compile the Walkie Talkie Sample.

Compiling code. Error
Error parsing program.
Error description: Unknown type: audiostreamer
Are you missing a library reference?
Occurred on line: 18
Private audioStream As AudioStreamer

Audio 1.3 is avail.

what's up, any thoughts on this one ?
 

ericvanderhoeven

Member
Licensed User
This example implements a simple "walkie talkie".
This app works fine here on 2 tablets both fitted with Wifi AND Bluetooth. It does not seem to work on 2 tablets with wifi only.
Could that be the reason (that it does not have bluetooth)?
And if so, what lines to take out of the sample code?
On the wifi only tablets, it spits out quite a nasty (and lengthy) error log when I try to run it. On the combo tablets, no error log at all.

Any help is appreciated.

Thx,

Eric
 
Status
Not open for further replies.
Top